[Mesa-dev] [PATCH 1/2] radv: Ignore CmdUpdateBuffer with size 0.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Apr 12 22:09:56 UTC 2017
Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
---
src/amd/vulkan/radv_meta_buffer.c | 3 +++
1 file changed, 3 insertions(+)
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);
--
2.12.2
More information about the mesa-dev
mailing list