mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #1050] [MERGED] amdgpu: Fix buffer comparison by naming padding fields for initialization. #1903
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#1903
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/1050
Author: @squidbus
Created: 9/24/2024
Status: ✅ Merged
Merged: 9/25/2024
Merged by: @georgemoralis
Base:
main← Head:buffer-cmp📝 Commits (1)
692f831amdgpu: Fix buffer comparison by naming padding fields for initialization.📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/video_core/amdgpu/resource.h(+2 -2)📄 Description
Comparing two buffers was not working because
memcmpis not guaranteed to work properly for bitfield structs with anonymous padding, as the padding is not initialized.This was causing some shaders to balloon in binding count since buffers were not properly being matched and de-duplicated. It also caused pipeline compilation failures in CUSA16429 since two different permutations could have different memcmp results in de-duplication and thus compile with different buffer bindings.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.