summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-12-26 23:04:10 -0800
committerEric Anholt <eric@anholt.net>2019-01-08 13:03:44 -0800
commitdb3b6b6bca4fcf35f184473c517a3db11303d1e7 (patch)
tree2b7bce161f01b289ce5fea85734cce8dcd7df2c6 /src/gallium/drivers
parent6051c11d17645b973f975b25cfdebc027dc36be7 (diff)
v3d: Enable GL_ARB_texture_gather on V3D 4.x.
This is part of GLES 3.1, and with the NIR lowering we're now passing the GLES31 testcases.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/v3d/v3d_screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c
index f6846080c1c..5fd29b78785 100644
--- a/src/gallium/drivers/v3d/v3d_screen.c
+++ b/src/gallium/drivers/v3d/v3d_screen.c
@@ -139,6 +139,11 @@ v3d_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
return 256;
+ case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS:
+ if (screen->devinfo.ver < 40)
+ return 0;
+ return 4;
+
case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
return 4;