summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta_buffer.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-04-13 00:04:23 +0200
committerBas Nieuwenhuizen <[email protected]>2017-04-13 16:06:34 +0200
commit8a535a8bc075debade456a4e48544bba483a99a8 (patch)
treeb10b0d436937fcfc437d7405efbdc081763af416 /src/amd/vulkan/radv_meta_buffer.c
parent04c7452d0ca9b134685eaff4fdebce8734470bd9 (diff)
radv: Ignore CmdUpdateBuffer with size 0.
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_buffer.c')
-rw-r--r--src/amd/vulkan/radv_meta_buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta_buffer.c b/src/amd/vulkan/radv_meta_buffer.c
index 1e94f3b5866..cfa0b9320e2 100644
--- a/src/amd/vulkan/radv_meta_buffer.c
+++ b/src/amd/vulkan/radv_meta_buffer.c
@@ -523,6 +523,9 @@ void radv_CmdUpdateBuffer(
assert(!(dataSize & 3));
assert(!(va & 3));
+ if (!dataSize)
+ return;
+
if (dataSize < 4096) {
si_emit_cache_flush(cmd_buffer);