summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_private.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-11-13 10:24:57 -0800
committerChad Versace <[email protected]>2015-11-13 10:44:09 -0800
commitba467467f49577381be651643dd7ff184b998590 (patch)
tree9fae76e81b846109946723ad7a9cf525b0bddb19 /src/vulkan/anv_private.h
parentaf392916ff3856c8e606212914c1623674c49aff (diff)
anv: Use enum isl_tiling everywhere
In anv_surface and anv_image_create_info, replace member 'uint8_t tile_mode' with 'enum isl_tiling'. As a nice side-effect, this patch also reduces bug potential because the hardware enum values for tile modes are unstable across hardware generations.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r--src/vulkan/anv_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h
index 8269c7e8509..a6728392130 100644
--- a/src/vulkan/anv_private.h
+++ b/src/vulkan/anv_private.h
@@ -1272,7 +1272,7 @@ struct anv_surface {
uint8_t v_align; /**< RENDER_SURFACE_STATE.SurfaceVerticalAlignment */
/** \} */
- uint8_t tile_mode; /**< RENDER_SURFACE_STATE.TileMode */
+ enum isl_tiling tiling;
};
struct anv_image {
@@ -1333,8 +1333,8 @@ struct anv_image_view {
struct anv_image_create_info {
const VkImageCreateInfo *vk_info;
- bool force_tile_mode;
- uint8_t tile_mode;
+ bool force_tiling;
+ enum isl_tiling tiling;
uint32_t stride;
};