mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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.
This commit is contained in:
parent
74a6a46b74
commit
b53d6ae4be
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue