projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6051c11
)
v3d: Enable GL_ARB_texture_gather on V3D 4.x.
author
Eric Anholt
<eric@anholt.net>
Thu, 27 Dec 2018 07:04:10 +0000
(23:04 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 8 Jan 2019 21:03:44 +0000
(13:03 -0800)
This is part of GLES 3.1, and with the NIR lowering we're now passing the
GLES31 testcases.
src/gallium/drivers/v3d/v3d_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/v3d/v3d_screen.c
b/src/gallium/drivers/v3d/v3d_screen.c
index f6846080c1c7214ff1c25e1950d4d418d55d0cae..5fd29b7878592ce10e1e506486207d53a079d413 100644
(file)
--- 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;