i965: Generalize sampler state pointer mangling for non-const
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 9 Aug 2014 23:39:44 +0000 (11:39 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 15 Aug 2014 07:10:29 +0000 (19:10 +1200)
commit86dc34a0b0d967e9c8611bc29178fdb1de22c724
tree3f5d9fafe8e7c367ee47f97559a41cc3eb2ed1c1
parentf7146d1a946003bfbb6bc9fc6462a4c827cd93ba
i965: Generalize sampler state pointer mangling for non-const

For now, assume that the addressed sampler can be in any of the
16-sampler banks. If we preserved range information this far, we
could avoid emitting these instructions if the sampler were known
to be contained within one bank.

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