radv: re-emit NGG culling settings when conservative rast mode is dynamic
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 10 Nov 2022 14:24:24 +0000 (15:24 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Nov 2022 08:20:23 +0000 (08:20 +0000)
Found by inspection.

Fixes: fbed3aed4aa ("radv: add support for dynamic conservative rasterization mode")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19651>

src/amd/vulkan/radv_cmd_buffer.c

index d5eff7eb11ef50d451e6e5e66f0a094d1b03fd9d..530dd85d08d944e2a5cac7a69dd67ab9999a4f89 100644 (file)
@@ -7997,7 +7997,8 @@ radv_emit_ngg_culling_state(struct radv_cmd_buffer *cmd_buffer, const struct rad
       cmd_buffer->state.dirty &
       (RADV_CMD_DIRTY_PIPELINE |
        RADV_CMD_DIRTY_DYNAMIC_CULL_MODE | RADV_CMD_DIRTY_DYNAMIC_FRONT_FACE |
-       RADV_CMD_DIRTY_DYNAMIC_RASTERIZER_DISCARD_ENABLE | RADV_CMD_DIRTY_DYNAMIC_VIEWPORT);
+       RADV_CMD_DIRTY_DYNAMIC_RASTERIZER_DISCARD_ENABLE | RADV_CMD_DIRTY_DYNAMIC_VIEWPORT |
+       RADV_CMD_DIRTY_DYNAMIC_CONSERVATIVE_RAST_MODE);
 
    /* Check small draw status:
     * For small draw calls, we disable culling by setting the SGPR to 0.