mesa/main: use _mesa_has_FOO_bar for compressed format checks
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 15 Nov 2018 15:07:32 +0000 (16:07 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 3 Dec 2018 17:16:44 +0000 (18:16 +0100)
commitd70cfb322a0fa0893e0d56e5a9441b96e8a474b7
tree30d7f57bdd93d4f899775288a0ead091be19f3b8
parent70bfd312875810e23962a70c9ba98c8295d6a3fd
mesa/main: use _mesa_has_FOO_bar for compressed format checks

_mesa_has_FOO_bar() knows about the APIs these extensions should be
supported under, so let's use that to simplify these checks a bit.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/glformats.c