glsl_to_tgsi: copy reladdr in st_src_reg(st_dst_reg) constructor
authorBryan Cain <bryancain3@gmail.com>
Wed, 27 Jul 2011 21:39:40 +0000 (16:39 -0500)
committerBryan Cain <bryancain3@gmail.com>
Mon, 1 Aug 2011 22:59:10 +0000 (17:59 -0500)
This is a glsl_to_tgsi port of commit f7cd9a858c04.

src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index f66e240a1773dc12795655c48a231adf60980a0a..ba4074eecd565b68fa7082a3a43ce15d4e673894 100644 (file)
@@ -174,7 +174,7 @@ st_src_reg::st_src_reg(st_dst_reg reg)
    this->index = reg.index;
    this->swizzle = SWIZZLE_XYZW;
    this->negate = 0;
-   this->reladdr = NULL;
+   this->reladdr = reg.reladdr;
 }
 
 st_dst_reg::st_dst_reg(st_src_reg reg)