On 31/10/17 04:40 PM, Andrey Grodzovsky wrote: > Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com> [...] > diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c > index 8f43e93..1155492 100644 > --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c > +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c > @@ -256,6 +256,14 @@ static struct radeon_winsys_ctx *amdgpu_ctx_create(struct radeon_winsys *ws) > goto error_create; > } > > + if (ctx->ws->reserve_vmid) { > + r = amdgpu_vm_reserve_vmid(ctx->ctx, 0); > + if (r) { > + fprintf(stderr, "amdgpu: amdgpu_cs_ctx_create failed. (%i)\n", r); This should say "amdgpu: amdgpu_vm_reserve_vmid failed. (%i)\n". -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer