summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-04-04 18:28:14 -0600
committerBrian <brian.paul@tungstengraphics.com>2008-04-04 18:28:14 -0600
commitb53d6ae4be955c701695e093ea4457ab1c9c0ed7 (patch)
tree935e1ad44fc1946807ffc96062c4fe4064032aeb
parent74a6a46b749668032c17f8fb2312e927f214768c (diff)
gallium: always pass size=4 to make_immediate()
Mesa always packs 4 immediates into each parameter/const buffer slot. I think we were just getting lucky with this as it was.
-rw-r--r--src/mesa/state_tracker/st_mesa_to_tgsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index f3cfda0bfb..578fd2ecb0 100644
--- a/src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c
@@ -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,