egl: Handle dri configs with floating point pixel data
authorKevin Strasser <kevin.strasser@intel.com>
Fri, 25 Jan 2019 00:55:33 +0000 (16:55 -0800)
committerAdam Jackson <ajax@nwnk.net>
Wed, 21 Aug 2019 18:36:57 +0000 (18:36 +0000)
commit482ed4347d2c672423fcc4659cb20aee19dad7fd
tree265c939f1a8b2cb400ca0d6a0c79eade2817d7fa
parent86d31c2c120c458a8df99921ba49773f9e44651a
egl: Handle dri configs with floating point pixel data

In the case that __DRI_ATTRIB_FLOAT_BIT is set in the dri config, set
EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT in the egl config. Add a field to the
platform driver visual to indicate if it has components that are in floating
point form.

Signed-off-by: Kevin Strasser <kevin.strasser@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_drm.c
src/gbm/backends/dri/gbm_driint.h