Skip to content

Commit

Permalink
tweaked some log entries
Browse files Browse the repository at this point in the history
  • Loading branch information
elFarto committed Mar 13, 2022
1 parent 999f1d6 commit ae5a33b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/export-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ bool allocateSurface(NVDriver *drv, NVSurface *surface) {
return false;
}

//LOG("eglExportDMABUFImageQueryMESA: %p %.4s (%x) planes:%d mods:%lx %lx", img, (char*)fourcc, *fourcc, planes, mods[0], mods[1]);
LOG("eglExportDMABUFImageQueryMESA: %p %.4s (%x) planes:%d mods:%lx %lx", img, (char*)&surface->fourcc, surface->fourcc, planes, surface->mods[0], surface->mods[1]);
EGLBoolean r = eglExportDMABUFImageMESA(drv->eglDisplay, surface->eglImage, surface->fds, surface->strides, surface->offsets);

if (!r) {
Expand Down
3 changes: 2 additions & 1 deletion src/vabackend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1564,8 +1564,9 @@ static VAStatus nvExportSurfaceHandle(
procParams.top_field_first = surfaceObj->topFieldFirst;
procParams.second_field = surfaceObj->secondField;

LOG("Mapping surface %d (picIdx: %d)", surface_id, surfaceObj->pictureIdx);
CHECK_CUDA_RESULT(cv->cuvidMapVideoFrame(context->decoder, surfaceObj->pictureIdx, &deviceMemory, &pitch, &procParams));
LOG("got address %llX (%d) for surface %d (picIdx: %d)", deviceMemory, pitch, surface_id, surfaceObj->pictureIdx);
LOG("Mapped surface to %llX (%d)", deviceMemory, pitch);
} else {
pitch = surfaceObj->width;
}
Expand Down

0 comments on commit ae5a33b

Please sign in to comment.