intel/fs: Uniformize the index in readInvocation
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 2 Sep 2017 05:35:43 +0000 (22:35 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
commitebaee9da4adaad10e1c46bdd2f5521175ea04044
treed77cd0f436096655b450c354cd4fb6d09b0fbe18
parentb67230de635528bfc6d5e66b90f7406eb97eb1c0
intel/fs: Uniformize the index in readInvocation

The index is any value provided by the shader and this can be called in
non-uniform control flow so we can't just take component 0.  Found by
inspection.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_fs_nir.cpp