tangled
alpha
login
or
join now
bwc9876.dev
/
nixos-config
1
fork
atom
Flake for my NixOS devices
1
fork
atom
overview
issues
pulls
pipelines
Gamescope Fix?
bwc9876.dev
1 year ago
5ed2b812
5aae1a28
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+26
2 changed files
expand all
collapse all
unified
split
res
gs-pw-amd.patch
systemConfigs
black-mesa.nix
+21
res/gs-pw-amd.patch
···
1
1
+
diff --git a/src/pipewire.cpp b/src/pipewire.cpp
2
2
+
index 2f06f7c..a2f7dd2 100644
3
3
+
--- a/src/pipewire.cpp
4
4
+
+++ b/src/pipewire.cpp
5
5
+
@@ -368,7 +368,6 @@ static void stream_handle_param_changed(void *data, uint32_t id, const struct sp
6
6
+
uint8_t buf[1024];
7
7
+
struct spa_pod_builder builder = SPA_POD_BUILDER_INIT(buf, sizeof(buf));
8
8
+
9
9
+
- int buffers = 4;
10
10
+
int shm_size = state->shm_stride * state->video_info.size.height;
11
11
+
if (state->video_info.format == SPA_VIDEO_FORMAT_NV12) {
12
12
+
shm_size += ((state->video_info.size.height + 1) / 2) * state->shm_stride;
13
13
+
@@ -378,7 +377,7 @@ static void stream_handle_param_changed(void *data, uint32_t id, const struct sp
14
14
+
const struct spa_pod *buffers_param =
15
15
+
(const struct spa_pod *) spa_pod_builder_add_object(&builder,
16
16
+
SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers,
17
17
+
- SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(buffers, 1, 8),
18
18
+
+ SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(4, 1, 32),
19
19
+
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(1),
20
20
+
SPA_PARAM_BUFFERS_size, SPA_POD_Int(shm_size),
21
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
56
+
patches =
57
57
+
old.patches
58
58
+
++ [
59
59
+
../res/gs-pw-amd.patch
60
60
+
];
56
61
});
57
62
capSysNice = true;
58
63
};