Mesa (master): zink: add PIPE_BIND_QUERY_BUFFER to the all-purpose resource creation path
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 11 16:04:56 UTC 2021
Module: Mesa
Branch: master
Commit: ffc66d4d8f8fbd8993471e0d3f0a79f5579eebcd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffc66d4d8f8fbd8993471e0d3f0a79f5579eebcd
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Aug 17 15:08:03 2020 -0400
zink: add PIPE_BIND_QUERY_BUFFER to the all-purpose resource creation path
this can be used pretty much anywhere, so it needs all the bits
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8944>
---
src/gallium/drivers/zink/zink_resource.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index 85807cc958e..187ea4116ab 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -120,8 +120,8 @@ resource_create(struct pipe_screen *pscreen,
bci.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT |
VK_BUFFER_USAGE_TRANSFER_DST_BIT;
- /* apparently gallium thinks this is the jack-of-all-trades bind type */
- if (templ->bind & PIPE_BIND_SAMPLER_VIEW) {
+ /* apparently gallium thinks these are the jack-of-all-trades bind types */
+ if (templ->bind & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_QUERY_BUFFER)) {
bci.usage |= VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT |
VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT |
VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT |
More information about the mesa-commit
mailing list