mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
zink: don't use defunct custom-flag
We're no longer respecting this flag, so there's no need in setting it. Fixes:00dc0036bb("zink: flatten out buffer creation usage flags codepath") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20183> (cherry picked from commit2ccf481c17)
This commit is contained in:
parent
0aecc20890
commit
1fa232af41
2 changed files with 2 additions and 6 deletions
|
|
@ -3190,7 +3190,7 @@
|
|||
"description": "zink: don't use defunct custom-flag",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "00dc0036bb6d0c6de1ec3dc395e1d9e63d05ed83"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3958,11 +3958,7 @@ zink_create_stream_output_target(struct pipe_context *pctx,
|
|||
if (!t)
|
||||
return NULL;
|
||||
|
||||
/* using PIPE_BIND_CUSTOM here lets us create a custom pipe buffer resource,
|
||||
* which allows us to differentiate and use VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT
|
||||
* as we must for this case
|
||||
*/
|
||||
t->counter_buffer = pipe_buffer_create(pctx->screen, PIPE_BIND_STREAM_OUTPUT | PIPE_BIND_CUSTOM, PIPE_USAGE_DEFAULT, 4);
|
||||
t->counter_buffer = pipe_buffer_create(pctx->screen, PIPE_BIND_STREAM_OUTPUT, PIPE_USAGE_DEFAULT, 4);
|
||||
if (!t->counter_buffer) {
|
||||
FREE(t);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue