From: Erik Faye-Lund Date: Thu, 30 Jan 2020 22:15:51 +0000 (+0100) Subject: zink: enable texture-buffer objects X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0ced1e79b3311cf55f3c8852417825e3fe102ef;p=mesa.git 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: --- 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 */