mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-24 07:50:26 +00:00
zink: add VK_BUFFER_USAGE_INDEX_BUFFER_BIT to vertex buffer creation
these can be mixed vertex/index buffers, and there's not really any way to know in advance Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7132>
This commit is contained in:
parent
c364124440
commit
8e96b4f430
@ -115,6 +115,7 @@ resource_create(struct pipe_screen *pscreen,
|
||||
|
||||
if (templ->bind & PIPE_BIND_VERTEX_BUFFER)
|
||||
bci.usage |= VK_BUFFER_USAGE_VERTEX_BUFFER_BIT |
|
||||
VK_BUFFER_USAGE_INDEX_BUFFER_BIT |
|
||||
VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT;
|
||||
|
||||
if (templ->bind & PIPE_BIND_INDEX_BUFFER)
|
||||
|
Loading…
Reference in New Issue
Block a user