diff options
author | Kevin Strasser <[email protected]> | 2019-01-24 16:55:33 -0800 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2019-08-21 18:36:57 +0000 |
commit | 482ed4347d2c672423fcc4659cb20aee19dad7fd (patch) | |
tree | 265c939f1a8b2cb400ca0d6a0c79eade2817d7fa /src/gbm | |
parent | 86d31c2c120c458a8df99921ba49773f9e44651a (diff) |
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 <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gbm')
-rw-r--r-- | src/gbm/backends/dri/gbm_driint.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h index 75299bdb846..a8bfa39e522 100644 --- a/src/gbm/backends/dri/gbm_driint.h +++ b/src/gbm/backends/dri/gbm_driint.h @@ -55,6 +55,7 @@ struct gbm_dri_visual { unsigned int blue; unsigned int alpha; } rgba_sizes; + bool is_float; }; struct gbm_dri_device { |