mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
mesa: fix bindless uniform samplers update
According to the comment below some extra magic is needed
for bindless samplers, so don't do an early return in this
case.
Fixes: 736f1f70ab ("mesa: skip redundant uniform updates for glUniform")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4806
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11930>
This commit is contained in:
parent
9b1a296172
commit
8be61e8a9e
1 changed files with 4 additions and 1 deletions
|
|
@ -1340,7 +1340,10 @@ _mesa_uniform(GLint location, GLsizei count, const GLvoid *values,
|
|||
ctx_flushed = true;
|
||||
}
|
||||
}
|
||||
if (!ctx_flushed)
|
||||
/* Return early if possible. Bindless samplers need to be processed
|
||||
* because of the !sampler->bound codepath below.
|
||||
*/
|
||||
if (!ctx_flushed && !(uni->type->is_sampler() && uni->is_bindless))
|
||||
return; /* no change in uniform values */
|
||||
|
||||
/* If the uniform is a sampler, do the extra magic necessary to propagate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue