i965/vec4: Support arbitrarily large sampler state indices on Haswell+.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 18 Jan 2014 22:32:49 +0000 (14:32 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 23 Jan 2014 01:18:53 +0000 (17:18 -0800)
commit15fc919491ea27bd395988a332502bdb23ee44d0
tree6043b0540c85b4e5532a17c8893e7ec923f55d9e
parentd58e03fe4f04c24c70c76e7ad86fd04b9130a711
i965/vec4: Support arbitrarily large sampler state indices on Haswell+.

Like the scalar backend, we add an offset to the "Sampler State Pointer"
field to select a group of 16 samplers, then use the "Sampler Index"
field to select within that group.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp