winsys/amdgpu: don't allow interprocess resource sharing for IBs
authorMarek Olšák <marek.olsak@amd.com>
Wed, 6 Sep 2017 01:21:29 +0000 (03:21 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 11 Sep 2017 14:29:52 +0000 (16:29 +0200)
Now we should get IB submissions with bo_list == NULL when DRI buffers
aren't referenced.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c

index f68071abc8f28f42a1cf09389b323be20766904b..83f0310afd6d78bd9f0343358c471568c43eed28 100644 (file)
@@ -575,7 +575,8 @@ static bool amdgpu_ib_new_buffer(struct amdgpu_winsys *ws, struct amdgpu_ib *ib)
 
    pb = ws->base.buffer_create(&ws->base, buffer_size,
                                ws->info.gart_page_size,
-                               RADEON_DOMAIN_GTT, 0);
+                               RADEON_DOMAIN_GTT,
+                               RADEON_FLAG_NO_INTERPROCESS_SHARING);
    if (!pb)
       return false;