diff options
author | Thomas Hellstrom <[email protected]> | 2018-04-12 14:41:47 +0200 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2018-04-19 13:42:51 +0200 |
commit | e0c08183fb20399128ff363467e00aa1e8767886 (patch) | |
tree | e7bbcd191f704a11cd2a0bd5f3c070fa1476b10a /src/amd | |
parent | 79487c427ee2f82bc947ac1dffd6e2374efaa90f (diff) |
svga: Fix incorrect advertizing of EGL_KHR_gl_colorspace
When advertizing this extension, egl_dri2 uses the DRI2_RENDERER_QUERY
extension to query whether an sRGB format is supported. That extension will
query our driver with the BIND flag PIPE_BIND_RENDER_TARGET rather than
PIPE_BIND_DISPLAY_TARGET which is used when building the configs.
We only return the correct value for PIPE_BIND_DISPLAY_TARGET.
The inconsistency causes EGL to crash at surface initialization if sRGB is
not supported. Fix this by supporting both bind flags.
Testing done:
piglit egl_gl_colorspace srgb
Cc: <[email protected]>
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/amd')
0 files changed, 0 insertions, 0 deletions