diff options
author | Marek Olšák <marek.olsak@amd.com> | 2022-11-18 07:35:00 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-12-07 09:12:41 +0000 |
commit | 0a8d741b6d9bbca485a8e8191564763762977cc3 (patch) | |
tree | c601e1a1bab5f9288844fe79b65009be35d8f27f /src/mesa/main/uniform_query.cpp | |
parent | dbc9cb699549359577364f872aabd41f89539f9a (diff) |
mesa: don't flag _NEW_PROGRAM for "texture_unit -> sampler" mapping changes
st/mesa just reorders sampler views, so we only need to rebind those.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19859>
Diffstat (limited to 'src/mesa/main/uniform_query.cpp')
-rw-r--r-- | src/mesa/main/uniform_query.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 6135c80586a..70bf6816fca 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -1551,7 +1551,7 @@ _mesa_uniform(GLint location, GLsizei count, const GLvoid *values, */ if (sampler->unit != value || !sampler->bound) { if (!flushed) { - FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT | _NEW_PROGRAM, 0); + FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT, 0); flushed = true; } sampler->unit = value; @@ -1562,7 +1562,7 @@ _mesa_uniform(GLint location, GLsizei count, const GLvoid *values, } else { if (sh->Program->SamplerUnits[unit] != value) { if (!flushed) { - FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT | _NEW_PROGRAM, 0); + FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT, 0); flushed = true; } sh->Program->SamplerUnits[unit] = value; |