diff options
Diffstat (limited to 'src/vulkan/gen7_state.c')
-rw-r--r-- | src/vulkan/gen7_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c index a30de348732..e4cf552f90d 100644 --- a/src/vulkan/gen7_state.c +++ b/src/vulkan/gen7_state.c @@ -231,8 +231,8 @@ genX(image_view_init)(struct anv_image_view *iview, }; uint32_t depth = 1; - if (range->arraySize > 1) { - depth = range->arraySize; + if (range->layerCount > 1) { + depth = range->layerCount; } else if (image->extent.depth > 1) { depth = image->extent.depth; } @@ -300,7 +300,7 @@ genX(image_view_init)(struct anv_image_view *iview, * sampler engine is [SurfaceMinLOD, SurfaceMinLOD + MIPCountLOD]. */ surface_state.SurfaceMinLOD = range->baseMipLevel; - surface_state.MIPCountLOD = range->mipLevels - 1; + surface_state.MIPCountLOD = range->levelCount - 1; GENX(RENDER_SURFACE_STATE_pack)(NULL, iview->nonrt_surface_state.map, &surface_state); |