Mesa (main): zink: drop repeated usage-bit
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 16 15:55:31 UTC 2021
Module: Mesa
Branch: main
Commit: 662dc70002c0749cdab796701424bf6876f49b9e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=662dc70002c0749cdab796701424bf6876f49b9e
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Wed Jun 16 01:51:07 2021 -0700
zink: drop repeated usage-bit
We already set this bit unconditionally right before, no point in
repeating it.
Fixes: 00dc0036b ("zink: flatten out buffer creation usage flags codepath")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11416>
---
src/gallium/drivers/zink/zink_resource.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index 576ea0080e6..8598aefd150 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -234,8 +234,6 @@ create_bci(struct zink_screen *screen, const struct pipe_resource *templ, unsign
VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT;
if (props.bufferFeatures & VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT)
bci.usage |= VK_BUFFER_USAGE_VERTEX_BUFFER_BIT;
- if (props.bufferFeatures & VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT)
- bci.usage |= VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT;
if (bind & PIPE_BIND_SHADER_IMAGE) {
assert(props.bufferFeatures & VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT);
More information about the mesa-commit
mailing list