amdgpu/gfxv8: Simplification of gfx_v8_0_create_bitmask()
Simplification of the function gfx_v8_0_create_bitmask(). Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
90bea0abf6
commit
544b8a74c7
|
@ -2555,13 +2555,7 @@ static void gfx_v8_0_tiling_mode_table_init(struct amdgpu_device *adev)
|
||||||
|
|
||||||
static u32 gfx_v8_0_create_bitmask(u32 bit_width)
|
static u32 gfx_v8_0_create_bitmask(u32 bit_width)
|
||||||
{
|
{
|
||||||
u32 i, mask = 0;
|
return (u32)((1ULL << bit_width) - 1);
|
||||||
|
|
||||||
for (i = 0; i < bit_width; i++) {
|
|
||||||
mask <<= 1;
|
|
||||||
mask |= 1;
|
|
||||||
}
|
|
||||||
return mask;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfx_v8_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num)
|
void gfx_v8_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num)
|
||||||
|
|
Loading…
Reference in New Issue