radv: Ignore CmdUpdateBuffer with size 0.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Bas Nieuwenhuizen 2017-04-13 00:04:23 +02:00
parent 04c7452d0c
commit 8a535a8bc0
1 changed files with 3 additions and 0 deletions

View File

@ -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);