Flake for my NixOS devices

Gamescope Fix?

bwc9876.dev 5ed2b812 5aae1a28

verified
+26
+21
res/gs-pw-amd.patch
··· 1 + diff --git a/src/pipewire.cpp b/src/pipewire.cpp 2 + index 2f06f7c..a2f7dd2 100644 3 + --- a/src/pipewire.cpp 4 + +++ b/src/pipewire.cpp 5 + @@ -368,7 +368,6 @@ static void stream_handle_param_changed(void *data, uint32_t id, const struct sp 6 + uint8_t buf[1024]; 7 + struct spa_pod_builder builder = SPA_POD_BUILDER_INIT(buf, sizeof(buf)); 8 + 9 + - int buffers = 4; 10 + int shm_size = state->shm_stride * state->video_info.size.height; 11 + if (state->video_info.format == SPA_VIDEO_FORMAT_NV12) { 12 + shm_size += ((state->video_info.size.height + 1) / 2) * state->shm_stride; 13 + @@ -378,7 +377,7 @@ static void stream_handle_param_changed(void *data, uint32_t id, const struct sp 14 + const struct spa_pod *buffers_param = 15 + (const struct spa_pod *) spa_pod_builder_add_object(&builder, 16 + SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers, 17 + - SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(buffers, 1, 8), 18 + + SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(4, 1, 32), 19 + SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(1), 20 + SPA_PARAM_BUFFERS_size, SPA_POD_Int(shm_size), 21 + SPA_PARAM_BUFFERS_stride, SPA_POD_Int(state->shm_stride),
+5
systemConfigs/black-mesa.nix
··· 53 53 fetchSubmodules = true; 54 54 hash = "sha256-zAzIi3syJYtbKjydp19d1OxZvMjXb+eO+mXT/mJPEuA="; 55 55 }; 56 + patches = 57 + old.patches 58 + ++ [ 59 + ../res/gs-pw-amd.patch 60 + ]; 56 61 }); 57 62 capSysNice = true; 58 63 };