mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
iris: Use const_uploader for iris_create_stream_output_target
This data is written and read by the GPU, and does not need to be in system memory. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10759>
This commit is contained in:
parent
8838861ea3
commit
beceb392d7
1 changed files with 1 additions and 1 deletions
|
|
@ -3791,7 +3791,7 @@ iris_set_stream_output_targets(struct pipe_context *ctx,
|
|||
}
|
||||
|
||||
if (!tgt->offset.res)
|
||||
upload_state(ctx->stream_uploader, &tgt->offset, sizeof(uint32_t), 4);
|
||||
upload_state(ctx->const_uploader, &tgt->offset, sizeof(uint32_t), 4);
|
||||
|
||||
struct iris_resource *res = (void *) tgt->base.buffer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue