mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
liverpool_to_vk: Don't use remapped format for clear value
This commit is contained in:
parent
a82698d601
commit
a4db58d408
@ -1009,7 +1009,6 @@ struct Liverpool {
|
||||
return RemapSwizzle(info.format, mrt_swizzle);
|
||||
}
|
||||
|
||||
private:
|
||||
[[nodiscard]] NumberFormat GetFixedNumberFormat() const {
|
||||
// There is a small difference between T# and CB number types, account for it.
|
||||
return info.number_type == NumberFormat::SnormNz ? NumberFormat::Srgb
|
||||
|
@ -807,8 +807,8 @@ vk::Format DepthFormat(DepthBuffer::ZFormat z_format, DepthBuffer::StencilFormat
|
||||
|
||||
vk::ClearValue ColorBufferClearValue(const AmdGpu::Liverpool::ColorBuffer& color_buffer) {
|
||||
const auto comp_swizzle = color_buffer.Swizzle();
|
||||
const auto format = color_buffer.GetDataFmt();
|
||||
const auto number_type = color_buffer.GetNumberFmt();
|
||||
const auto format = color_buffer.info.format.Value();
|
||||
const auto number_type = color_buffer.GetFixedNumberFormat();
|
||||
|
||||
const auto& c0 = color_buffer.clear_word0;
|
||||
const auto& c1 = color_buffer.clear_word1;
|
||||
|
Loading…
Reference in New Issue
Block a user