OldUnreal / UnrealTournamentPatches

Other
1k stars 29 forks source link

[469c-RC4] XOpenGL blank screen #1029

Closed mkardi closed 2 years ago

mkardi commented 2 years ago

469c-rc4 with XOpenGL renderer results completely blank screen.

In previous patches I worked around the issue by setting UseBindlessTextures=False but this no longer works. It could be entirely different issue though.

Platform: Debian Linux 11 x64 Graphics: Ryzen 5700G integrated APU

[XOpenGLDrv.XOpenGLRenderDevice]
UseLightmapAtlas=True
UseBufferInvalidation=False
NoDrawSimple=False
NoDrawTile=False
NoDrawGouraudList=False
NoDrawGouraud=False
NoDrawComplexSurface=False
NoBuffering=False
UseOpenGLDebug=False
DebugLevel=2
MaxBindlessTextures=2097152
UseShaderDrawParameters=True
UseBindlessLightmaps=True
UseBindlessTextures=True
SimulateMultiPass=False
UseSRGBTextures=False
GenerateMipMaps=False
NoAATiles=True
ParallaxVersion=None
BumpMaps=True
MacroTextures=True
GammaCorrectScreenshots=True
UseAA=True
UseTrilinear=True
UsePrecache=True
AlwaysMipmap=False
ShareLists=True
NoFiltering=False
GammaMultiplierUED=1.000000
GammaMultiplier=1.000000
MaxAnisotropy=4.000000
LODBias=0.000000
GammaOffsetScreenshots=0.700000
DetailMax=2
NumAASamples=4
RefreshRate=0
UseVSync=Adaptive
OpenGLVersion=Core
DetailTextures=True
DescFlags=1
Description=AMD RENOIR (DRM 3.46.0, 5.18.0-0.deb11.3-amd64, LLVM 11.0.1)
HighDetailActors=True
Coronas=True
ShinySurfaces=True
VolumetricLighting=True
UseHWClipping=False
UseHWLighting=False
UsePersistentBuffers=False

log

Log: Opening SDL viewport.
Log: Bound to XOpenGLDrv.so
Log: Loaded render device class.
Log: USDLViewport::ResizeViewport(1920, 1080)
Log: SDLDrv: Window Point Size 1920x1080 - Window Pixel Size 1920x1080 - Mouse Scale 1.000000,1.000000
Init: GL_VENDOR     : AMD
Init: GL_RENDERER   : AMD RENOIR (DRM 3.46.0, 5.18.0-0.deb11.3-amd64, LLVM 11.0.1)
Init: GL_VERSION    : 4.6 (Core Profile) Mesa 20.3.5
Init: GL_SHADING_LANGUAGE_VERSION    : 4.60
Init: XOpenGL: OpenGL 4.6 core context initialized!
DevGraphics: XOpenGL: GL_ARB_bindless_texture found. UseBindlessTextures enabled.
DevGraphics: XOpenGL: GL_ARB_shader_draw_parameters and GL_ARB_shader_storage_buffer_object found. UseShaderDrawParameters enabled.
DevGraphics: XOpenGL: GL_ARB_cull_distance / GL_EXT_clip_cull_distance found.
DevGraphics: XOpenGL: GL_NVX_gpu_memory_info found.
DevGraphics: XOpenGL: GL_ATI_meminfo found.
DevGraphics: XOpenGL: SDL_GL RED_SIZE:8 GREEN_SIZE:8 BLUE_SIZE:8 ALPHA_SIZE:0
DevGraphics: XOpenGL: SDL_GL_DEPTH_SIZE DesiredDepthBits: 24, provided: 0
DevGraphics: XOpenGL: MaxTextureImageUnits: 32
DevGraphics: XOpenGL: MaxVertexTextureImageUnits: 32
DevGraphics: XOpenGL: MaxImageUnits: 192
DevGraphics: XOpenGL: MaxCombinedTextureImageUnits: 192
DevGraphics: XOpenGL: MaxElementsVertices: 3000
DevGraphics: XOpenGL: MaxUniformBufferBindings: 90
DevGraphics: XOpenGL: MaxDualSourceDrawBuffers: 1
DevGraphics: XOpenGL: MaxTextureSize: 16384
Warning: XOpenGL: Texture lod bias extension not found!
DevGraphics: XOpenGL: MaxAnisotropy = (4.000000/16.000000)
DevGraphics: XOpenGL: SDL_GL_MULTISAMPLEBUFFERS: 1, requested NumAASamples: 4, provided NumAASamples/MaxSamples: (4/8)
DevGraphics: XOpenGL: GL_NUM_EXTENSIONS found: 227
DevGraphics: XOpenGL: GL_MAX_CLIP_DISTANCES found: 8
DevGraphics: XOpenGL: MaxUniformBlockSize: 67108864
DevGraphics: XOpenGL: Flush
Init: XOpenGL: VSync Adaptive
Log: XOpenGL: BindlessHandleStorage: Shader Storage Buffer Object
Log: XOpenGL: Initializing MaxBindlessTextures to 2097152
Warning: XOpenGL: Failed linking DrawSimpleProg
Log: XOpenGL: Log linking DrawSimpleProg error: Too many vertex shader texture samplers
error: Too many fragment shader texture samplers

Warning: XOpenGL: Failed linking DrawTileProg
Log: XOpenGL: Log linking DrawTileProg error: Too many vertex shader texture samplers
error: Too many geometry shader texture samplers
error: Too many fragment shader texture samplers

Warning: XOpenGL: Failed linking DrawComplexProg
Log: XOpenGL: Log linking DrawComplexProg error: Too many vertex shader texture samplers
error: Too many fragment shader texture samplers

Warning: XOpenGL: Failed linking DrawGouraudProg
Log: XOpenGL: Log linking DrawGouraudProg error: Too many vertex shader texture samplers
error: Too many geometry shader texture samplers
error: Too many fragment shader texture samplers

DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalMatrices in DrawSimpleProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalMatrices in DrawTileProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalMatrices in DrawComplexProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalMatrices in DrawGouraudProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) ClipPlaneParams in DrawSimpleProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) ClipPlaneParams in DrawTileProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) ClipPlaneParams in DrawComplexProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) ClipPlaneParams in DrawGouraudProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) StaticLightInfo in DrawSimpleProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) StaticLightInfo in DrawTileProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) StaticLightInfo in DrawComplexProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) StaticLightInfo in DrawGouraudProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalCoords in DrawSimpleProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalCoords in DrawTileProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalCoords in DrawComplexProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformBlockIndex) GlobalCoords in DrawGouraudProg
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) DrawColor in DrawSimple
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) bHitTesting in DrawSimple
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) LineFlags in DrawSimple
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Gamma in DrawSimple
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) TexCoords in DrawTile
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) bHitTesting in DrawTile
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) HitDrawColor in DrawTile
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture0 in DrawTile
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) PolyFlags in DrawTile
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) TexNum in DrawTile
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Gamma in DrawTile
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) TexCoords in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) TexNum in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) DrawFlags in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture0 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture1 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture2 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture3 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture4 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture5 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture6 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture7 in DrawComplexSinglePass
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) DrawData in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) DrawFlags in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) TexNum in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture0 in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture1 in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture2 in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture3 in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture4 in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture5 in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture6 in DrawGouraud
DevGraphics: XOpenGL: invalid or unused shader var (UniformLocation) Texture7 in DrawGouraud
DevGraphics: Mapping Buffers
DevGraphics: Mapping BindlessTexturesBuffer
Log: Bound to ALAudio.so
...
stijn-volckaert commented 2 years ago

Confirmed. The AMD and Intel drivers had an issue with something we did in the shaders that shipped with RC4. The 469c release version will have a fix

stijn-volckaert commented 2 years ago

Fixed in the 469c release version