aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/zink
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2020-01-30 23:15:51 +0100
committerMarge Bot <[email protected]>2020-01-31 08:23:07 +0000
commitc0ced1e79b3311cf55f3c8852417825e3fe102ef (patch)
tree04fabb645c16f18c18e3deef0c6d486a1c5cc5c7 /src/gallium/drivers/zink
parent00edb82fde2cfebe97457cb7819e7e560c4d3a4c (diff)
zink: enable texture-buffer objects
This seems to work as-is, and just need enabling. There's a few piglit failures, but those seems to be problems with the tests, where they don't handle lacking GL3-support. Reviewed-by: Dave Airlie <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3647> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3647>
Diffstat (limited to 'src/gallium/drivers/zink')
-rw-r--r--src/gallium/drivers/zink/zink_screen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 5441445e1b8..d0a29609881 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -176,6 +176,12 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_CUBE_MAP_ARRAY:
return screen->feats.imageCubeArray;
+ case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
+ return 1;
+
+ case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT:
+ return screen->props.limits.minTexelBufferOffsetAlignment;
+
case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER:
return 0; /* unsure */