diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-01-18 21:59:29 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-01-18 21:59:29 +0100 |
commit | bae0fdd9498c844f27d1aac6a072360f785c8e14 (patch) | |
tree | ebc341b5d0ac27d881e431b526cd298327827dcb /src/capture | |
parent | bcaf312bca57b521ae8b91c532242506fc7877af (diff) |
Diffstat (limited to 'src/capture')
-rw-r--r-- | src/capture/kms.c | 4 | ||||
-rw-r--r-- | src/capture/portal.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c index 3b9fbf0..50cd727 100644 --- a/src/capture/kms.c +++ b/src/capture/kms.c @@ -236,7 +236,7 @@ static int gsr_capture_kms_start(gsr_capture *cap, AVCodecContext *video_codec_c if(self->fast_path_failed) fprintf(stderr, "gsr warning: gsr_capture_kms_start: your amd driver (mesa) version is known to be buggy (<= version 24.0.9), falling back to opengl copy\n"); - self->mesa_supports_compute_only_vaapi_copy = self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD && gl_driver_version_greater_than(&self->params.egl->gpu_info, 24, 3, 3); + self->mesa_supports_compute_only_vaapi_copy = self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD && gl_driver_version_greater_than(&self->params.egl->gpu_info, 24, 3, 6); frame->width = video_codec_context->width; frame->height = video_codec_context->height; @@ -606,7 +606,7 @@ static void gsr_capture_kms_fail_fast_path_if_not_fast(gsr_capture_kms *self, ui const uint8_t pixel_format_color_depth_1 = (pixel_format >> 16) & 0xFF; if(!self->fast_path_failed && self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD && !self->mesa_supports_compute_only_vaapi_copy && (pixel_format_color_depth_1 == '3' || pixel_format_color_depth_1 == '4')) { self->fast_path_failed = true; - fprintf(stderr, "gsr warning: gsr_capture_kms_capture: the monitor you are recording is in 10/12-bit color format and your mesa version is <= 24.3.3, composition will be used." + fprintf(stderr, "gsr warning: gsr_capture_kms_capture: the monitor you are recording is in 10/12-bit color format and your mesa version is <= 24.3.6, composition will be used." " If you experience performance problems in the video then record on a single window on X11 or use portal capture option instead or disable 10/12-bit color option in your desktop environment settings," " or try to record the monitor on X11 instead (if you aren't already doing that) or update your mesa version.\n"); } diff --git a/src/capture/portal.c b/src/capture/portal.c index 9f4c125..27486fd 100644 --- a/src/capture/portal.c +++ b/src/capture/portal.c @@ -315,7 +315,7 @@ static int gsr_capture_portal_start(gsr_capture *cap, AVCodecContext *video_code if(self->fast_path_failed) fprintf(stderr, "gsr warning: gsr_capture_kms_start: your amd driver (mesa) version is known to be buggy (<= version 24.0.9), falling back to opengl copy\n"); - self->mesa_supports_compute_only_vaapi_copy = self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD && gl_driver_version_greater_than(&self->params.egl->gpu_info, 24, 3, 3); + self->mesa_supports_compute_only_vaapi_copy = self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD && gl_driver_version_greater_than(&self->params.egl->gpu_info, 24, 3, 6); frame->width = video_codec_context->width; frame->height = video_codec_context->height; @@ -332,7 +332,7 @@ static void gsr_capture_portal_fail_fast_path_if_not_fast(gsr_capture_portal *se const uint8_t pixel_format_color_depth_1 = (pixel_format >> 16) & 0xFF; if(!self->fast_path_failed && self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD && !self->mesa_supports_compute_only_vaapi_copy && (pixel_format_color_depth_1 == '3' || pixel_format_color_depth_1 == '4')) { self->fast_path_failed = true; - fprintf(stderr, "gsr warning: gsr_capture_kms_capture: the monitor you are recording is in 10/12-bit color format and your mesa version is <= 24.3.3, composition will be used." + fprintf(stderr, "gsr warning: gsr_capture_kms_capture: the monitor you are recording is in 10/12-bit color format and your mesa version is <= 24.3.6, composition will be used." " If you experience performance problems in the video then record on a single window on X11 instead or disable 10/12-bit color option in your desktop environment settings," " or try to record the monitor on X11 instead (if you aren't already doing that) or update your mesa version.\n"); } |