mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
d3d12: Fix take_ownership semantic for constant buffers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14941>
This commit is contained in:
parent
d52d500f17
commit
97d13b2deb
1 changed files with 2 additions and 2 deletions
|
|
@ -1378,10 +1378,10 @@ d3d12_set_constant_buffer(struct pipe_context *pctx,
|
|||
d3d12_increment_constant_buffer_bind_count(ctx, shader, d3d12_resource(buffer));
|
||||
|
||||
if (take_ownership) {
|
||||
pipe_resource_reference(&ctx->cbufs[shader][index].buffer, buffer);
|
||||
} else {
|
||||
pipe_resource_reference(&ctx->cbufs[shader][index].buffer, NULL);
|
||||
ctx->cbufs[shader][index].buffer = buffer;
|
||||
} else {
|
||||
pipe_resource_reference(&ctx->cbufs[shader][index].buffer, buffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue