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 <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26011>
This commit is contained in:
Alyssa Rosenzweig 2023-10-22 18:35:38 -04:00 committed by Marge Bot
parent 95ad0c750c
commit cd0a01522f

View file

@ -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");