From: Jason Ekstrand Date: Tue, 13 Sep 2016 00:56:38 +0000 (-0700) Subject: intel/isl: Allow non-2D HiZ surfaces X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0176c6a69236466a7f4bd1cb41fc09d88a5b4778;p=mesa.git intel/isl: Allow non-2D HiZ surfaces Signed-off-by: Jason Ekstrand Reviewed-by: Nanley Chery --- diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 1a57f7c1580..66e2df3859c 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,