diff options
author | Jason Ekstrand <[email protected]> | 2019-12-03 20:29:15 -0600 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2020-01-04 12:25:54 -0800 |
commit | 95cc5438ebfca436ceb6fd87b6b32c943b088340 (patch) | |
tree | de668494780ef5e18a224a363d4c311010671db1 /src/intel/blorp | |
parent | 4a1093005cf96d98fdbc23c031d1b1deac5ce37a (diff) |
blorp: Allow reading with HiZ
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r-- | src/intel/blorp/blorp_genX_exec.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index c1fc0892893..348970a491b 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -1356,8 +1356,12 @@ blorp_emit_surface_state(struct blorp_batch *batch, surf.dim = ISL_SURF_DIM_2D; } - /* Blorp doesn't support HiZ in any of the blit or slow-clear paths */ - assert(!isl_aux_usage_has_hiz(surface->aux_usage)); + if (isl_aux_usage_has_hiz(surface->aux_usage)) { + /* BLORP doesn't render with depth so we can't use HiZ */ + assert(!is_render_target); + /* We can't reinterpret HiZ */ + assert(surface->surf.format == surface->view.format); + } enum isl_aux_usage aux_usage = surface->aux_usage; isl_channel_mask_t write_disable_mask = 0; |