gallium/radeon: ignore PIPE_BIND_SHARED for buffers
authorMarek Olšák <marek.olsak@amd.com>
Tue, 27 Jun 2017 17:21:29 +0000 (19:21 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Jul 2017 13:40:37 +0000 (15:40 +0200)
BO exports can't be predicted this way.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c

index 5336f55cb5720effbd7744f8a06002897e96a2a7..342695c138725a41b996b5a3d9f0baa489bd50c3 100644 (file)
@@ -610,8 +610,6 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
 
        r600_init_resource_fields(rscreen, rbuffer, templ->width0, alignment);
 
-       if (templ->bind & PIPE_BIND_SHARED)
-               rbuffer->flags |= RADEON_FLAG_HANDLE;
        if (templ->flags & PIPE_RESOURCE_FLAG_SPARSE)
                rbuffer->flags |= RADEON_FLAG_SPARSE;