mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #1381] [MERGED] video_core: Rework clear values #2077
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2077
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/1381
Author: @LNDF
Created: 10/14/2024
Status: ✅ Merged
Merged: 10/16/2024
Merged by: @georgemoralis
Base:
main← Head:clear-values-v2📝 Commits (10+)
ea95d83Clear color convertion6de8e29Add missing formats9834a5eAdd swap handling282d680Format bits and offsetsd7ae897clang-formatc3db374Make num_components const665db9cInitialize alpha to 123f75bcHandle SnormNz as Snorm400773fDon0t leave accidental nonzero valuese335fe2parallel3 for linux-qt📊 Changes
7 files changed (+557 additions, -58 deletions)
View changed files
📝
.github/workflows/build.yml(+1 -1)📝
CMakeLists.txt(+3 -4)📝
externals/CMakeLists.txt(+4 -4)➕
src/common/number_utils.cpp(+161 -0)➕
src/common/number_utils.h(+28 -0)📝
src/video_core/amdgpu/pixel_format.cpp(+18 -18)📝
src/video_core/renderer_vulkan/liverpool_to_vk.cpp(+342 -31)📄 Description
This PR reworks clear liverpool to vk clear values conversion. It handles all (most) formats and all swap modes.
I might be wrong but i think that formats are named backwards in types.h. (example: Format11_11_10 has 10 bits red and 11 for green and blue). If i'm wrong, I will revert. Source: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/amd/vulkan/radv_formats.c#L502
Draft since it needs testing.
Replaces #1367
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.