mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
nvfx: fix fragment program constant updates
This commit is contained in:
parent
7a1b5c937f
commit
2ac088141a
1 changed files with 4 additions and 1 deletions
|
|
@ -874,7 +874,10 @@ nvfx_fragprog_validate(struct nvfx_context *nvfx)
|
|||
fp->bo_prog_idx = fp->progs_per_bo - 1;
|
||||
}
|
||||
|
||||
if (nvfx->dirty & NVFX_NEW_FRAGCONST)
|
||||
/* we must update constants even on "just" fragprog changes, because
|
||||
we don't check whether the current constant buffer matches the latest
|
||||
one bound to this fragment program */
|
||||
if (nvfx->dirty & (NVFX_NEW_FRAGCONST | NVFX_NEW_FRAGPROG))
|
||||
update = TRUE;
|
||||
|
||||
if(update) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue