mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 17:40:30 +01:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue