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>
*/
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;
} 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;