broadcom/vc4: Skip BO labeling when in simulator mode.

It was calling down into i915 trying to label the BO, which is definitely
not the right thing.
This commit is contained in:
Eric Anholt
2017-10-13 12:16:04 -07:00
parent d623a34ab2
commit b202f90f65
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ vc4_bo_label(struct vc4_screen *screen, struct vc4_bo *bo, const char *fmt, ...)
.len = strlen(name),
.name = (uintptr_t)name,
};
drmIoctl(screen->fd, DRM_IOCTL_VC4_LABEL_BO, &label);
vc4_ioctl(screen->fd, DRM_IOCTL_VC4_LABEL_BO, &label);
ralloc_free(name);
}
+4
View File
@@ -654,6 +654,10 @@ vc4_simulator_ioctl(int fd, unsigned long request, void *args)
*/
return 0;
case DRM_IOCTL_VC4_LABEL_BO:
/* This is just debug information, nothing to do. */
return 0;
case DRM_IOCTL_VC4_GET_TILING:
case DRM_IOCTL_VC4_SET_TILING:
/* Disable these for now, since the sharing with i965 requires