Re: [Mesa-dev] [PATCH v2] glsl: Fix handling of array dereferences of vectors in opt_dead_code_local

2013-02-20 Thread Ian Romanick
On 02/11/2013 04:31 PM, Eric Anholt wrote: Ian Romanick i...@freedesktop.org writes: From: Ian Romanick ian.d.roman...@intel.com Three parts to the fix: 1. If the array dereference is a constant index, figure out the real write mask. 2. If the array dereference not is a constant index,

Re: [Mesa-dev] [PATCH v2] glsl: Fix handling of array dereferences of vectors in opt_dead_code_local

2013-02-11 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: From: Ian Romanick ian.d.roman...@intel.com Three parts to the fix: 1. If the array dereference is a constant index, figure out the real write mask. 2. If the array dereference not is a constant index, assume the assignment may generate any

[Mesa-dev] [PATCH v2] glsl: Fix handling of array dereferences of vectors in opt_dead_code_local

2013-01-30 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Three parts to the fix: 1. If the array dereference is a constant index, figure out the real write mask. 2. If the array dereference not is a constant index, assume the assignment may generate any component. 3. If the array dereference not is a