i965/fs: Allow array dereference of HW_REG.
authorChris Forbes <chrisf@ijw.co.nz>
Wed, 4 Jun 2014 09:06:31 +0000 (21:06 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 4 Jun 2014 18:53:43 +0000 (06:53 +1200)
commit3c77d2a113171bf18879664884a9fa0976d02f29
tree338068db3d3642a3fa2e967ef6e70f167f9219f2
parent3642ee846a0eadd8c0554c66dc8d9114307f9d34
i965/fs: Allow array dereference of HW_REG.

When dereferencing an element of gl_SampleMaskIn[], the source register
here will be a HW_REG rather than a VGRF because the payload slot is
now exposed directly.

Fixes an assertion failure in the Piglit test:

   tests/spec/arb_gpu_shader5/execution/samplemaskin-basic

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp