From: Jason Ekstrand Date: Sat, 23 Jan 2016 00:13:36 +0000 (-0800) Subject: gen8/state: Divide depth by 6 for cube maps for GEN8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35879fe8295cca5483d4eb42e19298e36c00b903;p=mesa.git 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. --- 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;