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/tests | |
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/tests')
-rw-r--r-- | src/intel/isl/tests/isl_surf_get_image_offset_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/isl/tests/isl_surf_get_image_offset_test.c b/src/intel/isl/tests/isl_surf_get_image_offset_test.c index 16c80c312e9..703f176c6b3 100644 --- a/src/intel/isl/tests/isl_surf_get_image_offset_test.c +++ b/src/intel/isl/tests/isl_surf_get_image_offset_test.c @@ -153,7 +153,7 @@ test_bdw_2d_r8g8b8a8_unorm_512x512_array01_samples01_noaux_tiley0(void) isl_surf_get_array_pitch_sa_rows(&surf)); /* Row pitch should be minimal possible */ - t_assert(surf.row_pitch == 2048); + t_assert(surf.row_pitch_B == 2048); t_assert_offset_el(&surf, 0, 0, 0, 0, 0); // +0, +0 t_assert_offset_el(&surf, 1, 0, 0, 0, 512); // +0, +512 @@ -201,7 +201,7 @@ test_bdw_2d_r8g8b8a8_unorm_1024x1024_array06_samples01_noaux_tiley0(void) isl_surf_get_array_pitch_sa_rows(&surf)); /* Row pitch should be minimal possible */ - t_assert(surf.row_pitch == 4096); + t_assert(surf.row_pitch_B == 4096); for (uint32_t a = 0; a < 6; ++a) { uint32_t b = a * isl_surf_get_array_pitch_sa_rows(&surf); |