From: Marek Olšák Date: Fri, 18 Nov 2022 12:35:00 +0000 (-0500) Subject: mesa: don't flag _NEW_PROGRAM for "texture_unit -> sampler" mapping changes X-Git-Tag: upstream/23.3.3~15891 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a8d741b6d9bbca485a8e8191564763762977cc3;p=platform%2Fupstream%2Fmesa.git 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 Part-of: --- diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 6135c80..70bf681 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;