gallium: always pass size=4 to make_immediate()
authorBrian <brian.paul@tungstengraphics.com>
Sat, 5 Apr 2008 00:28:14 +0000 (18:28 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 5 Apr 2008 00:28:14 +0000 (18:28 -0600)
Mesa always packs 4 immediates into each parameter/const buffer slot.
I think we were just getting lucky with this as it was.

src/mesa/state_tracker/st_mesa_to_tgsi.c

index f3cfda0bfbbdea3d66d230bc90aad3efe4aa2973..578fd2ecb0527aee2c55a99378a6a6f0d64ba254 100644 (file)
@@ -833,8 +833,7 @@ tgsi_translate_mesa_program(
         i++) {
       if (program->Parameters->Parameters[i].Type == PROGRAM_CONSTANT) {
          struct tgsi_full_immediate fullimm
-            = make_immediate(program->Parameters->ParameterValues[i],
-                             program->Parameters->Parameters[i].Size);
+            = make_immediate(program->Parameters->ParameterValues[i], 4);
          ti += tgsi_build_full_immediate(&fullimm,
                                          &tokens[ti],
                                          header,