mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 13:40:37 +02:00
[i965] fix broken glsl texdemo1
This commit is contained in:
parent
ba38909be2
commit
689ff273d1
1 changed files with 8 additions and 1 deletions
|
|
@ -86,8 +86,15 @@ static void init_registers( struct brw_wm_compile *c )
|
|||
|
||||
for (j = 0; j < FRAG_ATTRIB_MAX; j++)
|
||||
if (inputs & (1<<j)) {
|
||||
/* index for vs output and ps input are not the same
|
||||
in shader varying */
|
||||
GLuint index;
|
||||
if (j > FRAG_ATTRIB_VAR0)
|
||||
index = j - (VERT_RESULT_VAR0 - FRAG_ATTRIB_VAR0)
|
||||
else
|
||||
index = j;
|
||||
nr_interp_regs++;
|
||||
prealloc_reg(c, &c->payload.input_interp[j], i++);
|
||||
prealloc_reg(c, &c->payload.input_interp[index], i++);
|
||||
}
|
||||
|
||||
assert(nr_interp_regs >= 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue