diff options
| author | wildcard <wildcard@eden-emu.dev> | 2026-02-07 22:44:32 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-02-07 22:44:32 +0100 |
| commit | e10f55d9db903fb51651ed8c5b9280e7724d18db (patch) | |
| tree | 188a6a6dd74d2ef8ba8f56e12f069a105956bcec /src/video_core/host_shaders | |
| parent | 71e035f83be0cc806ed3352452be27e3fec57aa9 (diff) | |
[host_shaders] Store the value of results instead of discarding it (#3464)
the function generated the value but we never stored it effectively discarding the result.
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3464
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Co-authored-by: wildcard <wildcard@eden-emu.dev>
Co-committed-by: wildcard <wildcard@eden-emu.dev>
Diffstat (limited to 'src/video_core/host_shaders')
| -rw-r--r-- | src/video_core/host_shaders/queries_prefix_scan_sum.comp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/host_shaders/queries_prefix_scan_sum.comp b/src/video_core/host_shaders/queries_prefix_scan_sum.comp index 6faa8981f2..7ecd5a096d 100644 --- a/src/video_core/host_shaders/queries_prefix_scan_sum.comp +++ b/src/video_core/host_shaders/queries_prefix_scan_sum.comp @@ -86,7 +86,7 @@ void WriteResults(uvec2 results[LOCAL_RESULTS]) { const uvec2 accum = accumulated_data; for (uint i = 0; i < LOCAL_RESULTS; i++) { uvec2 base_data = current_id * LOCAL_RESULTS + i < min_accumulation_base ? accum : uvec2(0, 0); - AddUint64(results[i], base_data); + results[i] = AddUint64(results[i], base_data); } for (uint i = 0; i < LOCAL_RESULTS; i++) { output_data[buffer_offset + current_id * LOCAL_RESULTS + i] = results[i]; |
