radv: Set uses_sample_shading for copy shaders

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14020>
This commit is contained in:
Jason Ekstrand
2022-07-13 13:04:46 -05:00
committed by Marge Bot
parent 9d438799c8
commit 4f3bf712cf
+6
View File
@@ -537,6 +537,8 @@ build_nir_copy_fragment_shader(struct radv_device *device, texel_fetch_build_fun
nir_ssa_def *color = txf_func(&b, device, tex_pos, is_3d, is_multisampled);
nir_store_var(&b, color_out, color, 0xf);
b.shader->info.fs.uses_sample_shading = is_multisampled;
return b.shader;
}
@@ -560,6 +562,8 @@ build_nir_copy_fragment_shader_depth(struct radv_device *device, texel_fetch_bui
nir_ssa_def *color = txf_func(&b, device, tex_pos, is_3d, is_multisampled);
nir_store_var(&b, color_out, color, 0x1);
b.shader->info.fs.uses_sample_shading = is_multisampled;
return b.shader;
}
@@ -583,6 +587,8 @@ build_nir_copy_fragment_shader_stencil(struct radv_device *device, texel_fetch_b
nir_ssa_def *color = txf_func(&b, device, tex_pos, is_3d, is_multisampled);
nir_store_var(&b, color_out, color, 0x1);
b.shader->info.fs.uses_sample_shading = is_multisampled;
return b.shader;
}