diff options
author | Jason Ekstrand <[email protected]> | 2016-05-13 17:24:39 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-17 12:17:22 -0700 |
commit | 13f5cee663f693bc2cafeda9c3d6fc3537334dde (patch) | |
tree | 277d143f4ede55a929c7bf958260a376ab0ce7a8 /src/intel/vulkan/anv_private.h | |
parent | c1c004e5b2b3fc64b1d2525b6148389d2148f8f4 (diff) |
anv/format: Simplify anv_format
Now that we have VkFormat introspection and we've removed everything that
tried to use anv_format for introspection, we no longer need most of what
was in anv_format.
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index a00f7d1f541..bcf34755a97 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1514,13 +1514,8 @@ struct anv_format_swizzle { }; struct anv_format { - const VkFormat vk_format; - const char *name; - enum isl_format isl_format; /**< RENDER_SURFACE_STATE.SurfaceFormat */ - const struct isl_format_layout *isl_layout; + enum isl_format isl_format; struct anv_format_swizzle swizzle; - bool has_depth; - bool has_stencil; }; const struct anv_format * @@ -1530,18 +1525,6 @@ enum isl_format anv_get_isl_format(VkFormat format, VkImageAspectFlags aspect, VkImageTiling tiling, struct anv_format_swizzle *swizzle); -static inline bool -anv_format_is_color(const struct anv_format *format) -{ - return !format->has_depth && !format->has_stencil; -} - -static inline bool -anv_format_is_depth_or_stencil(const struct anv_format *format) -{ - return format->has_depth || format->has_stencil; -} - /** * Subsurface of an anv_image. */ |