Mesa (master): isl: Use bpb for determining YUV image padding
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Wed Jul 13 18:48:04 UTC 2016
Module: Mesa
Branch: master
Commit: 8c76b9bdce4c38ab7a600706c4e0151557d75fc5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c76b9bdce4c38ab7a600706c4e0151557d75fc5
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Tue Jul 12 14:17:18 2016 -0700
isl: Use bpb for determining YUV image padding
When we initially dropped bpb in favor of bs, we accidentally didn't change
this one line properly. This brings it back to what it should be.
Reviewed-by: Chad Versace <chad.versace 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 4205c1c..29b33d9 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -996,7 +996,7 @@ isl_apply_surface_padding(const struct isl_device *dev,
* padding requirements.
*/
if (isl_format_is_yuv(info->format) &&
- (fmtl->bs == 96 || fmtl->bs == 48|| fmtl->bs == 24)) {
+ (fmtl->bpb == 96 || fmtl->bpb == 48|| fmtl->bpb == 24)) {
*total_h_el += 1;
*pad_bytes += 16;
}
More information about the mesa-commit
mailing list