radv: only emit the depth bounds test values when set dynamically
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>
This commit is contained in:
parent
13652e7516
commit
672cf692fb
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue