From 8a535a8bc075debade456a4e48544bba483a99a8 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Thu, 13 Apr 2017 00:04:23 +0200 Subject: radv: Ignore CmdUpdateBuffer with size 0. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie --- src/amd/vulkan/radv_meta_buffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/amd') 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); -- cgit v1.2.3