mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
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@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11416> (cherry picked from commit662dc70002)
This commit is contained in:
parent
f3f253a694
commit
1151f52ccf
2 changed files with 1 additions and 3 deletions
|
|
@ -1021,7 +1021,7 @@
|
|||
"description": "zink: drop repeated usage-bit",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "00dc0036bb6d0c6de1ec3dc395e1d9e63d05ed83"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -236,8 +236,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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue