aboutsummaryrefslogtreecommitdiff
path: root/src/capture/kms_cuda.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-08-11 22:11:41 +0200
committerdec05eba <dec05eba@protonmail.com>2023-08-11 22:11:41 +0200
commit2765a5d4765415fc6ed3f41c1fd7e1137e107854 (patch)
tree00d2030f34050fc93996dde4ffd0c4423f46645f /src/capture/kms_cuda.c
parentba00c20b478d76db5a462d592971b82527c5e638 (diff)
Cleanup debug output
Diffstat (limited to 'src/capture/kms_cuda.c')
-rw-r--r--src/capture/kms_cuda.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/capture/kms_cuda.c b/src/capture/kms_cuda.c
index d5ff84f..434b452 100644
--- a/src/capture/kms_cuda.c
+++ b/src/capture/kms_cuda.c
@@ -284,24 +284,14 @@ static bool gsr_capture_kms_register_egl_image_in_cuda(gsr_capture_kms_cuda *cap
if(res != CUDA_SUCCESS) {
const char *err_str = "unknown";
cap_kms->cuda.cuGetErrorString(res, &err_str);
- fprintf(stderr, "gsr error: cuda_register_egl_image: cuGraphicsEGLRegisterImage failed, error %s (%d), egl image %p\n",
+ fprintf(stderr, "gsr error: cuda_register_egl_image: cuGraphicsEGLRegisterImage failed, error: %s (%d), egl image %p\n",
err_str, res, image);
res = cap_kms->cuda.cuCtxPopCurrent_v2(&old_ctx);
return false;
}
- if(res != CUDA_SUCCESS) {
- fprintf(stderr, "cuda error 1\n");
- }
-
res = cap_kms->cuda.cuGraphicsResourceSetMapFlags(cap_kms->cuda_graphics_resource, CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY);
- if(res != CUDA_SUCCESS) {
- fprintf(stderr, "cuda error 2\n");
- }
res = cap_kms->cuda.cuGraphicsSubResourceGetMappedArray(&cap_kms->mapped_array, cap_kms->cuda_graphics_resource, 0, 0);
- if(res != CUDA_SUCCESS) {
- fprintf(stderr, "cuda error 3\n");
- }
res = cap_kms->cuda.cuCtxPopCurrent_v2(&old_ctx);
return true;
}