<div dir="ltr">On Fri, Feb 9, 2018 at 3:10 AM, Michel Dänzer <span dir="ltr"><<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2018-02-09 08:54 AM, Gert Wollny wrote:<br>
> The initialization of tex_target was dropped and since the value<br>
> is used uninitialized (e.g. with Unreal Editor), an assertion<br>
> fires in tgsi/tgsi_util.c:502: tgsi_util_get_texture_coord_<wbr>dim:<br>
> Assertion `!"unknown texture target"' failed.<br>
><br>
> Initialize tex_target with the enum that corresponds to the value 0 used<br>
> before.<br>
><br>
> Fixes 9f9ce1625fb32ff0b9d5b1858aa5bb<wbr>7b531ded0f<br>
> st/mesa: use TGSI enum types in st_glsl_to_tgsi.cpp<br>
><br>
> Signed-off-by: Gert Wollny <<a href="mailto:gw.fossdev@gmail.com">gw.fossdev@gmail.com</a>><br>
> ---<br>
> src/mesa/state_tracker/st_<wbr>glsl_to_tgsi.cpp | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/src/mesa/state_tracker/st_<wbr>glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_<wbr>glsl_to_tgsi.cpp<br>
> index 39a81fad62..1f87591893 100644<br>
> --- a/src/mesa/state_tracker/st_<wbr>glsl_to_tgsi.cpp<br>
> +++ b/src/mesa/state_tracker/st_<wbr>glsl_to_tgsi.cpp<br>
> @@ -5863,7 +5863,7 @@ compile_tgsi_instruction(<wbr>struct st_translate *t,<br>
><br>
> int num_dst;<br>
> int num_src;<br>
> - enum tgsi_texture_type tex_target;<br>
> + enum tgsi_texture_type tex_target = TGSI_TEXTURE_BUFFER;<br>
><br>
> num_dst = num_inst_dst_regs(inst);<br>
> num_src = num_inst_src_regs(inst);<br>
><br>
<br>
</span>I wrote the same patch yesterday and pushed it this morning:<br>
<a href="https://patchwork.freedesktop.org/patch/203519/" rel="noreferrer" target="_blank">https://patchwork.freedesktop.<wbr>org/patch/203519/</a><br>
<span class="HOEnZb"><font color="#888888"><br><br></font></span></blockquote><div>Sorry about that. Thanks, Michel. <br></div></div><br></div><div class="gmail_extra">Reviewed-by: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>><br><br></div></div>