[Mesa-dev] [PATCH] Revert "radv: Initialize DCC on transition from preinitialized."
Andres Rodriguez
andresx7 at gmail.com
Tue Jan 23 18:24:44 UTC 2018
This reverts commit 2ce11ac11fee594ca01608c4006b38c0c8ea37ff.
SteamVR has been updated to correctly use UNDEFINED as the initial
layout transition state. So we should go back to behaving according to
the spec in radv.
Fixes: 44fcf58744 "radv: Disable DCC for GENERAL layout and compute transfer dest."
Signed-off-by: Andres Rodriguez <andresx7 at gmail.com>
---
src/amd/vulkan/radv_cmd_buffer.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 172f95e7c9..67799a13cc 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -4026,9 +4026,7 @@ 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_PREINITIALIZED) {
- radv_initialize_dcc(cmd_buffer, image, 0xffffffffu);
- } else if (src_layout == VK_IMAGE_LAYOUT_UNDEFINED) {
+ 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);
--
2.14.1
More information about the mesa-dev
mailing list