diff options
author | Nicolai Hähnle <[email protected]> | 2017-02-07 18:03:55 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-04-05 10:37:19 +0200 |
commit | 5969a373a13bae8e908d26b8f43fd1265bc2e573 (patch) | |
tree | 62d62667b3b0d0eb42c02ad99cdc478dc46c38a9 /src/gallium | |
parent | 47e59a7e36351de75ed0539e693bbf3727b44084 (diff) |
gallium/radeon: implement sparse buffer creation
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index 5fde0d6c146..a1e8228e6b3 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -543,6 +543,8 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, if (templ->bind & PIPE_BIND_SHARED) rbuffer->flags |= RADEON_FLAG_HANDLE; + if (templ->flags & PIPE_RESOURCE_FLAG_SPARSE) + rbuffer->flags |= RADEON_FLAG_SPARSE; if (!r600_alloc_resource(rscreen, rbuffer)) { FREE(rbuffer); |