summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_state.c
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/gen7_state.c
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/gen7_state.c')
-rw-r--r--src/vulkan/gen7_state.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c
index 6f1cb8553e9..a53b6e3faf3 100644
--- a/src/vulkan/gen7_state.c
+++ b/src/vulkan/gen7_state.c
@@ -219,8 +219,9 @@ gen7_image_view_init(struct anv_image_view *iview,
/* From bspec (DevSNB, DevIVB): "Set Tile Walk to TILEWALK_XMAJOR if
* Tiled Surface is False."
*/
- .TiledSurface = surface->tile_mode > LINEAR,
- .TileWalk = surface->tile_mode == YMAJOR ? TILEWALK_YMAJOR : TILEWALK_XMAJOR,
+ .TiledSurface = surface->tiling != ISL_TILING_LINEAR,
+ .TileWalk = surface->tiling == ISL_TILING_Y ?
+ TILEWALK_YMAJOR : TILEWALK_XMAJOR,
.VerticalLineStride = 0,
.VerticalLineStrideOffset = 0,