mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
i965: Remove bad constant buffer constant-reg-already-loaded optimization.
Thanks to branching, the state of c->current_const[i].index at the point
of emitting constant loads for this instruction may not match the actual
constant currently loaded in the reg at runtime. Fixes a regression in my
GLSL program for idr's class since b58b3a786a.
This commit is contained in:
parent
156a79f5bd
commit
3d048e5750
1 changed files with 11 additions and 13 deletions
|
|
@ -407,7 +407,6 @@ static void fetch_constants(struct brw_wm_compile *c,
|
||||||
if (src->File == PROGRAM_STATE_VAR ||
|
if (src->File == PROGRAM_STATE_VAR ||
|
||||||
src->File == PROGRAM_CONSTANT ||
|
src->File == PROGRAM_CONSTANT ||
|
||||||
src->File == PROGRAM_UNIFORM) {
|
src->File == PROGRAM_UNIFORM) {
|
||||||
if (c->current_const[i].index != src->Index) {
|
|
||||||
c->current_const[i].index = src->Index;
|
c->current_const[i].index = src->Index;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
@ -426,7 +425,6 @@ static void fetch_constants(struct brw_wm_compile *c,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue