mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
radv: always initialize HTILE when the src layout is UNDEFINED
HTILE should always be initialized when transitioning from VK_IMAGE_LAYOUT_UNDEFINED to other image layouts. Otherwise, if an app does a transition from UNDEFINED to GENERAL, the driver doesn't initialize HTILE and it tries to decompress the depth surface. For some reasons, this results in VM faults. Cc: mesa-stable@lists.freedesktop.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107563 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
27b0661e30
commit
3a2e93147f
1 changed files with 1 additions and 2 deletions
|
|
@ -4477,8 +4477,7 @@ static void radv_handle_depth_image_transition(struct radv_cmd_buffer *cmd_buffe
|
||||||
if (!radv_image_has_htile(image))
|
if (!radv_image_has_htile(image))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (src_layout == VK_IMAGE_LAYOUT_UNDEFINED &&
|
if (src_layout == VK_IMAGE_LAYOUT_UNDEFINED) {
|
||||||
radv_layout_has_htile(image, dst_layout, dst_queue_mask)) {
|
|
||||||
/* TODO: merge with the clear if applicable */
|
/* TODO: merge with the clear if applicable */
|
||||||
radv_initialize_htile(cmd_buffer, image, range, 0);
|
radv_initialize_htile(cmd_buffer, image, range, 0);
|
||||||
} else if (!radv_layout_is_htile_compressed(image, src_layout, src_queue_mask) &&
|
} else if (!radv_layout_is_htile_compressed(image, src_layout, src_queue_mask) &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue