From c0ced1e79b3311cf55f3c8852417825e3fe102ef Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 30 Jan 2020 23:15:51 +0100 Subject: [PATCH] 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 Tested-by: Marge Bot Part-of: --- src/gallium/drivers/zink/zink_screen.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.30.2