mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radv: Initialize DCC on transition from preinitialized.
Looks like the decompress does not handle invalid encodings well,
which happens with random memory. Of course apps should not use it
with random memory, but they are allowed to ....
Fixes: 44fcf58744 "radv: Disable DCC for GENERAL layout and compute transfer dest."
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
e2b9296146
commit
2ce11ac11f
1 changed files with 3 additions and 1 deletions
|
|
@ -4026,7 +4026,9 @@ static void radv_handle_dcc_image_transition(struct radv_cmd_buffer *cmd_buffer,
|
|||
unsigned dst_queue_mask,
|
||||
const VkImageSubresourceRange *range)
|
||||
{
|
||||
if (src_layout == VK_IMAGE_LAYOUT_UNDEFINED) {
|
||||
if (src_layout == VK_IMAGE_LAYOUT_PREINITIALIZED) {
|
||||
radv_initialize_dcc(cmd_buffer, image, 0xffffffffu);
|
||||
} else if (src_layout == VK_IMAGE_LAYOUT_UNDEFINED) {
|
||||
radv_initialize_dcc(cmd_buffer, image,
|
||||
radv_layout_dcc_compressed(image, dst_layout, dst_queue_mask) ?
|
||||
0x20202020u : 0xffffffffu);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue