Re: [Mesa-dev] [PATCH] i965/vec4: Only examine virtual_grf_end for GRF sources

2014-09-11 Thread Kenneth Graunke
On Wednesday, September 10, 2014 06:01:19 PM Ian Romanick wrote: > From: Ian Romanick > > If the source is not a GRF, it could have a register >= virtual_grf_count. > Accessing virtual_grf_end with such a register would lead to > out-of-bounds access. Make sure the source is a GRF before accessi

Re: [Mesa-dev] [PATCH] i965/vec4: Only examine virtual_grf_end for GRF sources

2014-09-10 Thread Ian Romanick
On 09/10/2014 06:01 PM, Ian Romanick wrote: > From: Ian Romanick > > If the source is not a GRF, it could have a register >= virtual_grf_count. > Accessing virtual_grf_end with such a register would lead to > out-of-bounds access. Make sure the source is a GRF before accessing > virtual_grf_end.

[Mesa-dev] [PATCH] i965/vec4: Only examine virtual_grf_end for GRF sources

2014-09-10 Thread Ian Romanick
From: Ian Romanick If the source is not a GRF, it could have a register >= virtual_grf_count. Accessing virtual_grf_end with such a register would lead to out-of-bounds access. Make sure the source is a GRF before accessing virtual_grf_end. Fixes gles3conform failure in: ES3-CTS.shaders.struct