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:
parent
04c7452d0c
commit
8a535a8bc0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue