mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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 <kenneth@whitecape.org>
This commit is contained in:
parent
c50f8b2fc9
commit
cc415f911f
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue