r300-gallium: Emit constants as floats, not uints.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 16 Mar 2009 07:29:37 +0000 (00:29 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 16 Mar 2009 07:31:54 +0000 (00:31 -0700)
src/gallium/drivers/r300/r300_emit.c

index 3b580b7d51b4d92a660213c46544c72b64e1fc1c..ea726b9f9f2df67f64236ecd0e4b1bf4dea8a8c2 100644 (file)
@@ -142,10 +142,10 @@ void r500_emit_fragment_shader(struct r300_context* r300,
                 R500_GA_US_VECTOR_INDEX_TYPE_CONST);
         OUT_CS_ONE_REG(R500_GA_US_VECTOR_DATA, constants->count * 4);
         for (i = 0; i < constants->count; i++) {
-            OUT_CS(constants->constants[i][0]);
-            OUT_CS(constants->constants[i][1]);
-            OUT_CS(constants->constants[i][2]);
-            OUT_CS(constants->constants[i][3]);
+            OUT_CS_32F(constants->constants[i][0]);
+            OUT_CS_32F(constants->constants[i][1]);
+            OUT_CS_32F(constants->constants[i][2]);
+            OUT_CS_32F(constants->constants[i][3]);
         }
     }