summaryrefslogtreecommitdiffstats
path: root/src/vulkan/meta.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-05-21 15:55:27 -0700
committerJason Ekstrand <[email protected]>2015-05-21 15:55:29 -0700
commit519fe765e21e43b650ebf2acc9e28725e528a0de (patch)
tree509bc4934b4565bde4010c312ea9a8d5976e16b5 /src/vulkan/meta.c
parentccf2bf9b99573e0091b956fd0e3a23991f11e86c (diff)
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.
Diffstat (limited to 'src/vulkan/meta.c')
-rw-r--r--src/vulkan/meta.c5
1 files changed, 0 insertions, 5 deletions
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;