mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
radv: enable/disable predication for the DCC decompression pass
Performing a DCC decompression pass is currently pretty rare, but using predication allows the GPU to skip unnecessary passes. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
939e5a3823
commit
ff7daadca1
1 changed files with 2 additions and 2 deletions
|
|
@ -602,7 +602,7 @@ radv_emit_color_decompress(struct radv_cmd_buffer *cmd_buffer,
|
|||
pipeline = cmd_buffer->device->meta_state.fast_clear_flush.cmask_eliminate_pipeline;
|
||||
}
|
||||
|
||||
if (!decompress_dcc && radv_image_has_dcc(image)) {
|
||||
if (radv_image_has_dcc(image)) {
|
||||
radv_emit_set_predication_state_from_image(cmd_buffer, image, true);
|
||||
cmd_buffer->state.predicating = true;
|
||||
}
|
||||
|
|
@ -668,7 +668,7 @@ radv_emit_color_decompress(struct radv_cmd_buffer *cmd_buffer,
|
|||
&cmd_buffer->pool->alloc);
|
||||
|
||||
}
|
||||
if (!decompress_dcc && radv_image_has_dcc(image)) {
|
||||
if (radv_image_has_dcc(image)) {
|
||||
cmd_buffer->state.predicating = false;
|
||||
radv_emit_set_predication_state_from_image(cmd_buffer, image, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue