diff options
| author | Christian König <[email protected]> | 2016-10-05 10:51:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-10-25 18:38:35 +0000 |
| commit | c81b07e6bcbc3a29270b4eaf5c0696837212d468 (patch) | |
| tree | 86c36c1d610c4ba5fb010d5d57228bd67b441bb5 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | drm/amdgpu: pad gfx and compute rings to 256 dw (diff) | |
| download | kernel-c81b07e6bcbc3a29270b4eaf5c0696837212d468.tar.gz kernel-c81b07e6bcbc3a29270b4eaf5c0696837212d468.zip | |
drm/amdgpu: remove ring type check for conditional execution
If a ring doesn't support that it shouldn't implement the function.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index 6a6c86c9c169..3c9a6da0966e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c @@ -161,7 +161,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, return r; } - if (ring->type == AMDGPU_RING_TYPE_SDMA && ring->funcs->init_cond_exec) + if (ring->funcs->init_cond_exec) patch_offset = amdgpu_ring_init_cond_exec(ring); if (vm) { |
