Add shader non-uniform indexing support #91
No reviewers
Labels
No labels
audio
bug
confirmed
cpu
critical
development
enhancement
gpu
graphics-backend:opengl
graphics-backend:vulkan
gui
help wanted
horizon/hle
i18n
infra
input
kernel
linux
macos
suggestion
windows
No assignees
3 participants
Notifications
Due date
No due date set.
Reference
projects/Ryubing!91
Loading…
Reference in a new issue
No description provided.
Delete branch "AsperTheDog/Ryubing:master"
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?
This PR marks ALL texture indexes as nonuniform to fix an issue with the paths in Tomodachi Life: Living the Dream on AMD cards. It should have a negligible impact on performance (and it should not have an impact at all in Nvidia cards)
It's caused by what is called implicit non-uniform sampler array indexing. The idea is basically that some GPUs optimize texture lookups from indexed texture arrays by assuming that you are never going to index different textures within a single workgroup. What this causes is that visual glitch where a subgroup is tasked with rendering a block of the screen, and in the boundaries some cores are indexing the wrong texture.
d2291fcac87bb6df9adeIs there any reason this is forced instead of user-config? As far as I can tell, this is the only forced extension used in every shader now - seems a bit wasteful.