diff options
author | Marek Olšák <[email protected]> | 2012-10-28 17:52:48 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-10-31 01:53:50 +0100 |
commit | c9f2af3df719c5ed608ef72b09f6907e1015079c (patch) | |
tree | 490b09022a3bd5995921b85e7bc0c57ddd2411ba /src/mesa/state_tracker/st_extensions.c | |
parent | f2f782d50fa9ba3e2352a404f812a51451b20ae5 (diff) |
gallium: expose ARB_map_buffer_alignment on Radeon
Reviewed-by: Brian Paul <[email protected]>
v2: update relnotes-9.1
v3: use align_malloc and align_free for malloced buffers in r300g
v4: document the new CAP in the docs
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 0560f3a8a39..bcc700d955e 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -637,4 +637,10 @@ void st_init_extensions(struct st_context *st) } if (st->options.force_glsl_extensions_warn) ctx->Const.ForceGLSLExtensionsWarn = 1; + + ctx->Const.MinMapBufferAlignment = + screen->get_param(screen, PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT); + if (ctx->Const.MinMapBufferAlignment >= 64) { + ctx->Extensions.ARB_map_buffer_alignment = GL_TRUE; + } } |