st/dri: support format modifier queries
authorVarad Gautam <varad.gautam@collabora.com>
Tue, 30 May 2017 11:53:47 +0000 (17:23 +0530)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 9 Jun 2017 13:12:37 +0000 (14:12 +0100)
commitf84bb6a9d91521de6da4c3d1ddd8de456761efaa
tree502684b9c50e877c825fcec95b5243de79149d70
parente0965a2c8e0b6ed7de23ce359af14ad74c670e8f
st/dri: support format modifier queries

ask the driver for supported modifiers for a given format.

v2: move to __DRIimageExtension v16.
v3: fail if the supplied format is not supported by driver.
v4: purge PIPE_CAP_QUERY_DMABUF_ATTRIBS.
v5:
- move to __DRIimageExtension v15, pass external_only to the driver.

Signed-off-by: Varad Gautam <varad.gautam@collabora.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de> (v4)
Cc: Lucas Stach <l.stach@pengutronix.de>
src/gallium/state_trackers/dri/dri2.c