glsl_to_tgsi: fix a bug in copy propagation
authorMarek Olšák <marek.olsak@amd.com>
Fri, 2 Jan 2015 13:13:43 +0000 (14:13 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 3 Jan 2015 12:25:30 +0000 (13:25 +0100)
This fixes the new piglit test: arb_uniform_buffer_object/2-buffers-bug

Cc: 10.2 10.3 10.4 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 2631348069c7844bc75929e6c87394ce97fd77e4..89654344b17bd7bb035d7491649a98562fb38d84 100644 (file)
@@ -3553,7 +3553,8 @@ glsl_to_tgsi_visitor::copy_propagate(void)
                first = copy_chan;
             } else {
                if (first->src[0].file != copy_chan->src[0].file ||
-                  first->src[0].index != copy_chan->src[0].index) {
+                   first->src[0].index != copy_chan->src[0].index ||
+                   first->src[0].index2D != copy_chan->src[0].index2D) {
                  good = false;
                  break;
                }