On Tue, Apr 7, 2015 at 6:46 PM, Frank Henigman <fjhenig...@google.com> wrote: > The name "surfaceless" suits me. > > Does this platform need to provide a hint to the user about buffer format? > Platform drm does this via the EGL_NATIVE_VISUAL_ID query of > eglGetConfigAttrib(), returning a gbm format value. Unless we do the > same or similar here, how does the user robustly find the right format > for allocating buffers?
GBM provides int gbm_device_is_format_supported(struct gbm_device *gbm, uint32_t format, uint32_t usage); and you can use that to find a format that works with GBM_BO_USE_RENDERING. Kristian > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev