mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
radv: check allowed fast HTILE clears a bit earlier
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
193ad4748b
commit
9133bbf186
1 changed files with 5 additions and 0 deletions
|
|
@ -821,6 +821,11 @@ emit_fast_htile_clear(struct radv_cmd_buffer *cmd_buffer,
|
|||
if (clear_rect->layerCount != iview->image->info.array_size)
|
||||
return false;
|
||||
|
||||
if (!(aspects & VK_IMAGE_ASPECT_DEPTH_BIT) ||
|
||||
((vk_format_aspects(iview->image->vk_format) & VK_IMAGE_ASPECT_STENCIL_BIT) &&
|
||||
!(aspects & VK_IMAGE_ASPECT_STENCIL_BIT)))
|
||||
return false;
|
||||
|
||||
if (!radv_is_fast_clear_depth_allowed(clear_value) ||
|
||||
!(aspects & VK_IMAGE_ASPECT_DEPTH_BIT))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue