asahi: Set uses_sample_shading for background program
If we read gl_SampleID we need the lowering, even though we don't call into gather_info to set the bit for us. So set the bit manually. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23480>
This commit is contained in:
committed by
Marge Bot
parent
0b95d81150
commit
bffbe099df
@@ -49,6 +49,7 @@ build_background_op(nir_builder *b, enum agx_meta_op op, unsigned rt,
|
||||
if (msaa) {
|
||||
tex->src[1] =
|
||||
nir_tex_src_for_ssa(nir_tex_src_ms_index, nir_load_sample_id(b));
|
||||
b->shader->info.fs.uses_sample_shading = true;
|
||||
}
|
||||
|
||||
tex->coord_components = 2;
|
||||
|
||||
Reference in New Issue
Block a user