radv/winsys: fix flags vs va_flags thinko.
authorDave Airlie <airlied@redhat.com>
Fri, 8 Sep 2017 02:30:23 +0000 (12:30 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Sep 2017 02:30:23 +0000 (12:30 +1000)
Fixes: e8d57802f (radv/gfx9: allocate events from uncached VA space)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c

index 325f87528742f38870a6073c8ecc1c1f54774543..1c56c5590724157992629af87526adaa6d46c5f0 100644 (file)
@@ -344,7 +344,7 @@ radv_amdgpu_winsys_bo_create(struct radeon_winsys *_ws,
        uint32_t va_flags = 0;
        if (flags & RADEON_FLAG_VA_UNCACHED)
                va_flags |= AMDGPU_VM_MTYPE_UC;
-       r = radv_amdgpu_bo_va_op(ws->dev, buf_handle, 0, size, va, flags, AMDGPU_VA_OP_MAP);
+       r = radv_amdgpu_bo_va_op(ws->dev, buf_handle, 0, size, va, va_flags, AMDGPU_VA_OP_MAP);
        if (r)
                goto error_va_map;