diff options
author | Eric Anholt <[email protected]> | 2015-04-14 11:24:00 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-04-15 16:50:22 -0700 |
commit | bd957b1b79124c5061af1eddf16932793e806d87 (patch) | |
tree | 67a6a55c330dd929a061f01c55ad2ca01c7a5859 /src/gallium/drivers/vc4/vc4_resource.c | |
parent | e1d095053b2b50109f77fd9eb524e8e1c7d025af (diff) |
vc4: Hook up VC4_DEBUG=perf to some useful printfs.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index f6ca0759012..94bab9934e7 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -586,6 +586,9 @@ vc4_update_shadow_baselevel_texture(struct pipe_context *pctx, if (shadow->writes == orig->writes) return; + perf_debug("Updating shadow texture due to %s\n", + view->u.tex.first_level ? "base level" : "raster layout"); + for (int i = 0; i <= shadow->base.b.last_level; i++) { unsigned width = u_minify(shadow->base.b.width0, i); unsigned height = u_minify(shadow->base.b.height0, i); @@ -646,6 +649,8 @@ vc4_update_shadow_index_buffer(struct pipe_context *pctx, if (shadow->writes == orig->writes) return; + perf_debug("Fallback conversion for %d uint indices\n", count); + struct pipe_transfer *src_transfer; uint32_t *src = pipe_buffer_map_range(pctx, &orig->base.b, ib->offset, |