[PATCH libdrm v2] amdgpu: add REPLACE and CLEAR checking for VA op (v2)

Christian König deathsimple at vodafone.de
Wed Mar 22 09:34:56 UTC 2017


Am 22.03.2017 um 07:31 schrieb Nicolai Hähnle:
> On 22.03.2017 04:14, Junwei Zhang wrote:
>> v2: fix indent
>>
>> Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com>
>
> Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

>
>
>> ---
>>  amdgpu/amdgpu_bo.c | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
>> index 71cd666..850fe8c 100644
>> --- a/amdgpu/amdgpu_bo.c
>> +++ b/amdgpu/amdgpu_bo.c
>> @@ -952,7 +952,9 @@ int amdgpu_bo_va_op_raw(amdgpu_device_handle dev,
>>      struct drm_amdgpu_gem_va va;
>>      int r;
>>
>> -    if (ops != AMDGPU_VA_OP_MAP && ops != AMDGPU_VA_OP_UNMAP)
>> +    if (ops != AMDGPU_VA_OP_MAP && ops != AMDGPU_VA_OP_UNMAP &&
>> +        ops != AMDGPU_VA_OP_REPLACE && ops != AMDGPU_VA_OP_CLEAR)
>> +
>>          return -EINVAL;
>>
>>      memset(&va, 0, sizeof(va));
>>
>
> _______________________________________________
> 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