projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79bbbf8
)
drm/amdgpu:insert switch buffer only for VM submit
author
Monk Liu
<Monk.Liu@amd.com>
Wed, 18 Jan 2017 02:38:06 +0000
(10:38 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:38 +0000
(11:13 -0500)
for non-VM submit which is from kernel side, no need
to switch buffer at all.
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index 5329ac93e43de4167422f3d28eee930494903250..dcf1d8aa35eae967fd952cdd89a54ad2168c1368 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@
-224,7
+224,7
@@
int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
amdgpu_ring_patch_cond_exec(ring, patch_offset);
ring->current_ctx = fence_ctx;
- if (ring->funcs->emit_switch_buffer)
+ if (
vm &&
ring->funcs->emit_switch_buffer)
amdgpu_ring_emit_switch_buffer(ring);
amdgpu_ring_commit(ring);
return 0;