anv/image_view: Separate vulkan and isl formats
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jan 2016 22:09:17 +0000 (14:09 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 00:08:05 +0000 (16:08 -0800)
commitf665fdf0e7295808edc2de3397f6f434bf223b39
tree5e43724a63b4ce3a74749e0babb41cfa6a5f79d4
parentceb05131daffea3de2777cfb22a9be2dc53d88cd
anv/image_view: Separate vulkan and isl formats

Previously, anv_image_view had a anv_format pointer that we used for
everything.  This commit replaces that pointer with a VkFormat enum copied
from the API and an isl_format.  In order to implement RGB formats, we have
to use a different isl_format for the actual surface state than the obvious
one from the VkFormat.  Separating the two helps us keep things streight.
src/vulkan/anv_cmd_buffer.c
src/vulkan/anv_image.c
src/vulkan/anv_meta_clear.c
src/vulkan/anv_private.h
src/vulkan/gen7_cmd_buffer.c
src/vulkan/gen7_state.c
src/vulkan/gen8_cmd_buffer.c
src/vulkan/gen8_state.c