summarylogtreecommitdiffstats
path: root/nvidia.patch
diff options
context:
space:
mode:
authortohmais2023-03-04 12:57:23 +1000
committertohmais2023-03-04 12:57:23 +1000
commit0bfc5ba8d42f29eccd2d3119e06a32b4ff840492 (patch)
treead2daea7d7533a4cc0e3dbc6bc07cb11b7008e2f /nvidia.patch
parentd640892cb253d4a99ba170277a235b54cdc00e5d (diff)
downloadaur-0bfc5ba8d42f29eccd2d3119e06a32b4ff840492.tar.gz
readd screenshare patch
Diffstat (limited to 'nvidia.patch')
-rw-r--r--nvidia.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/nvidia.patch b/nvidia.patch
index 6abd4de2d209..38da095da505 100644
--- a/nvidia.patch
+++ b/nvidia.patch
@@ -9,3 +9,31 @@ diff --unified --recursive --text hyprland-test/src/hyprland/subprojects/wlroots
+ glFinish();
glBindFramebuffer(GL_FRAMEBUFFER, 0);
pop_gles2_debug(renderer);
+
+diff --unified --recursive --text hyprland-test/src/hyprland/subprojects/wlroots/types/output/render.c hyprland-git/src/hyprland/subprojects/wlroots/types/output/render.c
+--- types/output/render.c 2022-10-23 11:18:56.598893482 +1000
++++ types/output/render.c 2022-10-23 11:15:15.110308366 +1000
+@@ -325,22 +325,7 @@
+ }
+
+ uint32_t wlr_output_preferred_read_format(struct wlr_output *output) {
+- struct wlr_renderer *renderer = output->renderer;
+- assert(renderer != NULL);
+-
+- if (!renderer->impl->preferred_read_format || !renderer->impl->read_pixels) {
+- return DRM_FORMAT_INVALID;
+- }
+-
+- if (!output_attach_back_buffer(output, &output->pending, NULL)) {
+- return false;
+- }
+-
+- uint32_t fmt = renderer->impl->preferred_read_format(renderer);
+-
+- output_clear_back_buffer(output);
+-
+- return fmt;
++ return DRM_FORMAT_XRGB8888;
+ }
+
+ bool output_is_direct_scanout(struct wlr_output *output, \ No newline at end of file