anv: emit sample mask state independent of fragment stage
authorTapani Pälli <tapani.palli@intel.com>
Thu, 8 Dec 2022 07:59:11 +0000 (09:59 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 08:00:42 +0000 (08:00 +0000)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7861
Fixes: 9f6af43743d ("anv: dynamic multisample sample mask")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20221>

src/intel/vulkan/gfx8_cmd_buffer.c

index e8a01ef..dd10d3a 100644 (file)
@@ -257,13 +257,9 @@ genX(cmd_emit_te)(struct anv_cmd_buffer *cmd_buffer)
 static void
 genX(cmd_emit_sample_mask)(struct anv_cmd_buffer *cmd_buffer)
 {
-   struct anv_graphics_pipeline *pipeline = cmd_buffer->state.gfx.pipeline;
    const struct vk_dynamic_graphics_state *dyn =
       &cmd_buffer->vk.dynamic_graphics_state;
 
-   if (!anv_pipeline_has_stage(pipeline, MESA_SHADER_FRAGMENT))
-      return;
-
    /* From the Vulkan 1.0 spec:
    *    If pSampleMask is NULL, it is treated as if the mask has all bits
     *    enabled, i.e. no coverage is removed from fragments.