r300g: Set logical ID for each emitted texture/sampler.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Thu, 15 Oct 2009 23:58:26 +0000 (16:58 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Thu, 15 Oct 2009 23:58:26 +0000 (16:58 -0700)
multitexarray works on my r300, but texrect doesn't.

src/gallium/drivers/r300/r300_emit.c

index 2c3bba952d80070603736249ad0e3500d8ec16a5..f3adc0968e80557f10430eb4df98a329415719ed 100644 (file)
@@ -531,7 +531,8 @@ void r300_emit_texture(struct r300_context* r300,
     CS_LOCALS(r300);
 
     BEGIN_CS(16);
-    OUT_CS_REG(R300_TX_FILTER0_0 + (offset * 4), sampler->filter0);
+    OUT_CS_REG(R300_TX_FILTER0_0 + (offset * 4), sampler->filter0 |
+        (offset << 28));
     OUT_CS_REG(R300_TX_FILTER1_0 + (offset * 4), sampler->filter1);
     OUT_CS_REG(R300_TX_BORDER_COLOR_0 + (offset * 4), sampler->border_color);