intel/blorp: Set uses_sample_shading for MSAA blit shaders

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14020>
This commit is contained in:
Jason Ekstrand 2021-12-01 23:15:09 -06:00 committed by Marge Bot
parent cc980ee0ed
commit 9d438799c8
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ blorp_blit_get_frag_coords(nir_builder *b,
coord = nir_isub(b, coord, nir_load_var(b, v->v_dst_offset));
if (key->persample_msaa_dispatch) {
b->shader->info.fs.uses_sample_shading = true;
return nir_vec3(b, nir_channel(b, coord, 0), nir_channel(b, coord, 1),
nir_load_sample_id(b));
} else {