diff options
author | Jack Xiao <Jack.Xiao@amd.com> | 2019-01-18 05:13:36 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-25 16:15:35 -0500 |
commit | c4c905ec7b8aaeb06331ee875d3cc9b73dfa481f (patch) | |
tree | 109c55c019d77d12fbae3e71e584f147349a05d0 /drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |
parent | a7cd97718166be64b3359f586bbe0a6bb64a6ba4 (diff) |
drm/amdgpu: add flags to emit_ib interface v2
Replace the last bool type parameter with a general flags parameter,
to make the last parameter be able to contain more information.
v2: drop setting need_ctx_switch = false
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
-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 57cb3a51bda7..a26747681ed6 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -6047,7 +6047,7 @@ static void gfx_v8_0_ring_emit_vgt_flush(struct amdgpu_ring *ring) | |||
6047 | static void gfx_v8_0_ring_emit_ib_gfx(struct amdgpu_ring *ring, | 6047 | static void gfx_v8_0_ring_emit_ib_gfx(struct amdgpu_ring *ring, |
6048 | struct amdgpu_job *job, | 6048 | struct amdgpu_job *job, |
6049 | struct amdgpu_ib *ib, | 6049 | struct amdgpu_ib *ib, |
6050 | bool ctx_switch) | 6050 | uint32_t flags) |
6051 | { | 6051 | { |
6052 | unsigned vmid = AMDGPU_JOB_GET_VMID(job); | 6052 | unsigned vmid = AMDGPU_JOB_GET_VMID(job); |
6053 | u32 header, control = 0; | 6053 | u32 header, control = 0; |
@@ -6079,7 +6079,7 @@ static void gfx_v8_0_ring_emit_ib_gfx(struct amdgpu_ring *ring, | |||
6079 | static void gfx_v8_0_ring_emit_ib_compute(struct amdgpu_ring *ring, | 6079 | static void gfx_v8_0_ring_emit_ib_compute(struct amdgpu_ring *ring, |
6080 | struct amdgpu_job *job, | 6080 | struct amdgpu_job *job, |
6081 | struct amdgpu_ib *ib, | 6081 | struct amdgpu_ib *ib, |
6082 | bool ctx_switch) | 6082 | uint32_t flags) |
6083 | { | 6083 | { |
6084 | unsigned vmid = AMDGPU_JOB_GET_VMID(job); | 6084 | unsigned vmid = AMDGPU_JOB_GET_VMID(job); |
6085 | u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24); | 6085 | u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24); |