mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
i965: Relax assertion of halign == 16 for lossless compressed aux
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
ba9f954e60
commit
94926492d8
1 changed files with 6 additions and 1 deletions
|
|
@ -556,8 +556,13 @@ intel_miptree_create_layout(struct brw_context *brw,
|
|||
} else if (brw->gen >= 9 && num_samples > 1) {
|
||||
layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
|
||||
} else {
|
||||
const bool is_lossless_compressed_aux =
|
||||
brw->gen >= 9 && num_samples == 1 &&
|
||||
mt->format == MESA_FORMAT_R_UINT32;
|
||||
|
||||
/* For now, nothing else has this requirement */
|
||||
assert((layout_flags & MIPTREE_LAYOUT_FORCE_HALIGN16) == 0);
|
||||
assert(is_lossless_compressed_aux ||
|
||||
(layout_flags & MIPTREE_LAYOUT_FORCE_HALIGN16) == 0);
|
||||
}
|
||||
|
||||
brw_miptree_layout(brw, mt, layout_flags);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue