diff options
author | Jason Ekstrand <[email protected]> | 2016-07-08 22:11:06 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-07-13 11:47:37 -0700 |
commit | fc3650a0a9eca29a9498f663d489ab729f55f65f (patch) | |
tree | 58d4b157cbc50708ba85cf59fe759a9730559b9b /src/intel/isl/isl.h | |
parent | 1f0433f07575b797f6073c0b421adbc5658e1107 (diff) |
isl: Kill off isl_format_layout::bs
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r-- | src/intel/isl/isl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index 5c697a64d5e..a86688c91bc 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -640,7 +640,6 @@ struct isl_format_layout { const char *name; uint16_t bpb; /**< Bits per block */ - uint8_t bs; /**< Block size, in bytes, rounded towards 0 */ uint8_t bw; /**< Block width, in pixels */ uint8_t bh; /**< Block height, in pixels */ uint8_t bd; /**< Block depth, in pixels */ @@ -1203,8 +1202,8 @@ isl_surf_get_row_pitch_el(const struct isl_surf *surf) { const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); - assert(surf->row_pitch % fmtl->bs == 0); - return surf->row_pitch / fmtl->bs; + assert(surf->row_pitch % (fmtl->bpb / 8) == 0); + return surf->row_pitch / (fmtl->bpb / 8); } /** |