diff options
author | Eric Anholt <[email protected]> | 2014-08-04 16:38:07 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-11 14:45:32 -0700 |
commit | 0f034055f96b9dd7b1c54e8fa5422d22c26f2269 (patch) | |
tree | 5540b7f5e0f45b6b69e6d0b86879ffd653d03de0 /src | |
parent | 8ebfa8fdb27bb5efaeda4fe567622d5de4779342 (diff) |
vc4: Stash some debug code for looking at what BOs are at what hindex.
When you're debugging validation, it's nice to know what the BOs are for.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_bufmgr.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/vc4/vc4_simulator.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index faec853ec8d..a87cdfa9fd4 100644 --- a/src/gallium/drivers/vc4/vc4_bufmgr.c +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c @@ -106,6 +106,7 @@ vc4_bo_open_name(struct vc4_screen *screen, uint32_t name, bo->screen = screen; bo->handle = o.handle; bo->size = o.size; + bo->name = "winsys"; #ifdef USE_VC4_SIMULATOR vc4_bo_map(bo); diff --git a/src/gallium/drivers/vc4/vc4_simulator.c b/src/gallium/drivers/vc4/vc4_simulator.c index 8038fee5109..fc3d554a3ec 100644 --- a/src/gallium/drivers/vc4/vc4_simulator.c +++ b/src/gallium/drivers/vc4/vc4_simulator.c @@ -75,6 +75,10 @@ vc4_simulator_pin_bos(struct drm_device *dev, struct exec_info *exec) struct vc4_bo *bo = bos[i]; struct drm_gem_cma_object *obj = vc4_wrap_bo_with_cma(dev, bo); +#if 0 + fprintf(stderr, "bo hindex %d: %s\n", i, bo->name); +#endif + vc4_bo_map(bo); memcpy(obj->vaddr, bo->map, bo->size); |