Skip to content

Commit

Permalink
vo_gpu: mark the ra_ctx type in the ra_ctx.log
Browse files Browse the repository at this point in the history
This is useful since it makes backend messages/errors get annotated
with either "opengl" or "vulkan". The nice thing about doing the log
transition here is that all of the platform-neutral code in the rest of
vo_gpu doesn't inherit it, but everything concerning the actual context,
spir-v compiler, RA backend, etc. does.
  • Loading branch information
haasn committed Sep 17, 2017
1 parent b7062e9 commit e3c65cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video/out/gpu/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ struct ra_ctx *ra_ctx_create(struct vo *vo, enum ra_api_type type,
*ctx = (struct ra_ctx) {
.vo = vo,
.global = vo->global,
.log = vo->log,
.log = mp_log_new(ctx, vo->log, type_names[contexts[i]->type]),
.opts = opts,
.fns = contexts[i],
};
Expand Down

0 comments on commit e3c65cc

Please sign in to comment.