aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4142-drm-amdgpu-cleanup-VCN-IB-generation-v2.patch
blob: 80e4dc4227ff86137232e6b682fd21a1ef164ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 5044370805caf7ff40a4debecf3cb8cde73443fa Mon Sep 17 00:00:00 2001
From: christian koenig <ckoenig.leichtzumerken@gmail.com>
Date: Wed, 7 Feb 2018 20:48:22 +0100
Subject: [PATCH 4142/5725] drm/amdgpu: cleanup VCN IB generation (v2)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Removed struct ttm_operation_ctx ctx = { true, false }; which
is not used in the function.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Tested-and-Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
index 3ed7926..01cc8de 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
@@ -277,7 +277,6 @@ static int amdgpu_vcn_dec_send_msg(struct amdgpu_ring *ring,
 					struct amdgpu_bo *bo, bool direct,
 					struct dma_fence **fence)
 {
-	struct ttm_operation_ctx ctx = { true, false };
 	struct amdgpu_device *adev = ring->adev;
 	struct dma_fence *f = NULL;
 	struct amdgpu_job *job;
-- 
2.7.4