[Mesa-dev] [PATCH v2] gallium: Implement APPLE_object_purgeable (iris, freedeno, vc4)

Eric Anholt eric at anholt.net
Wed Feb 27 15:55:48 UTC 2019

Chris Wilson <chris at chris-wilson.co.uk> writes:

> Quoting Eric Anholt (2019-02-27 02:19:32)
>> Overall, I'm hesitatant to land support for actually doing anything with
>> APPLE_object_purgeable when there are no functional tests of it.  I
>> don't mean to actually have tests that force purging, but at least
>> making sure that we don't accidentally break rendering by having marked
>> things purgeable at all.
> For test design you are thinking of a few of the more common operations
> with a purgeable/unpurgeable cycle in between? For each of the purgeable
> objects (i.e. every object type). And from a robustness pov, run through
> with GL_UNDEFINED_APPLE in between, so the objects are discarded before
> attempting to reuse (and gracefully failing).

For example, for the vc4 issue, submitting a draw, marking one of the
buffers involved purgeable, then read back the result of the draw to the
unrelated buffer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190227/3c422adc/attachment.sig>

More information about the mesa-dev mailing list