anv: prepare formats to handle disjoints sets
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 25 Sep 2017 17:10:20 +0000 (18:10 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 6 Oct 2017 10:45:56 +0000 (11:45 +0100)
commit18914715d1c2dc5861c9b76aa98c6b1debf5b711
treed893117ceeeb491efcb36f158de685b3501fc1da
parent42a8fd1670ab1ea213ca42348bccc358087a7396
anv: prepare formats to handle disjoints sets

Newer format enums start at offset 1000000000, making it impossible to
have them all in one table. This change splits the formats into sets
that we then access through indirection.

v2: rename format_extract to vk_to_anv_format (Chad/Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_formats.c