diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-02-02 21:11:29 +0100 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-02-08 13:30:53 +0100 |
commit | 0b9906d5399601b46a41513779179921812a46c3 (patch) | |
tree | 369ce53e767bb78c6dc1585d271350b9f88bb2eb | |
parent | 66ac924fe84cae167c9018b71e818f83b407960f (diff) |
st/mesa: enable ARB_sparse_buffer when supported
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 293814e3ae..aee84729a1 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -461,6 +461,9 @@ void st_init_limits(struct pipe_screen *screen, c->MaxWindowRectangles = screen->get_param(screen, PIPE_CAP_MAX_WINDOW_RECTANGLES); + + c->SparseBufferPageSize = + screen->get_param(screen, PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE); } @@ -605,6 +608,7 @@ void st_init_extensions(struct pipe_screen *screen, { o(ARB_shader_texture_image_samples), PIPE_CAP_TGSI_TXQS }, { o(ARB_shader_texture_lod), PIPE_CAP_SM3 }, { o(ARB_shadow), PIPE_CAP_TEXTURE_SHADOW_MAP }, + { o(ARB_sparse_buffer), PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE }, { o(ARB_texture_buffer_object), PIPE_CAP_TEXTURE_BUFFER_OBJECTS }, { o(ARB_texture_cube_map_array), PIPE_CAP_CUBE_MAP_ARRAY }, { o(ARB_texture_gather), PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS }, |