anv/formats: Refactor anv_get_format
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 16 May 2016 04:46:05 +0000 (21:46 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 May 2016 19:17:22 +0000 (12:17 -0700)
commitce375fba413a803f264335c7dd6e72b0003021f9
tree5df199342d72bfcc2b41e42c25b8f9e1575374fe
parent34198d798c003d45fd52ce88e56dbfac450afd91
anv/formats: Refactor anv_get_format

The new code removes the switch statement and instead handles depth/stencil
as up-front special cases.  This allows for potentially more complicated
color format handling in the future.
src/intel/vulkan/anv_formats.c