summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-22 16:13:36 -0800
committerJason Ekstrand <[email protected]>2016-01-22 16:14:54 -0800
commit35879fe8295cca5483d4eb42e19298e36c00b903 (patch)
tree51ba43925b408aa19732c831afc936e6a2cd90c3
parent3cd8c0bb04ffd56a843bc55921a6a174f04ebe14 (diff)
gen8/state: Divide depth by 6 for cube maps for GEN8
For Broadwell cube maps, MinimumArrayElement is in terms of 2d slices (a multiple of 6) but Depth is in terms of whole cubes.
-rw-r--r--src/vulkan/gen8_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c
index 823bfa047db..3c9d15257a3 100644
--- a/src/vulkan/gen8_state.c
+++ b/src/vulkan/gen8_state.c
@@ -270,7 +270,7 @@ genX(fill_image_surface_state)(struct anv_device *device, void *state_map,
#else
/* Same as SURFTYPE_2D */
template.MinimumArrayElement = range->baseArrayLayer;
- template.Depth = range->layerCount - 1;
+ template.Depth = range->layerCount / 6 - 1;
template.RenderTargetViewExtent = template.Depth;
#endif
break;