-
-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shader_recompiler: Improvements to buffer addressing implementation. #2123
base: main
Are you sure you want to change the base?
Conversation
Since I saw swizzle changes I tested for #1858, no changes for that issue. |
Different kind of swizzle. |
im having like 3 fps less on dlc BB with this pr but dont now it maybe load to pc but tested on main and the fps where more by 3-4 i know is not a big difference but its the only thing i noticed changed with this pr on bb i9 intel 12900k |
If I had to guess any differences to performance should be either down to shader recompiles because of the changes which would be temporary as your GPU driver shader cache updates, or due to specialization fixes making more variants which is unavoidable for correctness. |
7374485
to
d10250b
Compare
I removed the uniform size fix for specialization for now as I'm still having some issues with excessive shader recompiles from buffer sizes, now it's just the buffer addressing changes. |
Hi Squidbus, thanks for the hard word so far! |
It's going to require a lot more work to implement the rest of addressing for texture buffers, since we can't offset them at the sub-texel level. |
87050a9
to
44f1c6b
Compare
we should rebase again |
Sure, done |
Adds a new common buffer addressing implementation, accounting for all of the different components:
index_stride
andelement_size
which need to be converted into their actual value from bit field.swizzle_enable
added to specialization.And misc related improvements:
Fixes some shaders in CUSA05637 that use swizzle addressing.