zink: export PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER

avoids memcpy slowpath

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9733>
This commit is contained in:
Mike Blumenkrantz 2020-12-10 11:14:51 -05:00 committed by Marge Bot
parent e1eb72ae3c
commit e1ba6158c0
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return screen->info.props.limits.minTexelBufferOffsetAlignment;
case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER:
return 0; /* unsure */
return 1;
case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
return screen->info.props.limits.maxTexelBufferElements;