summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-12-08 14:25:28 -0800
committerChad Versace <[email protected]>2015-12-08 14:25:28 -0800
commitdb66424218661c7beedf7966a5cc13929fcc01f0 (patch)
tree508c891d6e42ac88c9f45e5d9db2842778c28e87 /src
parentf4aee5d82fedcb426e34bb0503d004d6f2e39f73 (diff)
anv: Remove unused anv_image_view_info_for_vk_image_view_type()
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/anv_image.c12
-rw-r--r--src/vulkan/anv_private.h9
2 files changed, 6 insertions, 15 deletions
diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c
index 68f9b086855..1205babef07 100644
--- a/src/vulkan/anv_image.c
+++ b/src/vulkan/anv_image.c
@@ -34,6 +34,12 @@
*/
#include "gen8_pack.h"
+struct anv_image_view_info {
+ uint8_t surface_type; /**< RENDER_SURFACE_STATE.SurfaceType */
+ bool is_array:1; /**< RENDER_SURFACE_STATE.SurfaceArray */
+ bool is_cube:1; /**< RENDER_SURFACE_STATE.CubeFaceEnable* */
+};
+
static const uint8_t anv_halign[] = {
[4] = HALIGN4,
[8] = HALIGN8,
@@ -65,12 +71,6 @@ anv_image_view_info_table[] = {
#undef INFO
};
-struct anv_image_view_info
-anv_image_view_info_for_vk_image_view_type(VkImageViewType type)
-{
- return anv_image_view_info_table[type];
-}
-
/**
* The \a format argument is required and overrides any format found in struct
* anv_image_create_info. Exactly one bit must be set in \a aspect.
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h
index 4b672d38f1c..77aa3852259 100644
--- a/src/vulkan/anv_private.h
+++ b/src/vulkan/anv_private.h
@@ -1398,15 +1398,6 @@ anv_format_is_depth_or_stencil(const struct anv_format *format)
return format->depth_format || format->has_stencil;
}
-struct anv_image_view_info {
- uint8_t surface_type; /**< RENDER_SURFACE_STATE.SurfaceType */
- bool is_array:1; /**< RENDER_SURFACE_STATE.SurfaceArray */
- bool is_cube:1; /**< RENDER_SURFACE_STATE.CubeFaceEnable* */
-};
-
-struct anv_image_view_info
-anv_image_view_info_for_vk_image_view_type(VkImageViewType type);
-
/**
* Subsurface of an anv_image.
*/