Mesa (master): intel/isl: Allow 1D surfaces with compressed formats
Topi Pohjolainen
tpohjola at kemper.freedesktop.org
Fri Jul 21 21:14:59 UTC 2017
Module: Mesa
Branch: master
Commit: 514d68576dd9ecc4a73eda0079e05eb471a795b6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=514d68576dd9ecc4a73eda0079e05eb471a795b6
Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date: Wed Jul 5 10:26:03 2017 +0300
intel/isl: Allow 1D surfaces with compressed formats
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/intel/isl/isl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index d4a7d00208..8cfec47733 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -1090,7 +1090,7 @@ isl_calc_phys_total_extent_el_gen9_1d(
{
MAYBE_UNUSED const struct isl_format_layout *fmtl = isl_format_get_layout(info->format);
- assert(phys_level0_sa->height == 1);
+ assert(phys_level0_sa->height / fmtl->bh == 1);
assert(phys_level0_sa->depth == 1);
assert(info->samples == 1);
assert(image_align_sa->w >= fmtl->bw);
More information about the mesa-commit
mailing list