projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e397c6
)
intel/isl: Allow non-2D HiZ surfaces
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 13 Sep 2016 00:56:38 +0000
(17:56 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 3 Oct 2016 21:53:01 +0000
(14:53 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/isl/isl.c
patch
|
blob
|
history
diff --git
a/src/intel/isl/isl.c
b/src/intel/isl/isl.c
index 1a57f7c158080c65f5c9d8f3949e00b0fc25e353..66e2df3859ce26626ca5c924311697a509363334 100644
(file)
--- 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,