瀏覽代碼

drm/amdgpu/gfx9: move define to header file

rather than defining it locally.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Alex Deucher 8 年之前
父節點
當前提交
67fb56a6dd
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 2
      drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
  2. 1 0
      drivers/gpu/drm/amd/amdgpu/soc15d.h

+ 0 - 2
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

@@ -2982,8 +2982,6 @@ BUG_ON(ib->gpu_addr & 0x3); /* Dword align */
 	amdgpu_ring_write(ring, control);
 }
 
-#define	INDIRECT_BUFFER_VALID                   (1 << 23)
-
 static void gfx_v9_0_ring_emit_ib_compute(struct amdgpu_ring *ring,
                                           struct amdgpu_ib *ib,
                                           unsigned vm_id, bool ctx_switch)

+ 1 - 0
drivers/gpu/drm/amd/amdgpu/soc15d.h

@@ -132,6 +132,7 @@
 		 * 1 - pfp
 		 */
 #define	PACKET3_INDIRECT_BUFFER				0x3F
+#define		INDIRECT_BUFFER_VALID                   (1 << 23)
 #define		INDIRECT_BUFFER_CACHE_POLICY(x)         ((x) << 28)
 		/* 0 - LRU
 		 * 1 - Stream