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

ask the driver for supported dmabuf formats

v2: rebase to master.
v3: return false on failure.
v4: use pscreen->is_format_supported instead of adding a new query.
    (Lucas Stach)
v5: stylefix to conform to formatting rules (Brian Paul). add fourcc list
    here instead of using struct image_format from v4.

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