summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_screen.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-11-21 10:02:05 -0500
committerIlia Mirkin <[email protected]>2015-11-23 11:17:14 -0500
commit99f12a3f1a825c53d790f12dae114f388bb6244c (patch)
treec26a88bfff4ddaaa2bd89155470e7f320b329dc0 /src/gallium/drivers/freedreno/freedreno_screen.c
parentd4c40f99ab9b8ccf807cea45599231c0072f740b (diff)
freedreno/a4xx: add ARB_texture_buffer_range support
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 7bffc8f68c2..0c494d4f4c8 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -183,7 +183,9 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return is_a3xx(screen) || is_a4xx(screen);
case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT:
- return is_a3xx(screen) ? 16 : 0;
+ if (is_a3xx(screen)) return 16;
+ if (is_a4xx(screen)) return 32;
+ return 0;
case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
/* I think 32k on a4xx.. and we could possibly emulate more
* by pretending 2d/rect textures and splitting high bits