diff options
author | Chad Versace <[email protected]> | 2017-02-24 16:23:02 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2017-03-21 15:56:16 -0700 |
commit | 44ac618a4169c3ca35ec70dddac07d3e5346685a (patch) | |
tree | 62104c4b1235606a70d86e2f01968b36cae33943 /src/mesa/main/texcompress_etc.h | |
parent | c2b706f8afed02f15ef6fd067e47d60e1f0987a5 (diff) |
isl: Refactor row pitch calculation (v2)
The calculations of row_pitch, the row pitch's alignment, surface size,
and base_alignment were mixed together. This patch moves the calculation
of row_pitch and its alignment to occur before the calculation of
surface_size and base_alignment.
This simplifies a follow-on patch that adds a new member, 'row_pitch',
to struct isl_surf_init_info.
v2:
- Also extract the row pitch alignment.
- More helper functions that will later help validate the row pitch.
Reviewed-by: Nanley Chery <[email protected]> (v2)
Reviewed-by: Jason Ekstrand <[email protected]> (v2)
Diffstat (limited to 'src/mesa/main/texcompress_etc.h')
0 files changed, 0 insertions, 0 deletions