diff options
author | Jason Ekstrand <[email protected]> | 2018-09-05 14:02:12 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-09-26 08:52:26 -0500 |
commit | b3f477ef7aa96a22be3c72d321b55b2fcf70487c (patch) | |
tree | 39d757ae4cdd1b0880c577e96f8394aad7508d29 /src/intel/isl/isl_storage_image.c | |
parent | 0d495bec25bd7584de4e988c2b4528c1996bc1d0 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_storage_image.c')
-rw-r--r-- | src/intel/isl/isl_storage_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/isl/isl_storage_image.c b/src/intel/isl/isl_storage_image.c index c36985af127..f8bb5275358 100644 --- a/src/intel/isl/isl_storage_image.c +++ b/src/intel/isl/isl_storage_image.c @@ -249,7 +249,7 @@ isl_surf_fill_image_param(const struct isl_device *dev, const int cpp = isl_format_get_layout(surf->format)->bpb / 8; param->stride[0] = cpp; - param->stride[1] = surf->row_pitch / cpp; + param->stride[1] = surf->row_pitch_B / cpp; const struct isl_extent3d image_align_sa = isl_surf_get_image_alignment_sa(surf); |