summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2019-08-30 14:16:54 -0700
committerNanley Chery <[email protected]>2019-10-28 10:47:05 -0700
commitba52cd7ab2a6908eb198307186e9c5ece004450a (patch)
tree48d27bbf8b77af372c52dcaed73e902773b36d66 /src/intel
parent4021a3925c780643e0b402c5b20ddf7b6b780c09 (diff)
intel/blorp: Don't assert aux slices match main slices
This isn't accurate enough for HiZ which can have a discontiguous range of supported aux slices. This also won't work with the plan to represent Gen12 CCS as a single slice surface. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/blorp/blorp.c3
-rw-r--r--src/intel/blorp/blorp_clear.c5
2 files changed, 0 insertions, 8 deletions
diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c
index 935a0f5c772..086bfb1c596 100644
--- a/src/intel/blorp/blorp.c
+++ b/src/intel/blorp/blorp.c
@@ -83,9 +83,6 @@ brw_blorp_surface_info_init(struct blorp_context *blorp,
if (info->aux_usage != ISL_AUX_USAGE_NONE) {
info->aux_surf = *surf->aux_surf;
info->aux_addr = surf->aux_addr;
- assert(level < info->aux_surf.levels);
- assert(layer < MAX2(info->aux_surf.logical_level0_px.depth >> level,
- info->aux_surf.logical_level0_px.array_len));
}
info->clear_color = surf->clear_color;
diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c
index c5ae13a6908..7f5ae8ae358 100644
--- a/src/intel/blorp/blorp_clear.c
+++ b/src/intel/blorp/blorp_clear.c
@@ -333,11 +333,6 @@ blorp_fast_clear(struct blorp_batch *batch,
uint32_t level, uint32_t start_layer, uint32_t num_layers,
uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1)
{
- /* Ensure that all layers undergoing the clear have an auxiliary buffer. */
- assert(start_layer + num_layers <=
- MAX2(surf->aux_surf->logical_level0_px.depth >> level,
- surf->aux_surf->logical_level0_px.array_len));
-
struct blorp_params params;
blorp_params_init(&params);
params.num_layers = num_layers;