RPCS3 / rpcs3

PS3 emulator/debugger
https://rpcs3.net/
GNU General Public License v2.0
15.2k stars 1.89k forks source link

vulkan: Flickering/Corrupt/Swapped Textures on Intel drivers #12021

Open retroNUC opened 2 years ago

retroNUC commented 2 years ago

Summary

Textures in the game appear to be flickering/corrupt/swapped when being encountered for the first time on Vulkan. Most obvious on the title screens. Default settings, only just started using RPCS3. Game rendering fine when using OpenGL.

A Boy and His Blob [NPUB31614] RPCS3 Version: 0.0.22-13600-2ba437b6 Alpha | master

System Configuration

RPCS3.log.gz NPUB31614_20220516234757_capture.zip

image

kd-11 commented 2 years ago

Lol, the classic event sync bug on AMD proprietary. Needs KHR_synchronization2 but we also have an in-place workaround for AMD that should resolve this one as well.

kd-11 commented 2 years ago

Should be fixed by https://github.com/RPCS3/rpcs3/pull/12072. Please verify as I do not have the required hardware.

retroNUC commented 2 years ago

Tested on 0.0.22-13643 with included change. While the majority of texture corruption appears to be gone with this fix, especially with flickering on moving/animated sprites, some texture corruption and disappearing sprites still remain on Vulkan that do not occur on OpenGL.

image

RPCS3.log.gz

NPUB31614_20220525003926_capture.zip

kd-11 commented 2 years ago

Reopening. Needs synchronization2 extensions to fix it properly.

kd-11 commented 1 year ago

Should be fixed by https://github.com/RPCS3/rpcs3/pull/14065 assuming no driver bugs on intel.

retroNUC commented 1 year ago

Unfortunately, issue is still occurring in latest nightly RPCS3 build (0.0.28-15229), with latest Intel drivers (101.4502). New logs/capture attached.

image

RPCS3.log.gz NPUB31614_20230624230902_capture.zip

kd-11 commented 1 year ago

Try with https://github.com/RPCS3/rpcs3/pull/14101. Each driver and hardware seems to expect different setups and I just don't have Xe on hand.

JohnLoveJoy commented 1 year ago

Try with #14101. Each driver and hardware seems to expect different setups and I just don't have Xe on hand.

I can't reproduce this one, either in the Master or in the specified PR. The game runs perfectly here.

BBPS01Master

BBPS0

RPCS3.log.gz

retroNUC commented 1 year ago

Corruption still occurs on my system in 0.0.28-15270, which includes the above PR.

Less corruption (not seeing on the big Majesco logo any more), but still on many other texture elements during the intro.

Just to double-check, I reproduced this on a completely fresh install of RPCS3.

image

NPUB31614_20230630182850_capture.zip RPCS3.log.gz

kd-11 commented 1 year ago

Reopening. However, we don't have access to any xe hardware, so I'll remove from my wq for now.

retroNUC commented 1 year ago

For clarification, I'm not running any dedicated Xe/Arc hardware, this is just Intel integrated graphics on an 11th Gen CPU (Core i7-1165G7).

They stopped calling their integrated graphics 'Xe' after this very small period so it wouldn't confuse people with their upcoming dedicated hardware and went back to the 'UHD' moniker for 12/13th Gen, but I imagine you may be able to reproduce this on any modern (11th Gen onwards, non-F/KF) Intel CPU with any extra GPU hardware disabled.