We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105195a commit e053d71Copy full SHA for e053d71
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -843,7 +843,6 @@ static const struct amdgpu_gfx_funcs gfx_v11_0_gfx_funcs = {
843
844
static int gfx_v11_0_gpu_early_init(struct amdgpu_device *adev)
845
{
846
- adev->gfx.funcs = &gfx_v11_0_gfx_funcs;
847
848
switch (adev->ip_versions[GC_HWIP][0]) {
849
case IP_VERSION(11, 0, 0):
@@ -4657,6 +4656,8 @@ static int gfx_v11_0_early_init(void *handle)
4657
4656
4658
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
4659
+ adev->gfx.funcs = &gfx_v11_0_gfx_funcs;
4660
+
4661
adev->gfx.num_gfx_rings = GFX11_NUM_GFX_RINGS;
4662
adev->gfx.num_compute_rings = min(amdgpu_gfx_get_num_kcq(adev),
4663
AMDGPU_MAX_COMPUTE_RINGS);
0 commit comments