mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
i965/vs: Fix builtin uniform setup.
I want to intelligently pack them at some point, but for now we have the params set up in groups of 4. Fixes glsl-vs-normalscale.
This commit is contained in:
parent
0b359e3ea0
commit
fea7d34b35
1 changed files with 2 additions and 3 deletions
|
|
@ -443,12 +443,11 @@ vec4_visitor::setup_builtin_uniform_values(ir_variable *ir)
|
|||
int last_swiz = -1;
|
||||
for (unsigned int j = 0; j < 4; j++) {
|
||||
int swiz = GET_SWZ(slots[i].swizzle, j);
|
||||
if (swiz == last_swiz)
|
||||
break;
|
||||
last_swiz = swiz;
|
||||
|
||||
c->prog_data.param[this->uniforms * 4 + j] = &values[swiz];
|
||||
c->prog_data.param_convert[this->uniforms * 4 + j] = PARAM_NO_CONVERT;
|
||||
if (swiz <= last_swiz)
|
||||
this->uniform_size[this->uniforms]++;
|
||||
}
|
||||
this->uniforms++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue