<div dir="ltr">Hi Tapani, Timothy,<div><br></div><div>I also did some testing on my SNB laptop and didn't noticed any issues. CI also didn't show that issues.</div><div><br></div><div>Regards,</div><div>Vadym<br><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">ср, 31 окт. 2018 г. в 9:13, Tapani Pälli <<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 10/31/18 7:28 AM, Tapani Pälli wrote:<br>
> <br>
> <br>
> On 10/31/18 12:57 AM, Timothy Arceri wrote:<br>
>> On 30/10/18 10:14 pm, Tapani Pälli wrote:<br>
>>> Hi;<br>
>>><br>
>>> On 10/30/18 1:28 AM, Timothy Arceri wrote:<br>
>>>> On 29/10/18 10:05 pm, Vadim Shovkoplias wrote:<br>
>>>>> Hi Timothy,<br>
>>>>><br>
>>>>> Thanks for the review. Piglit patch is updated with the additional <br>
>>>>> out var: <a href="https://patchwork.freedesktop.org/patch/258899/" rel="noreferrer" target="_blank">https://patchwork.freedesktop.org/patch/258899/</a><br>
>>>>> Original reporter confirmed that issue is finally fixed with the <br>
>>>>> current patch and closed it.<br>
>>>>><br>
>>>>> Can I ask to push the patch please ?<br>
>>>><br>
>>>> I've pushed both. Thanks for the patches!<br>
>>><br>
>>> Unfortunately it seems this patch introduced regression in Intel CI, <br>
>>> I'm getting following failures after this commit (7d66eddbbde):<br>
>>><br>
>>> piglit.spec.glsl-1_30.execution.tex-miplevel-selection <br>
>>> texturelodoffset 2dshadow.snbm64<br>
>>> piglit.spec.glsl-1_30.execution.tex-miplevel-selection texturelod <br>
>>> 2dshadow.snbm64<br>
>>> piglit.spec.glsl-1_30.execution.tex-miplevel-selection texturelod <br>
>>> cube.snbm64<br>
>>> generated.gpu-hang-otc-gfxtest-snbgt2-02.snbm64<br>
>><br>
>> I don't have a Sandy Bridge to test with but its really strange that <br>
>> this would break only one generation of hardware. Are you sure it was <br>
>> this patch?<br>
> <br>
> Well .. not 100% sure but it looks like previous commit won't show these <br>
> fails, it is strange. I'll do some runs today and try to figure it out.<br>
<br>
Yeah, it passes now so it seems this was some kind of 'CI noise'.<br>
<br>
> <br>
>>><br>
>>><br>
>>>>><br>
>>>>> Regards,<br>
>>>>> Vadym<br>
>>>>><br>
>>>>> сб, 27 окт. 2018 г. в 1:21, Timothy Arceri <<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a> <br>
>>>>> <mailto:<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a>>>:<br>
>>>>><br>
>>>>>     On Wed, Oct 24, 2018, at 3:28 AM, Vadym Shovkoplias wrote:<br>
>>>>>      > Since out variables are copied from shader objects instruction<br>
>>>>>      > streams to linked shader instruction steam it should be cloned<br>
>>>>>      > at first to keep source instruction steam unaltered.<br>
>>>>>      ><br>
>>>>>      > Fixes: 966a797e433 glsl/linker: Link all out vars from a shader<br>
>>>>>      > objects on a single stage<br>
>>>>>      > Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=105731" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=105731</a><br>
>>>>>      > Signed-off-by: Vadym Shovkoplias<br>
>>>>>     <<a href="mailto:vadym.shovkoplias@globallogic.com" target="_blank">vadym.shovkoplias@globallogic.com</a><br>
>>>>>     <mailto:<a href="mailto:vadym.shovkoplias@globallogic.com" target="_blank">vadym.shovkoplias@globallogic.com</a>>><br>
>>>>><br>
>>>>>     Reviewed-by: Timothy Arceri <<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a><br>
>>>>>     <mailto:<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a>>><br>
>>>>><br>
>>>>>     Also please either update the existing piglit or add a new one to<br>
>>>>>     better cover the use of the freed vars. From the bug report it <br>
>>>>> seems<br>
>>>>>     adding another out var is enough to do it. Thanks.<br>
>>>>><br>
>>>>>      > ---<br>
>>>>>      >  src/compiler/glsl/linker.cpp | 3 ++-<br>
>>>>>      >  1 file changed, 2 insertions(+), 1 deletion(-)<br>
>>>>>      ><br>
>>>>>      > diff --git a/src/compiler/glsl/linker.cpp<br>
>>>>>     b/src/compiler/glsl/linker.cpp<br>
>>>>>      > index 7db34ebf95..8b1b03322a 100644<br>
>>>>>      > --- a/src/compiler/glsl/linker.cpp<br>
>>>>>      > +++ b/src/compiler/glsl/linker.cpp<br>
>>>>>      > @@ -2269,10 +2269,11 @@ link_output_variables(struct<br>
>>>>>     gl_linked_shader<br>
>>>>>      > *linked_shader,<br>
>>>>>      >           if (ir->ir_type != ir_type_variable)<br>
>>>>>      >              continue;<br>
>>>>>      ><br>
>>>>>      > -         ir_variable *const var = (ir_variable *) ir;<br>
>>>>>      > +         ir_variable *var = (ir_variable *) ir;<br>
>>>>>      ><br>
>>>>>      >           if (var->data.mode == ir_var_shader_out &&<br>
>>>>>      >                 !symbols->get_variable(var->name)) {<br>
>>>>>      > +            var = var->clone(linked_shader, NULL);<br>
>>>>>      >              symbols->add_variable(var);<br>
>>>>>      >              linked_shader->ir->push_head(var);<br>
>>>>>      >           }<br>
>>>>>      > --<br>
>>>>>      > 2.18.0<br>
>>>>>      ><br>
>>>>><br>
</blockquote></div></div>