summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.c
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2016-05-18 16:19:23 -0700
committerNanley Chery <nanley.g.chery@intel.com>2016-05-20 09:27:11 -0700
commita141576887b8bc6b7942c39aef22af0e57d95891 (patch)
tree4ab9a25b11f37aff5b6d011fd109b6ec1efc43b8 /src/intel/isl/isl.c
parentde86fb875d6627547b9823e830ec751b0f7ce42a (diff)
downloadexternal_mesa3d-a141576887b8bc6b7942c39aef22af0e57d95891.zip
external_mesa3d-a141576887b8bc6b7942c39aef22af0e57d95891.tar.gz
external_mesa3d-a141576887b8bc6b7942c39aef22af0e57d95891.tar.bz2
isl: Handle npot ASTC block dimensions on Gen9+
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/isl/isl.c')
-rw-r--r--src/intel/isl/isl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index ca2db84..e4bca16 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -481,8 +481,8 @@ isl_calc_phys_level0_extent_sa(const struct isl_device *dev,
assert(info->samples == 1);
*phys_level0_sa = (struct isl_extent4d) {
- .w = isl_align(info->width, fmtl->bw),
- .h = isl_align(info->height, fmtl->bh),
+ .w = isl_align_npot(info->width, fmtl->bw),
+ .h = isl_align_npot(info->height, fmtl->bh),
.d = 1,
.a = info->array_len,
};
@@ -537,8 +537,8 @@ isl_calc_phys_level0_extent_sa(const struct isl_device *dev,
assert(ISL_DEV_GEN(dev) >= 9);
*phys_level0_sa = (struct isl_extent4d) {
- .w = isl_align(info->width, fmtl->bw),
- .h = isl_align(info->height, fmtl->bh),
+ .w = isl_align_npot(info->width, fmtl->bw),
+ .h = isl_align_npot(info->height, fmtl->bh),
.d = 1,
.a = info->depth,
};