From 519fe765e21e43b650ebf2acc9e28725e528a0de Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 21 May 2015 15:55:27 -0700 Subject: vk: Do relocations in surface states when they are created Previously, we waited until later and did a pass through the used surfaces and did the relocations then. This lead to doing double-relocations which was causing us to get bogus surface offsets. --- src/vulkan/meta.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/vulkan/meta.c') diff --git a/src/vulkan/meta.c b/src/vulkan/meta.c index cd4fbaf87f3..c4d245614ce 100644 --- a/src/vulkan/meta.c +++ b/src/vulkan/meta.c @@ -185,11 +185,6 @@ anv_cmd_buffer_copy_render_targets(struct anv_cmd_buffer *cmd_buffer, for (uint32_t i = 0; i < fb->color_attachment_count; i++) { bindings->descriptors[VK_SHADER_STAGE_FRAGMENT].surfaces[i] = old_bindings->descriptors[VK_SHADER_STAGE_FRAGMENT].surfaces[i]; - - bindings->descriptors[VK_SHADER_STAGE_FRAGMENT].relocs[i].bo = - old_bindings->descriptors[VK_SHADER_STAGE_FRAGMENT].relocs[i].bo; - bindings->descriptors[VK_SHADER_STAGE_FRAGMENT].relocs[i].offset = - old_bindings->descriptors[VK_SHADER_STAGE_FRAGMENT].relocs[i].offset; } cmd_buffer->dirty |= ANV_CMD_BUFFER_DESCRIPTOR_SET_DIRTY; -- cgit v1.2.3