*/
#include "pan_context.h"
+#include "pan_util.h"
#include "util/format/u_format.h"
static void
struct panfrost_context *ctx = pan_context(pipe);
if (!util_blitter_is_blit_supported(ctx->blitter, info)) {
- fprintf(stderr, "blit unsupported %s -> %s\n",
+ DBG("blit unsupported %s -> %s\n",
util_format_short_name(info->src.resource->format),
util_format_short_name(info->dst.resource->format));
return false;
if (panfrost_u_blitter_blit(pipe, info))
return;
- fprintf(stderr, "Unhandled blit");
-
return;
}
ret = drmIoctl(screen->fd, DRM_IOCTL_PANFROST_CREATE_BO, &create_bo);
if (ret) {
- fprintf(stderr, "DRM_IOCTL_PANFROST_CREATE_BO failed: %m\n");
+ DBG("DRM_IOCTL_PANFROST_CREATE_BO failed: %m\n");
return NULL;
}
break;
default:
- fprintf(stderr, "Skipping query %u\n", query->type);
+ DBG("Skipping query %u\n", query->type);
break;
}
case 32:
return MALI_CHANNEL_32;
default: {
- printf ("Invalid width: %d\n", size);
+ fprintf(stderr, "Invalid width: %d\n", size);
assert(0);
}
}
free(in_syncs);
if (ret) {
- fprintf(stderr, "Error submitting: %m\n");
+ DBG("Error submitting: %m\n");
return errno;
}
status = header->exception_status;
if (status && status != 0x1) {
- fprintf(stderr, "Job %" PRIx64 " failed: source ID: 0x%x access: %s exception: 0x%x (exception_status 0x%x) fault_pointer 0x%" PRIx64 " \n",
+ DBG("Job %" PRIx64 " failed: source ID: 0x%x access: %s exception: 0x%x (exception_status 0x%x) fault_pointer 0x%" PRIx64 " \n",
first_job_desc,
(status >> 16) & 0xFFFF,
pandecode_exception_access((status >> 8) & 0x3),
ret = panfrost_batch_submit_jobs(batch);
if (ret)
- fprintf(stderr, "panfrost_batch_submit failed: %d\n", ret);
+ DBG("panfrost_batch_submit failed: %d\n", ret);
/* We must reset the damage info of our render targets here even
* though a damage reset normally happens when the DRI layer swaps
return 0;
default:
- fprintf(stderr, "unknown shader param %d\n", param);
+ DBG("unknown shader param %d\n", param);
return 0;
}
if (ro) {
screen->ro = renderonly_dup(ro);
if (!screen->ro) {
- fprintf(stderr, "Failed to dup renderonly object\n");
+ DBG("Failed to dup renderonly object\n");
free(screen);
return NULL;
}