summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen8_state.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-12-01 12:52:56 -0800
committerJason Ekstrand <[email protected]>2015-12-03 13:43:53 -0800
commit299f8f1511cfa2bfab77038ba28a90bcfc136a5d (patch)
tree67e52488e99500512716b3f3e33a98b29b9714d7 /src/vulkan/gen8_state.c
parent407b8cc5e0e0e0382b7a350480a7654fcb2a164f (diff)
vk/0.210.0: More structure field renaming
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r--src/vulkan/gen8_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c
index 092e1ae7822..02394dc6f61 100644
--- a/src/vulkan/gen8_state.c
+++ b/src/vulkan/gen8_state.c
@@ -145,7 +145,7 @@ genX(image_view_init)(struct anv_image_view *iview,
* example, if Minimum Array Element is set to 1024 on a 2D surface,
* the range of this field is reduced to [0,1023].
*/
- depth = range->arraySize;
+ depth = range->layerCount;
/* From the Broadwell PRM >> RENDER_SURFACE_STATE::RenderTargetViewExtent:
*
@@ -242,7 +242,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);