mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radv: Use correct image view comparison for fast clears.
The if is actually returning true on success, enabling fast clears, so we need to have the test succeed when the iview dimensions are right. Fixes:d5400a5ec2"radv: provide a helper for comparing an image extents." Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commita777c3d7cb)
This commit is contained in:
parent
cf2e4490c3
commit
da17740ea7
1 changed files with 1 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ static bool depth_view_can_fast_clear(struct radv_cmd_buffer *cmd_buffer,
|
|||
iview->base_mip == 0 &&
|
||||
iview->base_layer == 0 &&
|
||||
radv_layout_is_htile_compressed(iview->image, layout, queue_mask) &&
|
||||
!radv_image_extent_compare(iview->image, &iview->extent))
|
||||
radv_image_extent_compare(iview->image, &iview->extent))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue