summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-09-12 17:56:38 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-10-03 14:53:01 -0700
commit0176c6a69236466a7f4bd1cb41fc09d88a5b4778 (patch)
tree08523dcee04a39d913d95c381b8e91f34f76abfa /src/intel
parent4e397c6c75c623caabc7ca81af036436b18238c4 (diff)
downloadexternal_mesa3d-0176c6a69236466a7f4bd1cb41fc09d88a5b4778.zip
external_mesa3d-0176c6a69236466a7f4bd1cb41fc09d88a5b4778.tar.gz
external_mesa3d-0176c6a69236466a7f4bd1cb41fc09d88a5b4778.tar.bz2
intel/isl: Allow non-2D HiZ surfaces
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/isl/isl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 1a57f7c..66e2df3 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -1373,11 +1373,11 @@ isl_surf_get_hiz_surf(const struct isl_device *dev,
const unsigned samples = ISL_DEV_GEN(dev) >= 9 ? 1 : surf->samples;
isl_surf_init(dev, hiz_surf,
- .dim = ISL_SURF_DIM_2D,
+ .dim = surf->dim,
.format = ISL_FORMAT_HIZ,
.width = surf->logical_level0_px.width,
.height = surf->logical_level0_px.height,
- .depth = 1,
+ .depth = surf->logical_level0_px.depth,
.levels = surf->levels,
.array_len = surf->logical_level0_px.array_len,
.samples = samples,