st/dri: Don't require a dri_format for image creation.
authorEric Anholt <eric@anholt.net>
Mon, 16 Jul 2018 22:22:57 +0000 (15:22 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Jul 2018 18:26:12 +0000 (11:26 -0700)
commit945524ba0e09447754abc755698e32335d5dbc9b
tree48ff11b3352f362ac47e75940614c23c8ce662d8
parentf6750456c54025e30844ee345b1a1c4f997eb3eb
st/dri: Don't require a dri_format for image creation.

Nothing in EGL_KHR_gl_image.txt seems to let us deny creation based on
formats, and doing so causes many failures in
dEQP-EGL.functional.image.api.*

The NONE value we were protecting from only gets looked at in the
__DRI_IMAGE_ATTRIB_FORMAT and __DRI_IMAGE_ATTRIB_FOURCC queries, which are
used from wayland and gbm (which throw an error cleanly on unknown format)
and DMABUF export.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/dri_helpers.c