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:
Mark Janes 2020-08-25 15:27:07 -07:00 committed by Kenneth Graunke
parent 8838861ea3
commit beceb392d7

View file

@ -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;