[Mesa-dev] [PATCH v2 2/8] egl: refactor color_buffers structure for deduplicating

Emil Velikov emil.l.velikov at gmail.com
Wed Oct 18 10:01:24 UTC 2017


On 17 October 2017 at 21:49, Gurchetan Singh
<gurchetansingh at chromium.org> wrote:
> Can you wrap color_buffers around:
>
> #if defined(HAVE_WAYLAND_PLATFORM) || defined(HAVE_DRM_PLATFORM) ||
> defined(HAVE_ANDROID_PLATFORM)
>
> flags?  This is because platform_surfaceless has no native surfaces and it's
> good to be explicit in that regard.
>
Analogous to my reply in 1/8, I'd vote to keep it.

Sure surfaceless does not have native surfaces, yet
 - one should be able to swap the separate __DRIimage *{front,back?}
with the struct
 - using the locked/age variables + associated helpers one could
implement EXT_buffer_age for the platform

Just an idea for the future and I think it sounds reasonable?
-Emil


More information about the mesa-dev mailing list