iris: Avoid replacing backing storage for buffers with no contents
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Nov 2019 08:21:06 +0000 (00:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 23 Dec 2019 00:18:30 +0000 (16:18 -0800)
commit97e9de17952d1382512007e4745c25b9c9106a46
treee7ef571c028a232bdf91c97554372fd56cb19469
parentc96c1141fba7d94b4b3b048111d8858ecac7cf55
iris: Avoid replacing backing storage for buffers with no contents

We might get asked to pitch the storage on a buffer that already has
no meaningful contents.  In this case, the existing buffer is as good
as a new one.
src/gallium/drivers/iris/iris_resource.c