OSDN Git Service

i965: fix incorrect tex unit in emit_tex() and emit_txb()
authorBrian Paul <brianp@vmware.com>
Wed, 26 Aug 2009 20:46:58 +0000 (14:46 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Aug 2009 20:46:58 +0000 (14:46 -0600)
commita9a6399cd32ffe47b98d5171225fe7143552ca27
tree374834d438832363159a575e19000be22b32fabd
parent81a101b5be0b3b98b745af33b2b0a72125e3137c
i965: fix incorrect tex unit in emit_tex() and emit_txb()

The instructions we're translating already went through the brw_wm_pass_fp()
function which does the sampler->texture unit mapping.  We were applying
the sample->unit mapping a second time in the GLSL texture emitters.
Often, this made no difference but other times it could lead to accessing
an invalid texture and could cause a GPU lockup.
src/mesa/drivers/dri/i965/brw_wm_glsl.c