rename tr_parse_context to tr_convert_context

This commit is contained in:
Anthony Pesch 2017-05-24 00:57:25 -04:00
parent 1fa8019d8b
commit a4704f4c50
4 changed files with 9 additions and 9 deletions

View File

@ -121,8 +121,8 @@ static void *emu_video_thread(void *data) {
break; break;
} }
/* parse the context, uploading its textures to the render backend */ /* convert the context, uploading its textures to the render backend */
tr_parse_context(emu->tr, emu->pending_ctx, &emu->video_rc); tr_convert_context(emu->tr, emu->pending_ctx, &emu->video_rc);
emu->pending_ctx = NULL; emu->pending_ctx = NULL;
/* after the context has been parsed, release the mutex to let /* after the context has been parsed, release the mutex to let
@ -276,8 +276,8 @@ static void emu_start_render(void *userdata, struct tile_context *ctx) {
mutex_unlock(emu->pending_mutex); mutex_unlock(emu->pending_mutex);
} else { } else {
/* parse the context and immediately render it */ /* convert the context and immediately render it */
tr_parse_context(emu->tr, ctx, &emu->video_rc); tr_convert_context(emu->tr, ctx, &emu->video_rc);
emu_render_frame(emu); emu_render_frame(emu);
} }

View File

@ -954,9 +954,9 @@ void tr_render_context(struct tr *tr, const struct tr_context *rc) {
PROF_LEAVE(); PROF_LEAVE();
} }
void tr_parse_context(struct tr *tr, const struct tile_context *ctx, void tr_convert_context(struct tr *tr, const struct tile_context *ctx,
struct tr_context *rc) { struct tr_context *rc) {
PROF_ENTER("gpu", "tr_parse_context"); PROF_ENTER("gpu", "tr_convert_context");
const uint8_t *data = ctx->params; const uint8_t *data = ctx->params;
const uint8_t *end = ctx->params + ctx->size; const uint8_t *end = ctx->params + ctx->size;

View File

@ -86,7 +86,7 @@ static inline tr_texture_key_t tr_texture_key(union tsp tsp, union tcw tcw) {
struct tr *tr_create(struct render_backend *rb, struct tr_provider *provider); struct tr *tr_create(struct render_backend *rb, struct tr_provider *provider);
void tr_destroy(struct tr *tr); void tr_destroy(struct tr *tr);
void tr_parse_context(struct tr *tr, const struct tile_context *ctx, void tr_convert_context(struct tr *tr, const struct tile_context *ctx,
struct tr_context *rc); struct tr_context *rc);
void tr_render_context(struct tr *tr, const struct tr_context *rc); void tr_render_context(struct tr *tr, const struct tr_context *rc);

View File

@ -235,7 +235,7 @@ static void tracer_prev_context(struct tracer *tracer) {
tracer->current_param = -1; tracer->current_param = -1;
tracer->scroll_to_param = 0; tracer->scroll_to_param = 0;
tracer_copy_context(tracer->current_cmd, &tracer->ctx); tracer_copy_context(tracer->current_cmd, &tracer->ctx);
tr_parse_context(tracer->tr, &tracer->ctx, &tracer->rc); tr_convert_context(tracer->tr, &tracer->ctx, &tracer->rc);
} }
static void tracer_next_context(struct tracer *tracer) { static void tracer_next_context(struct tracer *tracer) {
@ -272,7 +272,7 @@ static void tracer_next_context(struct tracer *tracer) {
tracer->current_param = -1; tracer->current_param = -1;
tracer->scroll_to_param = 0; tracer->scroll_to_param = 0;
tracer_copy_context(tracer->current_cmd, &tracer->ctx); tracer_copy_context(tracer->current_cmd, &tracer->ctx);
tr_parse_context(tracer->tr, &tracer->ctx, &tracer->rc); tr_convert_context(tracer->tr, &tracer->ctx, &tracer->rc);
} }
static void tracer_reset_context(struct tracer *tracer) { static void tracer_reset_context(struct tracer *tracer) {