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:
committed by
Kenneth Graunke
parent
8838861ea3
commit
beceb392d7
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user