mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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.
This commit is contained in:
parent
8ebfa8fdb2
commit
0f034055f9
2 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue