mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
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@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8944>
This commit is contained in:
parent
4316e0459e
commit
ffc66d4d8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue