Skip to content

rsx: Fix fragment constants decoding for non-x86 platforms - #15915

Merged
kd-11 merged 1 commit into
RPCS3:masterfrom
kd-11:asahi-support
Aug 9, 2024
Merged

rsx: Fix fragment constants decoding for non-x86 platforms#15915
kd-11 merged 1 commit into
RPCS3:masterfrom
kd-11:asahi-support

Conversation

@kd-11

@kd-11 kd-11 commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

Resolves the horrific visual glitches observed when running rpcs3 on arm.

Closes #15914

void fill_fragment_constants_buffer(std::span<f32> dst_buffer, const fragment_program_type& fragment_program, const RSXFragmentProgram& rsx_prog, bool sanitize = false) const;
void fill_fragment_constants_buffer(std::span<f32> dst_buffer, const fragment_program_type& fragment_program, const RSXFragmentProgram& rsx_prog, bool sanitize = false) const
{
ensure((dst_buffer.size_bytes() >= ::narrow<int>(fragment_program.FragmentConstantOffsetCache.size()) * 16u));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ensure((dst_buffer.size_bytes() >= ::narrow<int>(fragment_program.FragmentConstantOffsetCache.size()) * 16u));
ensure(dst_buffer.size_bytes() >= ::narrow<int>(fragment_program.FragmentConstantOffsetCache.size()) * 16u);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aarch64/rsx: Extreme visual flickering and visual corruption in 3D games

2 participants