aux/trace: copy over stream_output_target_offset method from context

this can't be traced, so don't crash

cc: mesa-stable

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14481>
(cherry picked from commit 01709464a4)
This commit is contained in:
Mike Blumenkrantz 2022-01-10 11:04:11 -05:00 committed by Eric Engestrom
parent fc8bc2d307
commit bb025625e1
2 changed files with 3 additions and 1 deletions

View file

@ -4810,7 +4810,7 @@
"description": "aux/trace: copy over stream_output_target_offset method from context",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2271,6 +2271,8 @@ trace_context_create(struct trace_screen *tr_scr,
TR_CTX_INIT(create_stream_output_target);
TR_CTX_INIT(stream_output_target_destroy);
TR_CTX_INIT(set_stream_output_targets);
/* this is lavapipe-only and can't be traced */
tr_ctx->base.stream_output_target_offset = pipe->stream_output_target_offset;
TR_CTX_INIT(resource_copy_region);
TR_CTX_INIT(blit);
TR_CTX_INIT(flush_resource);