zink: fix unbinding generated gs on real gs bind

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23803>
This commit is contained in:
Mike Blumenkrantz
2023-06-21 15:45:37 -04:00
committed by Marge Bot
parent a30379488e
commit 041591d972
+1 -1
View File
@@ -1651,7 +1651,7 @@ bind_gfx_stage(struct zink_context *ctx, gl_shader_stage stage, struct zink_shad
if (ctx->gfx_stages[stage])
ctx->gfx_hash ^= ctx->gfx_stages[stage]->hash;
if (!shader && stage == MESA_SHADER_GEOMETRY) {
if (stage == MESA_SHADER_GEOMETRY && ctx->is_generated_gs_bound && (!shader || !shader->non_fs.parent)) {
ctx->inlinable_uniforms_valid_mask &= ~BITFIELD64_BIT(MESA_SHADER_GEOMETRY);
ctx->is_generated_gs_bound = false;
}