radv: only emit the depth bounds test values when set dynamically
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 Oct 2017 15:41:02 +0000 (17:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 26 Oct 2017 07:37:00 +0000 (09:37 +0200)
The depth bounds test values are either set at pipeline
creation or dynamically using vkCmdSetDepthBounds().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c

index 807283be1d8133ccd9122d4fa260d343329b54ef..ed0a726380b9df3d1a7b0de50877da4b8ec11a78 100644 (file)
@@ -1523,8 +1523,7 @@ radv_cmd_buffer_flush_dynamic_state(struct radv_cmd_buffer *cmd_buffer)
                                       RADV_CMD_DIRTY_DYNAMIC_STENCIL_COMPARE_MASK))
                radv_emit_stencil(cmd_buffer);
 
-       if (cmd_buffer->state.dirty & (RADV_CMD_DIRTY_PIPELINE |
-                                      RADV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS))
+       if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS)
                radv_emit_depth_bounds(cmd_buffer);
 
        if (cmd_buffer->state.dirty & (RADV_CMD_DIRTY_PIPELINE |