aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-03-02 14:33:51 -0800
committerNanley Chery <[email protected]>2016-03-03 11:26:42 -0800
commitd20f6abc85c1dc4f4a2aadd352b64502930a0541 (patch)
treea134acd7d16a0d27b85c26158c7d653ba9fb6666
parent318b67d1578213b802443f06f767a1c9d6d00310 (diff)
anv/meta: Use blitter API for state-handling in Buffer Update/Copy
Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r--src/intel/vulkan/anv_meta_blit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_meta_blit.c b/src/intel/vulkan/anv_meta_blit.c
index bd1c9798823..3fc46318150 100644
--- a/src/intel/vulkan/anv_meta_blit.c
+++ b/src/intel/vulkan/anv_meta_blit.c
@@ -601,7 +601,7 @@ void anv_CmdCopyBuffer(
struct anv_meta_saved_state saved_state;
- meta_prepare_blit(cmd_buffer, &saved_state);
+ anv_meta_begin_blit2d(cmd_buffer, &saved_state);
for (unsigned r = 0; r < regionCount; r++) {
uint64_t src_offset = src_buffer->offset + pRegions[r].srcOffset;
@@ -661,7 +661,7 @@ void anv_CmdCopyBuffer(
}
}
- meta_finish_blit(cmd_buffer, &saved_state);
+ anv_meta_end_blit2d(cmd_buffer, &saved_state);
}
void anv_CmdUpdateBuffer(
@@ -675,7 +675,7 @@ void anv_CmdUpdateBuffer(
ANV_FROM_HANDLE(anv_buffer, dst_buffer, dstBuffer);
struct anv_meta_saved_state saved_state;
- meta_prepare_blit(cmd_buffer, &saved_state);
+ anv_meta_begin_blit2d(cmd_buffer, &saved_state);
/* We can't quite grab a full block because the state stream needs a
* little data at the top to build its linked list.
@@ -714,7 +714,7 @@ void anv_CmdUpdateBuffer(
pData = (void *)pData + copy_size;
}
- meta_finish_blit(cmd_buffer, &saved_state);
+ anv_meta_end_blit2d(cmd_buffer, &saved_state);
}
static VkFormat