diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-02-02 21:11:05 +0100 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-02-08 13:30:56 +0100 |
commit | a1f08ae50626e2eaef36b07c4b7263279e8539a0 (patch) | |
tree | e7944322c2591e87b50adc728c1f6e8e58558f8d | |
parent | c9ff893aa8ec467d9f7996f1106dfc6e8f9940fe (diff) |
radeonsi: enable ARB_sparse_bufferARB_sparse_buffer
TODO add features.txt and ChangeLog
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 8ce4d50f99..e8edf4da76 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -458,6 +458,12 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_BUFFER_SAMPLER_VIEW_RGBA_ONLY: return 0; + case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE: + if (sscreen->b.info.drm_major == 3 /* && + sscreen->b.info.drm_major >= TODO */) + return RADEON_SPARSE_PAGE_SIZE; + return 0; + /* Unsupported features. */ case PIPE_CAP_TGSI_FS_COORD_ORIGIN_LOWER_LEFT: case PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS: |