diff options
author | Nanley Chery <[email protected]> | 2019-08-21 16:43:26 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2019-10-28 10:47:05 -0700 |
commit | cc415f911f7bbba683e4724af4ab58d8cc9523ca (patch) | |
tree | 10d9522eca9812cda0cda5f623b1b0399bf26a0b /src/intel | |
parent | c50f8b2fc94913a7c96468ba930091710147b302 (diff) |
intel/blorp: Assert against HiZ in surface states
Avoid unexpected behavior if the caller happens to pass in a HiZ aux
usage.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/blorp/blorp_genX_exec.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index f47372f9f06..cb2d2536899 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -1356,9 +1356,8 @@ blorp_emit_surface_state(struct blorp_batch *batch, } /* Blorp doesn't support HiZ in any of the blit or slow-clear paths */ + assert(surface->aux_usage != ISL_AUX_USAGE_HIZ); enum isl_aux_usage aux_usage = surface->aux_usage; - if (aux_usage == ISL_AUX_USAGE_HIZ) - aux_usage = ISL_AUX_USAGE_NONE; isl_channel_mask_t write_disable_mask = 0; if (is_render_target && GEN_GEN <= 5) { |