From c9f2af3df719c5ed608ef72b09f6907e1015079c Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 28 Oct 2012 17:52:48 +0100 Subject: gallium: expose ARB_map_buffer_alignment on Radeon Reviewed-by: Brian Paul 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 --- src/gallium/drivers/radeonsi/radeonsi_pipe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/radeonsi') diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index e069f1f2203..fa16f4c5dde 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -326,6 +326,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_NPOT_TEXTURES: return 1; + case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT: + return 64; + case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT: return 256; -- cgit v1.2.3