mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 07:10:36 +02:00
i965: Don't use brw->fragment_program in the old brw_wm_pass2.c.
According to Eric, this shouldn't matter since we don't do precompiles using the old backend. In other words, brw->fragment_program (the currently active program) should equal c->fp (the program currently being compiled). However, it's just not a good idea to access brw->fragment_program directly in compiler code. It's totally illegal in the new backend, so let's just not do it here either. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reported-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
446d19c12a
commit
456c7355e0
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ static void init_registers( struct brw_wm_compile *c )
|
|||
|
||||
if (intel->gen >= 6) {
|
||||
for (unsigned int j = 0; j < FRAG_ATTRIB_MAX; j++) {
|
||||
if (brw->fragment_program->Base.InputsRead & BITFIELD64_BIT(j)) {
|
||||
if (c->fp->program.Base.InputsRead & BITFIELD64_BIT(j)) {
|
||||
nr_interp_regs++;
|
||||
prealloc_reg(c, &c->payload.input_interp[j], i++);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue