summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-01-26 22:56:21 -0800
committerJason Ekstrand <[email protected]>2016-01-27 15:12:42 -0800
commit02629a16d1bb1f065a65ca7eb01b150339de6cd4 (patch)
tree814e25e1fe4ddef5e2644a25927d3e755d2a1815
parenta6ecfe1dd32ca3779c904b4b9b8148267144a73a (diff)
isl: Add logical z offset to GEN4_2D surfaces
3D surfaces in Skylake are stored with ISL_DIM_LAYOUT_GEN4_2D. Any delta in the logical z offset causes an equivalent delta in the surface's array layer.
-rw-r--r--src/isl/isl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/isl/isl.c b/src/isl/isl.c
index 716ce29fe8e..ec6323741e8 100644
--- a/src/isl/isl.c
+++ b/src/isl/isl.c
@@ -1309,7 +1309,8 @@ get_image_offset_sa(const struct isl_surf *surf,
x_offset_sa, y_offset_sa);
break;
case ISL_DIM_LAYOUT_GEN4_2D:
- get_image_offset_sa_gen4_2d(surf, level, logical_array_layer,
+ get_image_offset_sa_gen4_2d(surf, level, logical_array_layer
+ + logical_z_offset_px,
x_offset_sa, y_offset_sa);
break;
case ISL_DIM_LAYOUT_GEN4_3D: