radv: tidy up dirtying RBPLUS state in radv_bind_dynamic_state()
To dirty driver specific states at the same place. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22472>
This commit is contained in:
committed by
Marge Bot
parent
ba71b142f8
commit
3ad751f043
@@ -136,10 +136,6 @@ radv_bind_dynamic_state(struct radv_cmd_buffer *cmd_buffer, const struct radv_dy
|
||||
dest_mask |= RADV_DYNAMIC_COLOR_WRITE_MASK;
|
||||
}
|
||||
}
|
||||
|
||||
if (cmd_buffer->device->physical_device->rad_info.rbplus_allowed &&
|
||||
(dest_mask & RADV_DYNAMIC_COLOR_WRITE_MASK))
|
||||
cmd_buffer->state.dirty |= RADV_CMD_DIRTY_RBPLUS;
|
||||
}
|
||||
|
||||
if (copy_mask & RADV_DYNAMIC_COLOR_BLEND_ENABLE) {
|
||||
@@ -251,6 +247,11 @@ radv_bind_dynamic_state(struct radv_cmd_buffer *cmd_buffer, const struct radv_dy
|
||||
RADV_DYNAMIC_PRIMITIVE_TOPOLOGY)) {
|
||||
cmd_buffer->state.dirty |= RADV_CMD_DIRTY_GUARDBAND;
|
||||
}
|
||||
|
||||
if (cmd_buffer->device->physical_device->rad_info.rbplus_allowed &&
|
||||
(dest_mask & RADV_DYNAMIC_COLOR_WRITE_MASK)) {
|
||||
cmd_buffer->state.dirty |= RADV_CMD_DIRTY_RBPLUS;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user