diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-02-07 18:03:55 +0100 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-02-08 13:30:55 +0100 |
commit | 2f1ea1de2ca8da530fa040aa81f10e12c3a9bc88 (patch) | |
tree | 13732e374ed8bd2924cf7648a1f2f3f92f161155 | |
parent | 3def501c2f0bcbda39648c0233d623d5a530e48b (diff) |
gallium/radeon: implement sparse buffer creation
-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 da6f0206d7..cf24ee25c6 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -538,6 +538,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); |