* radeon HD7870: OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN OpenGL version string: 2.1 Mesa 9.2.0-devel (git-b042aae) OpenGL shading language version string: 1.30 * llvm 3.4svn HL2 based game are all segfaulting (here portal): --8<-- SDL video target is 'x11' SDL video target is 'x11' SDL failed to create GL compatibility profile (whichProfile=0)! Installing breakpad exception handler for appid(gameoverlayui)/version(20130709174336_client) Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client) Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client) Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client) Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number [0711/011648:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation Using breakpad crash handler Setting breakpad minidump AppID = 400 Forcing breakpad minidump interfaces to load Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Steam_SetMinidumpSteamID: Caching Steam ID: 76561197992653503 [API loaded yes] Steam_SetMinidumpSteamID: Setting Steam ID: 76561197992653503 Did not detect any valid joysticks. [0711/011652:ERROR:resource_bundle.cc(411)] Failed to load /home/lordh/.local/share/Steam/SteamApps/common/Portal/cef_gtk.pak Some features may not be available. [0711/011652:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation Could not load program cache file glbaseshaders.cfg Could not find base GL shader cache file CGLMShaderPair::SetProgramPair: Centroid masks differ at link time of vertex shader lightmappedgeneric_vs20 and pixel shader decalbasetimeslightmapalphablendselfillum2_ps20b! Loaded program cache file "glshaders.cfg", total keyvalues: 189, total successfully linked: 189 Precache: Took 8048 ms, Vertex 486, Pixel 906 ConVarRef mat_dxlevel doesn't point to an existing ConVar Game.so loaded for "Half-Life 2" Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number This system supports the OpenGL extension GL_EXT_framebuffer_object. This system supports the OpenGL extension GL_EXT_framebuffer_blit. This system DOES NOT support the OpenGL extension GL_EXT_framebuffer_multisample. This system DOES NOT support the OpenGL extension GL_APPLE_fence. This system DOES NOT support the OpenGL extension GL_NV_fence. This system supports the OpenGL extension GL_ARB_sync. This system supports the OpenGL extension GL_EXT_draw_buffers2. This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform. This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range. This system supports the OpenGL extension GL_ARB_map_buffer_range. This system supports the OpenGL extension GL_ARB_vertex_buffer_object. This system supports the OpenGL extension GL_ARB_occlusion_query. This system DOES NOT support the OpenGL extension GL_APPLE_texture_range. This system DOES NOT support the OpenGL extension GL_APPLE_client_storage. This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer. This system supports the OpenGL extension GL_ARB_vertex_array_bgra. This system supports the OpenGL extension GL_EXT_vertex_array_bgra. This system supports the OpenGL extension GL_ARB_framebuffer_object. This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker. This system supports the OpenGL extension GL_ARB_debug_output. This system DOES NOT support the OpenGL extension GL_EXT_direct_state_access. This system DOES NOT support the OpenGL extension GL_NV_bindless_texture. This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory. This system DOES NOT support the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled. This system supports the OpenGL extension GL_EXT_texture_sRGB_decode. This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info. This system DOES NOT support the OpenGL extension GL_ATI_meminfo. This system supports the OpenGL extension GL_EXT_texture_compression_s3tc. This system supports the OpenGL extension GL_EXT_texture_compression_dxt1. This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3. This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5. This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear. GL_NV_bindless_texture: DISABLED GL_AMD_pinned_memory: DISABLED GL_EXT_texture_sRGB_decode: AVAILABLE GL_NVX_gpu_memory_info: UNAVAILABLE GL_ATI_meminfo: UNAVAILABLE GL_MAX_SAMPLES_EXT: 0 CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 2800 MHz, Processor: AuthenticAMD GlobalMemoryStatus: 4294967295 CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 2800 MHz, Processor: AuthenticAMD GlobalMemoryStatus: 4294967295 IDirect3DDevice9::Create: BackBufWidth: 1920, BackBufHeight: 1080, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0 GL sampler object usage: ENABLED GL prefer MapBufferRange: NO IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 168 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 168 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 168 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 168 ps-combo 3 Unable to remove /home/lordh/.local/share/Steam/SteamApps/common/Portal/portal/gamestats.log! Unable to remove /home/lordh/.local/share/Steam/SteamApps/common/Portal/portal/gamestats.log! maxplayers set to 1 Error: Material "debug/debugluxels" uses unknown shader "DebugLuxels" Error: Material "___fillrate_0" uses unknown shader "FillRate" Error: Material "___debugnormalmap_1" uses unknown shader "DebugNormalMap" Error: Material "___debugdrawenvmapmask_2" uses unknown shader "DebugDrawEnvmapMask" Error: Material "___debugdepth_3" uses unknown shader "DebugDepth" Error: Material "___debugdepth_4" uses unknown shader "DebugDepth" Steam config directory: /home/lordh/.local/share/Steam/SteamApps/common/Portal/platform/config CClientSteamContext logged on = 1 Hud element 'CMapOverview' doesn't have an entry 'overview' in scripts/HudLayout.res JOY_AXIS_X: mapped to Turn (absolute) JOY_AXIS_Y: mapped to Look (absolute) JOY_AXIS_Z: unmapped JOY_AXIS_R: mapped to Forward (absolute) JOY_AXIS_U: mapped to Side (absolute) JOY_AXIS_V: unmapped Advanced Joystick settings initialized Can't use cheat cvar cam_snapto in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_ideallag in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_idealdelta in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_idealyaw in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_idealpitch in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_idealdist in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_idealdistright in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_idealdistup in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar cam_collision in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_maxpitch in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_minpitch in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_maxyaw in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_minyaw in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_maxdistance in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_mindistance in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_orthowidth in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar c_orthoheight in multiplayer, unless the server has sv_cheats set to 1. Unknown command "cl_thirdperson" Unknown command "sv_backspeed" Did not detect any valid joysticks. Not playing a local game. Console initialized. --- Missing Vgui material vgui/servers/icon_replay --- Missing Vgui material vgui/servers/icon_replay_column Can't use cheat cvar fog_start in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar fog_end in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar fog_startskybox in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar fog_endskybox in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar r_farz in multiplayer, unless the server has sv_cheats set to 1. Error: Material "___fillrate_0" uses unknown shader "FillRate" Error: Material "___debugnormalmap_1" uses unknown shader "DebugNormalMap" Error: Material "___debugdrawenvmapmask_2" uses unknown shader "DebugDrawEnvmapMask" Error: Material "___debugdepth_3" uses unknown shader "DebugDepth" Error: Material "___debugdepth_4" uses unknown shader "DebugDepth" Error: Material "debug/debugluxels" uses unknown shader "DebugLuxels" ##### CTexture::LoadTextureBitsFromFile couldn't find materials/models/weapons/v_models/v_hands/v_hands.vtf 'cfg/motd.txt' not found; not loaded 'cfg/motd_text.txt' not found; not loaded Requesting texture value from var "$basetexture" which is not a texture value (material: dev/bloomadd) Requesting texture value from var "$basetexture" which is not a texture value (material: dev/no_pixel_write) Requesting texture value from var "$basetexture" which is not a texture value (material: dev/lumcompare) JOY_AXIS_X: mapped to Turn (absolute) JOY_AXIS_Y: mapped to Look (absolute) JOY_AXIS_Z: unmapped JOY_AXIS_R: mapped to Forward (absolute) JOY_AXIS_U: mapped hl2_linux: AMDGPUInstrInfo.cpp:109: virtual void llvm::AMDGPUInstrInfo::storeRegToStackSlot(llvm::MachineBasicBlock&, llvm::MachineBasicBlock::iterator, unsigned int, bool, int, const llvm::TargetRegisterClass*, const llvm::TargetRegisterInfo*) const: Assertion `!"Not Implemented"' failed. to Side (absolute) JOY_AXIS_V: unmapped Advanced Joystick settings initialized Redownloading all lightmaps ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred Uploading dump (out-of-process) [proxy ''] /tmp/dumps/assert_20130711011649_1.dmp /home/lordh/.local/share/Steam/SteamApps/common/Portal/hl2.sh : ligne 67 : 14112 Abandon (core dumped)${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" Game removed: AppID 400 "Portal", ProcID 14112 -->8--
Can you provide the output from running with the environment variable RADEON_DUMP_SHADERS=1 ? Beware that it might be large if the game compiles many shaders before the failure.
Created attachment 82327 [details] shader dump from portal with RADEON_DUMP_SHADERS=1
Does this LLVM branch fix the crash: http://cgit.freedesktop.org/~tstellar/llvm/log/?h=si-sgpr-copies
(In reply to comment #3) > Does this LLVM branch fix the crash: > > http://cgit.freedesktop.org/~tstellar/llvm/log/?h=si-sgpr-copies No, it doesn't fix the crash, still the same error (i've only rebuilt the lib32 part of llvm as portal is 32-bit and replaced old libLLVM with new one)
Created attachment 82639 [details] [review] Possible Work Around I'm working on a proper fix for this, but in the mean time this patch should fix the crash.
Created attachment 82707 [details] [review] Mesa Patch #1
Created attachment 82708 [details] [review] Mesa Patch #2
Created attachment 82709 [details] [review] LLVM Patch #1
Created attachment 82710 [details] [review] LLVM Patch #2
Created attachment 82711 [details] [review] LLVM Patch #3 Can you try these patches (3 for LLVM, 2 for Mesa). If they don't fix the crash, can you post the output of RADEON_DUMP_SHADERS=1 with them applied.
Created attachment 82716 [details] shader dump from portal with RADEON_DUMP_SHADERS=1 with patches applied So i've applied llvm patches (lib32-llvm) and mesa patches (lib32-mesa) but without apparent changes
After applying patches L4D2 stop crash, during loading level, but HL2 Ep2 don't. HL2 Ep2 crash RADEON_DUMP_SHADERS=1 steam > stdout.log 2> stderr.log stderr.log - 0 b stdout.log -1.8 Mb ArchLinux x86; linux 3.10; mesa 9.2git; llvm 3.4svn; Radeon HD 7950
Created attachment 82717 [details] shader dump from HL2 Ep 2 with RADEON_DUMP_SHADERS=1 with patches applied
Created attachment 82852 [details] [review] Mesa Patch #2 v2 This is an updated version of the 2nd Mesa patch. If this doesn't fix the crash, can you repost the output of RADEON_DUMP_SHADERS=1 with this patch applied. When you test make sure you have applied LLVM patches 1,2, and 3 and also Mesa Patch #1 and Mesa Patch #2 v2.
(In reply to comment #14) > Created attachment 82852 [details] [review] [review] > Mesa Patch #2 v2 > > This is an updated version of the 2nd Mesa patch. If this doesn't fix the > crash, can you repost the output of RADEON_DUMP_SHADERS=1 with this patch > applied. When you test make sure you have applied LLVM patches 1,2, and 3 > and also Mesa Patch #1 and Mesa Patch #2 v2. It still fail with the same error: - lib32-mesa-git 57682.5a7bdd4 with Mesa Patch #1 and Mesa Patch #2 v2 - lib32-llvm-svn 186758 with LLVM Patch #1 #2 #3
Created attachment 82858 [details] shader dump from portal with RADEON_DUMP_SHADERS=1 with with mesa patch V2 applied
Created attachment 82866 [details] shader dump from HL2 Ep 2 with RADEON_DUMP_SHADERS=1 with patches v2 applied Crash again whith mesa patch v2
Created attachment 82875 [details] [review] Mesa Patch #2 v3 If you replace the v2 patch with this v3 patch, does it fix the crash?
>If you replace the v2 patch with this v3 patch, does it fix the crash? With this patch no more crash in HL2Ep2.
(In reply to comment #18) > Created attachment 82875 [details] [review] [review] > Mesa Patch #2 v3 > > If you replace the v2 patch with this v3 patch, does it fix the crash? Now portal (and it seems every games) fail with: LLVM ERROR: Cannot select: 0x17a18a74: i64 = zero_extend 0x17a18674 [ORD=325] [ID=450] 0x17a18674: i32 = srl 0x17a1855c, 0x1799e8e0 [ORD=324] [ID=414] 0x17a1855c: i32 = add 0x17a184d0, 0x179a0394 [ORD=323] [ID=378] 0x17a184d0: i32 = shl 0x17a15f48, 0x179a027c [ORD=322] [ID=341] 0x17a15f48: i32 = add 0x179a2260, 0x1799e73c [ORD=255] [ID=325] 0x179a2260: i32 = fp_to_sint 0x1799fe7c [ORD=119] [ID=315] 0x1799fe7c: f32 = fmul 0x1799f6d4, 0x1799fcd8 [ORD=86] [ID=307] 0x1799f6d4: f32 = extract_vector_elt 0x1799f648, 0x179fdb68 [ORD=74] [ID=259] 0x1799f648: v4f32 = llvm.SI.vs.load.input 0x1799e50c, 0x1799f5bc, 0x1799e598, 0x179fd794 [ORD=73] [ID=189] 0x1799e50c: i64 = TargetConstant<2607> [ID=34] 0x1799f5bc: v16i8,ch = load 0x179d25f8, 0x1799f530, 0x179fdbf4<LD16[%79](tbaa=!"const")> [ORD=72] [ID=125] 0x1799e598: i32 = Constant<0> [ID=35] 0x179fd794: i32,ch = CopyFromReg 0x179d25f8, 0x179fd708 [ID=88] 0x179fdb68: i64 = Constant<0> [ID=4] 0x1799fcd8: f32 = ConstantFP<7.650059e+02> [ID=44] 0x1799e73c: i32 = Constant<1> [ID=36] 0x179a027c: i32 = Constant<4> [ID=46] 0x179a0394: i32 = Constant<864> [ID=47] 0x1799e8e0: i32 = Constant<2> [ID=38] In function: main pure virtual method called
(In reply to comment #20) > (In reply to comment #18) > > Created attachment 82875 [details] [review] [review] [review] > > Mesa Patch #2 v3 > > > > If you replace the v2 patch with this v3 patch, does it fix the crash? > > Now portal (and it seems every games) fail with: > > LLVM ERROR: Cannot select: 0x17a18a74: i64 = zero_extend 0x17a18674 > [ORD=325] [ID=450] > 0x17a18674: i32 = srl 0x17a1855c, 0x1799e8e0 [ORD=324] [ID=414] > 0x17a1855c: i32 = add 0x17a184d0, 0x179a0394 [ORD=323] [ID=378] > 0x17a184d0: i32 = shl 0x17a15f48, 0x179a027c [ORD=322] [ID=341] > 0x17a15f48: i32 = add 0x179a2260, 0x1799e73c [ORD=255] [ID=325] > 0x179a2260: i32 = fp_to_sint 0x1799fe7c [ORD=119] [ID=315] > 0x1799fe7c: f32 = fmul 0x1799f6d4, 0x1799fcd8 [ORD=86] [ID=307] > 0x1799f6d4: f32 = extract_vector_elt 0x1799f648, 0x179fdb68 > [ORD=74] [ID=259] > 0x1799f648: v4f32 = llvm.SI.vs.load.input 0x1799e50c, > 0x1799f5bc, 0x1799e598, 0x179fd794 [ORD=73] [ID=189] > 0x1799e50c: i64 = TargetConstant<2607> [ID=34] > 0x1799f5bc: v16i8,ch = load 0x179d25f8, 0x1799f530, > 0x179fdbf4<LD16[%79](tbaa=!"const")> [ORD=72] [ID=125] > > > 0x1799e598: i32 = Constant<0> [ID=35] > 0x179fd794: i32,ch = CopyFromReg 0x179d25f8, 0x179fd708 > [ID=88] > > 0x179fdb68: i64 = Constant<0> [ID=4] > 0x1799fcd8: f32 = ConstantFP<7.650059e+02> [ID=44] > 0x1799e73c: i32 = Constant<1> [ID=36] > 0x179a027c: i32 = Constant<4> [ID=46] > 0x179a0394: i32 = Constant<864> [ID=47] > 0x1799e8e0: i32 = Constant<2> [ID=38] > In function: main > pure virtual method called LLVM Patch #3 should prevent this. Can you verify that you have it applied and then post an updated dump?
Portal also stopped falling with the latest patches. It remains to fix the bug 66974, and life will be a little better.:-)
(In reply to comment #21) > LLVM Patch #3 should prevent this. Can you verify that you have it applied > and then post an updated dump? I can confirm now it fixes the crash with portal, counter strike:source and HL2 games Patches weren't properly applied.
This should be fixed now. Can you try they latest versions of llvm and mesa?
(In reply to comment #24) > This should be fixed now. Can you try they latest versions of llvm and mesa? Yes, that's fixing the problem, so closing
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.