drm/amdgpu/gfx9: move define to header file
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 4 May 2017 14:32:33 +0000 (10:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:29 +0000 (17:40 -0400)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/soc15d.h

index 6ac6e7512f49e136e56fe17caca5987722c5c9f1..dd1751d9aa3c4b2d406332c5fb019ee148ba53e7 100644 (file)
@@ -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)
index 5da013ce2533b89209027ae09829c7dbf4f4c8a4..e79befd80eed98ff4d9ee702ba5d6945ca132f44 100644 (file)
                 * 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