From 30a8b8d2df466100aabe0efcf09af714246b2fb3 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 14 Jan 2022 11:03:34 +0200 Subject: [PATCH] intel/fs: disable VRS when omask is written As indicated by VkPhysicalDeviceFragmentShadingRatePropertiesKHR::fragmentShadingRateWithShaderSampleMask our implementation will clamp to 1x1 when reading samplemask or writing to samplemask. This fixes vkd3d-proton tests test_sample_mask_dxbc & test_sample_mask_dxil Signed-off-by: Lionel Landwerlin Fixes: b6332fc4a8ae58 ("intel/compiler: handle coarse pixel in render target writes descriptors") Reviewed-by: Jason Ekstrand Part-of: --- src/intel/compiler/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 340fcd6203f..83e0f2c72aa 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -9552,6 +9552,7 @@ brw_nir_populate_wm_prog_data(const nir_shader *shader, prog_data->per_coarse_pixel_dispatch = key->coarse_pixel && + !prog_data->uses_omask && !prog_data->persample_dispatch && !prog_data->uses_sample_mask && (prog_data->computed_depth_mode == BRW_PSCDEPTH_OFF) &&