glsl_to_tgsi: make sure copied instructions don't lose texture target. (v2)
authorDave Airlie <airlied@redhat.com>
Sat, 10 Dec 2011 18:33:49 +0000 (18:33 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 18 Dec 2011 20:54:50 +0000 (20:54 +0000)
commit3788b4b5c942b2346bf122486b687c632ab7eac4
treebc260166fadf2d373878b0a8783b698149dc6d84
parentbdd76ebef126281d837f3a817a9f19fca7799a88
glsl_to_tgsi: make sure copied instructions don't lose texture target. (v2)

The piglit draw-pixel-with-texture was asserting in the glsl->tgsi code,
due to 0 texture target, this makes sure the texture target is copied over
correctly when we copy instructions around.

v2: drive-by fix bitmap on the way past.

This avoids the assertion, have to contemplate fixing things as per the spec
later.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp