[Mesa-dev] [PATCH 07/23] i965/gen9: Allow halign == 16 also for losslessly compressed
Topi Pohjolainen
topi.pohjolainen at intel.com
Mon Feb 8 16:51:27 UTC 2016
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index fe525c3..6f46385 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -530,7 +530,8 @@ intel_miptree_create_layout(struct brw_context *brw,
if (intel_miptree_supports_non_msrt_fast_clear(brw, mt)) {
if (brw->gen >= 9 || (brw->gen == 8 && num_samples <= 1))
layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
- } else if (brw->gen >= 9 && num_samples > 1) {
+ } else if (brw->gen >= 9 &&
+ (num_samples > 1 || mt->msaa_layout == INTEL_MSAA_LAYOUT_CSS)) {
layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
} else {
/* For now, nothing else has this requirement */
--
2.5.0
More information about the mesa-dev
mailing list