mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 14:28:08 +02:00
radv: allow more fast clears for depth surfaces without TC-compat HTILE
With HTILE only, all values between 0.0 and 1.0 are fetchable. This should allow more fast clears for depth surfaces where TC-compat HTILE is disabled. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10035>
This commit is contained in:
parent
269795c838
commit
e58ab64223
1 changed files with 4 additions and 3 deletions
|
|
@ -980,9 +980,10 @@ radv_can_fast_clear_depth(struct radv_cmd_buffer *cmd_buffer, const struct radv_
|
||||||
(clear_value.depth < 0.0 || clear_value.depth > 1.0))
|
(clear_value.depth < 0.0 || clear_value.depth > 1.0))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (((aspects & VK_IMAGE_ASPECT_DEPTH_BIT) && !radv_is_fast_clear_depth_allowed(clear_value)) ||
|
if (radv_image_is_tc_compat_htile(iview->image) &&
|
||||||
((aspects & VK_IMAGE_ASPECT_STENCIL_BIT) &&
|
(((aspects & VK_IMAGE_ASPECT_DEPTH_BIT) && !radv_is_fast_clear_depth_allowed(clear_value)) ||
|
||||||
!radv_is_fast_clear_stencil_allowed(clear_value)))
|
((aspects & VK_IMAGE_ASPECT_STENCIL_BIT) &&
|
||||||
|
!radv_is_fast_clear_stencil_allowed(clear_value))))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue