[PATCH] drm/amdgpu/gfx9: move define to header file
Christian König
deathsimple at vodafone.de
Fri May 5 09:14:14 UTC 2017
Am 05.05.2017 um 05:34 schrieb Zhang, Jerry (Junwei):
> On 05/04/2017 10:33 PM, Alex Deucher wrote:
>> rather than defining it locally.
>>
>> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Reviewed-by: Junwei Zhang <Jerry.Zhang at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
>
>> ---
>> drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 --
>> drivers/gpu/drm/amd/amdgpu/soc15d.h | 1 +
>> 2 files changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
>> b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
>> index d364536..b246d22 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
>> @@ -2977,8 +2977,6 @@ static void gfx_v9_0_ring_emit_ib_gfx(struct
>> amdgpu_ring *ring,
>> 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)
>> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15d.h
>> b/drivers/gpu/drm/amd/amdgpu/soc15d.h
>> index 9e1b9e9..e46e249 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/soc15d.h
>> +++ b/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
>>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list