diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2015-12-03 12:23:28 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-04 11:26:52 -0500 |
commit | eb64526f5a5a382df7018a3e69061b9e3f20e32d (patch) | |
tree | 36cd918b1a8efa056d483882f272510957879b2b /drivers/gpu/drm/amd | |
parent | 786b5219081ff16e62c00c7c6313dc0adf631540 (diff) |
amdgpu/gfxv8: Remove magic numbers from function gfx_v8_0_tiling_mode_table_init()
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 33e3c0d63c66..29e02e0fa3d4 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -1640,8 +1640,8 @@ static int gfx_v8_0_sw_fini(void *handle) | |||
1640 | static void gfx_v8_0_tiling_mode_table_init(struct amdgpu_device *adev) | 1640 | static void gfx_v8_0_tiling_mode_table_init(struct amdgpu_device *adev) |
1641 | { | 1641 | { |
1642 | uint32_t *modearray, *mod2array; | 1642 | uint32_t *modearray, *mod2array; |
1643 | const u32 num_tile_mode_states = 32; | 1643 | const u32 num_tile_mode_states = ARRAY_SIZE(adev->gfx.config.tile_mode_array); |
1644 | const u32 num_secondary_tile_mode_states = 16; | 1644 | const u32 num_secondary_tile_mode_states = ARRAY_SIZE(adev->gfx.config.macrotile_mode_array); |
1645 | u32 reg_offset; | 1645 | u32 reg_offset; |
1646 | 1646 | ||
1647 | modearray = adev->gfx.config.tile_mode_array; | 1647 | modearray = adev->gfx.config.tile_mode_array; |