This series enables fp16 fbconfigs and visuals by leveraging existing off-screen rendering support.
These formats can be used in conjunction with EXT_surface_SMPTE2086_metadata (not yet implemented by any drivers) to support EXT_gl_colorspace_scrgb / EXT_gl_colorspace_scrgb_linear, used in places like Android wide color gamut. While I have run this series against Piglit, I still need to sort out test coverage for these formats. If anyone has pointers to existing tests that would be really helpful. As an easy smoke test I have a modified version of kmscube: https://github.com/strassek/kmscube/commits/fp16 Kevin Strasser (6): dri: Support 64 bit rgba masks dri: Set bit for float configs drm-uapi: Add fp16 formats to drm_fourcc.h dri: Enable fp16 configs and visuals gallium/winsys/kms: Respect format bpp gbm: Add visuals and buffer handling for fp16 formats include/GL/internal/dri_interface.h | 11 ++- include/drm-uapi/drm_fourcc.h | 8 +++ src/egl/drivers/dri2/egl_dri2.c | 32 +++++++-- src/egl/drivers/dri2/egl_dri2.h | 6 +- src/egl/drivers/dri2/platform_android.c | 2 +- src/egl/drivers/dri2/platform_drm.c | 79 ++++++++++++++++++---- src/egl/drivers/dri2/platform_surfaceless.c | 2 +- src/egl/drivers/dri2/platform_wayland.c | 2 +- src/egl/drivers/dri2/platform_x11.c | 6 +- .../auxiliary/pipe-loader/driinfo_gallium.h | 1 + src/gallium/state_trackers/dri/dri2.c | 22 ++++++ src/gallium/state_trackers/dri/dri_drawable.c | 3 + src/gallium/state_trackers/dri/dri_screen.c | 26 ++++++- src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 2 +- src/gbm/backends/dri/gbm_dri.c | 38 ++++++++++- src/gbm/backends/dri/gbm_driint.h | 9 +-- src/gbm/main/gbm.c | 3 + src/gbm/main/gbm.h | 9 +++ src/glx/glxconfig.h | 2 +- src/loader/loader_dri3_helper.c | 5 ++ src/mesa/drivers/dri/common/dri_util.c | 8 +++ src/mesa/drivers/dri/common/utils.c | 31 ++++++++- src/mesa/drivers/dri/i965/intel_screen.c | 39 ++++++++++- src/mesa/main/mtypes.h | 2 +- src/mesa/state_tracker/st_cb_fbo.c | 3 + src/util/xmlpool/t_options.h | 5 ++ 26 files changed, 311 insertions(+), 45 deletions(-) -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev