i965/screen: Refactor query_dma_buf_formats
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jun 2018 18:13:40 +0000 (11:13 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Jun 2018 18:23:34 +0000 (11:23 -0700)
commiteeae4851494c16d2a6591550bfa6ef77d887ebe3
tree71a1f9f6388254866e3ada901d51c5a9c4d07948
parent3b54dd87f707a0fa40a1555bee64aeb06a381c27
i965/screen: Refactor query_dma_buf_formats

This reworks it to work like query_dma_buf_modifiers and, in particular,
makes it more flexible so that we can disallow a non-static set of
formats.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c