anv: disable injection of primitive shading rate for mesh

It's not needed and causes issues for mesh code (it doesn't
mark the output as per-primitive, which confuses brw_compute_mue_map)

Fixes many tests matching:
dEQP-VK.fragment_shading_rate.dynamic_rendering.*.ms

Fixes: 1542ab70eb ("anv: handle primitive shading rate for mesh")
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16196>
This commit is contained in:
Marcin Ślusarz
2022-05-06 14:38:43 +02:00
committed by Marge Bot
parent 42b551fe7f
commit b6ba24cd62

View File

@@ -1751,7 +1751,8 @@ anv_pipeline_compile_graphics(struct anv_graphics_pipeline *pipeline,
const struct intel_device_info *devinfo = &pipeline->base.device->info; const struct intel_device_info *devinfo = &pipeline->base.device->info;
if (devinfo->has_coarse_pixel_primitive_and_cb && if (devinfo->has_coarse_pixel_primitive_and_cb &&
stages[MESA_SHADER_FRAGMENT].entrypoint && stages[MESA_SHADER_FRAGMENT].entrypoint &&
stages[MESA_SHADER_FRAGMENT].key.wm.coarse_pixel) { stages[MESA_SHADER_FRAGMENT].key.wm.coarse_pixel &&
stages[MESA_SHADER_MESH].entrypoint == NULL) {
struct anv_pipeline_stage *last_psr = NULL; struct anv_pipeline_stage *last_psr = NULL;
for (unsigned i = 0; i < ARRAY_SIZE(shader_order); i++) { for (unsigned i = 0; i < ARRAY_SIZE(shader_order); i++) {