OSDN Git Service

i965: convert brw_lower_offset_array_visitor to ir_rvalue_visitor
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 9 Nov 2013 20:15:13 +0000 (09:15 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 10 Nov 2013 03:57:07 +0000 (16:57 +1300)
commit5442c0eae3a639d0c9daf447cdfecdbafb475658
treec49982eea0b008cb7068d26dec0ab2eff0939f6a
parentd257350949440539cb4c3c20349da7f1d5afb693
i965: convert brw_lower_offset_array_visitor to ir_rvalue_visitor

Previously, we would bogusly replace the entire statement containing the
ir_texture node with an ir_dereference_variable.

Correct this to just replace the ir_texture node itself as intended.

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