intel/isl: Add a unit suffixes to some struct fields and variables
I was about to make the claim to someone that every field in isl_surf is either an enum or has explicit units. Then I looked at isl_surf and discovered this claim was wrong. We should fix that. This commit does a few refactors: * Add _B suffixes to some struct fields * Add _B to some variables and parameters * Rename row_pitch_tiles -> row_pitch_tl Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
@@ -1089,7 +1089,7 @@ blorp_ccs_ambiguate(struct blorp_batch *batch,
|
||||
isl_surf_get_image_offset_el(surf->aux_surf, level, layer, z,
|
||||
&x_offset_el, &y_offset_el);
|
||||
isl_tiling_get_intratile_offset_el(surf->aux_surf->tiling, aux_fmtl->bpb,
|
||||
surf->aux_surf->row_pitch,
|
||||
surf->aux_surf->row_pitch_B,
|
||||
x_offset_el, y_offset_el,
|
||||
&offset_B, &x_offset_el, &y_offset_el);
|
||||
params.dst.addr.offset += offset_B;
|
||||
@@ -1178,7 +1178,7 @@ blorp_ccs_ambiguate(struct blorp_batch *batch,
|
||||
.levels = 1,
|
||||
.array_len = 1,
|
||||
.samples = 1,
|
||||
.row_pitch = surf->aux_surf->row_pitch,
|
||||
.row_pitch_B = surf->aux_surf->row_pitch_B,
|
||||
.usage = ISL_SURF_USAGE_RENDER_TARGET_BIT,
|
||||
.tiling_flags = ISL_TILING_Y0_BIT);
|
||||
assert(ok);
|
||||
|
Reference in New Issue
Block a user