Module: Mesa Branch: main Commit: cd0a01522f22646f840cfc5e7557e9f8f84a1e5e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd0a01522f22646f840cfc5e7557e9f8f84a1e5e
Author: Alyssa Rosenzweig <[email protected]> Date: Sun Oct 22 18:35:38 2023 -0400 ttn: Set sample shading for sample ID reads Fixes on asahi arb_stencil_texturing-blit_corrupts_state -auto GL_TEXTURE_2D_MULTISAMPLE. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26011> --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 17c5d372abe..bc53d47069b 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -630,6 +630,7 @@ ttn_src_for_file_and_index(struct ttn_compile *c, unsigned file, unsigned index, break; case TGSI_SEMANTIC_SAMPLEID: load = nir_load_sample_id(b); + b->shader->info.fs.uses_sample_shading = true; break; default: unreachable("bad system value");
