diff options
author | Jason Ekstrand <[email protected]> | 2016-07-08 19:36:33 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-07-13 11:47:37 -0700 |
commit | 33dc8549fb9b227a57a84aac53f17bd099da38f4 (patch) | |
tree | dc1e72f24ed24cf3974435ae52360243bb5a53dc /src/intel/isl/isl_gen8.c | |
parent | fc3650a0a9eca29a9498f663d489ab729f55f65f (diff) |
isl: Add support for HiZ surfaces
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_gen8.c')
-rw-r--r-- | src/intel/isl/isl_gen8.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/isl/isl_gen8.c b/src/intel/isl/isl_gen8.c index a46427aacc8..ff35d5f868f 100644 --- a/src/intel/isl/isl_gen8.c +++ b/src/intel/isl/isl_gen8.c @@ -84,7 +84,8 @@ gen8_choose_msaa_layout(const struct isl_device *dev, if (isl_format_is_yuv(info->format)) return false; - if (isl_surf_usage_is_depth_or_stencil(info->usage)) + if (isl_surf_usage_is_depth_or_stencil(info->usage) || + (info->usage & ISL_SURF_USAGE_HIZ_BIT)) require_interleaved = true; if (require_array && require_interleaved) @@ -198,6 +199,9 @@ gen8_choose_image_alignment_el(const struct isl_device *dev, enum isl_msaa_layout msaa_layout, struct isl_extent3d *image_align_el) { + /* Handled by isl_choose_image_alignment_el */ + assert(info->format != ISL_FORMAT_HIZ); + assert(!isl_tiling_is_std_y(tiling)); /* The below text from the Broadwell PRM provides some insight into the |