From: Bas Nieuwenhuizen Date: Wed, 12 Apr 2017 22:04:23 +0000 (+0200) Subject: radv: Ignore CmdUpdateBuffer with size 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a535a8bc075debade456a4e48544bba483a99a8;p=mesa.git radv: Ignore CmdUpdateBuffer with size 0. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie --- 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);