diff options
Diffstat (limited to 'nvidia.patch')
-rw-r--r-- | nvidia.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nvidia.patch b/nvidia.patch new file mode 100644 index 000000000000..483757276de0 --- /dev/null +++ b/nvidia.patch @@ -0,0 +1,35 @@ +--- examples/dmabuf-capture.c 2022-02-03 16:19:54.000000000 -0500 ++++ examples/dmabuf-capture.c 2022-08-20 09:29:17.031186547 -0400 +@@ -1,4 +1,5 @@ + #define _POSIX_C_SOURCE 199309L ++#include <libavcodec/avcodec.h> + #include <libavformat/avformat.h> + #include <libavutil/display.h> + #include <libavutil/hwcontext_drm.h> +@@ -619,12 +620,12 @@ + } + + /* Find encoder */ +- AVCodec *out_codec = avcodec_find_encoder_by_name(ctx->encoder_name); ++ const AVCodec *out_codec = avcodec_find_encoder_by_name(ctx->encoder_name); + if (!out_codec) { + av_log(ctx, AV_LOG_ERROR, "Codec not found (not compiled in lavc?)!\n"); + return AVERROR(EINVAL); + } +- ctx->avf->oformat->video_codec = out_codec->id; ++ ctx->avf->oformat = av_guess_format(ctx->encoder_name, NULL, NULL); + ctx->is_software_encoder = !(out_codec->capabilities & AV_CODEC_CAP_HARDWARE); + + ctx->avctx = avcodec_alloc_context3(out_codec); + +--- render/gles2/renderer.c 2022-02-03 16:19:54.000000000 -0500 ++++ render/gles2/renderer.c 2022-08-20 09:29:26.937878381 -0400 +@@ -159,7 +159,7 @@ + assert(wlr_egl_is_current(renderer->egl)); + + push_gles2_debug(renderer); +- glFlush(); ++ glFinish(); + glBindFramebuffer(GL_FRAMEBUFFER, 0); + pop_gles2_debug(renderer); + |