Revert "radv: Initialize DCC on transition from preinitialized."

Submitted by Andres Rodriguez on Jan. 23, 2018, 6:24 p.m.

Details

Message ID 20180123182444.20487-1-andresx7@gmail.com
State New
Headers show
Series "Revert "radv: Initialize DCC on transition from preinitialized."" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Andres Rodriguez Jan. 23, 2018, 6:24 p.m.
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@gmail.com>
---
 src/amd/vulkan/radv_cmd_buffer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch hide | download patch | download mbox

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);