diff options
author | Dave Airlie <airlied@gmail.com> | 2015-03-18 09:03:20 +1000 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2015-03-18 09:05:17 +1000 |
commit | e416e185692b2ec4eb87ce1a745ba479c7a41d2b (patch) | |
tree | 39f756f8bd05d166ca8775f595c2690c797bb52c | |
parent | 962d14f0a75412a2aa81af4d7598ca14b06e0c3c (diff) |
renderer: use debug name in some more debug statements
-rw-r--r-- | src/vrend_renderer.c | 8 | ||||
-rw-r--r-- | vtest/vtest_renderer.c | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index b0e3d74..127649b 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2112,7 +2112,7 @@ void vrend_draw_vbo(struct vrend_context *ctx, boolean fs_dirty, vs_dirty, gs_dirty; boolean dual_src = util_blend_state_is_dual(&ctx->sub->blend_state, 0); if (!ctx->sub->vs || !ctx->sub->fs) { - fprintf(stderr,"dropping rendering due to missing shaders\n"); + fprintf(stderr,"dropping rendering due to missing shaders: %s\n", ctx->debug_name); return; } @@ -2122,7 +2122,7 @@ void vrend_draw_vbo(struct vrend_context *ctx, vrend_shader_select(ctx, ctx->sub->gs, &gs_dirty); if (!ctx->sub->vs->current || !ctx->sub->fs->current || (ctx->sub->gs && !ctx->sub->gs->current)) { - fprintf(stderr, "failure to compile shader variants\n"); + fprintf(stderr, "failure to compile shader variants: %s\n", ctx->debug_name); return; } prog = lookup_shader_program(ctx, ctx->sub->vs->current->id, ctx->sub->fs->current->id, ctx->sub->gs ? ctx->sub->gs->current->id : 0, dual_src); @@ -2285,10 +2285,10 @@ void vrend_draw_vbo(struct vrend_context *ctx, } else loc = -1; if (loc == -1) { - fprintf(stderr,"cannot find loc %d %d %d\n", i, ctx->sub->ve->count, ctx->sub->prog->ss[PIPE_SHADER_VERTEX]->sel->sinfo.num_inputs); + fprintf(stderr,"%s: cannot find loc %d %d %d\n", ctx->debug_name, i, ctx->sub->ve->count, ctx->sub->prog->ss[PIPE_SHADER_VERTEX]->sel->sinfo.num_inputs); num_enable--; if (i == 0) { - fprintf(stderr,"shader probably didn't compile - skipping rendering\n"); + fprintf(stderr,"%s: shader probably didn't compile - skipping rendering\n", ctx->debug_name); return; } continue; diff --git a/vtest/vtest_renderer.c b/vtest/vtest_renderer.c index 68ec592..078f074 100644 --- a/vtest/vtest_renderer.c +++ b/vtest/vtest_renderer.c @@ -81,9 +81,6 @@ int vtest_create_renderer(int fd, uint32_t length) ret = vtest_block_read(renderer.remote_fd, vtestname, length); if (ret != length) return -1; - - fprintf(stderr, "string len is %d: %s\n", length, vtestname); - ret = virgl_renderer_context_create(ctx_id, strlen(vtestname), vtestname); return ret; } |