Skip to contentSkip to conversation

New: [radeonsi] half life 2 base games are segfaulting

Bug 66805 [email protected] 1 participant 27 messages Jul 10, 2013 – Aug 15, 2013

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=66805

          Priority: medium
            Bug ID: 66805
          Assignee: [email protected]
           Summary: [radeonsi] half life 2 base games are segfaulting
          Severity: blocker
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Drivers/Gallium/radeonsi
           Product: Mesa

* 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--

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #1 from Michel Dänzer <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #2 from Laurent carlier <[email protected]> --- Created attachment 82327
--> https://bugs.freedesktop.org/attachment.cgi?id=82327&action=edit
shader dump from portal with RADEON_DUMP_SHADERS=1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #3 from Tom Stellard <[email protected]> --- Does this LLVM branch fix the crash:

http://cgit.freedesktop.org/~tstellar/llvm/log/?h=si-sgpr-copies

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #4 from Laurent carlier <[email protected]> --- (In reply to comment #3)

Quoted 3 lines

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)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #5 from Tom Stellard <[email protected]> --- Created attachment 82639
--> https://bugs.freedesktop.org/attachment.cgi?id=82639&action=edit
Possible Work Around

I'm working on a proper fix for this, but in the mean time this patch should fix the crash.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #82639|0                           |1

is obsolete| |

--- Comment #6 from Tom Stellard <[email protected]> --- Created attachment 82707
--> https://bugs.freedesktop.org/attachment.cgi?id=82707&action=edit
Mesa Patch #1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #7 from Tom Stellard <[email protected]> --- Created attachment 82708
--> https://bugs.freedesktop.org/attachment.cgi?id=82708&action=edit
Mesa Patch #2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #8 from Tom Stellard <[email protected]> --- Created attachment 82709
--> https://bugs.freedesktop.org/attachment.cgi?id=82709&action=edit
LLVM Patch #1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #9 from Tom Stellard <[email protected]> --- Created attachment 82710
--> https://bugs.freedesktop.org/attachment.cgi?id=82710&action=edit
LLVM Patch #2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #10 from Tom Stellard <[email protected]> --- Created attachment 82711
--> https://bugs.freedesktop.org/attachment.cgi?id=82711&action=edit
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #11 from Laurent carlier <[email protected]> --- Created attachment 82716
--> https://bugs.freedesktop.org/attachment.cgi?id=82716&action=edit
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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #12 from Vladimir Ysikov <[email protected]> --- 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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #13 from Vladimir Ysikov <[email protected]> --- Created attachment 82717
--> https://bugs.freedesktop.org/attachment.cgi?id=82717&action=edit
shader dump from HL2 Ep 2 with RADEON_DUMP_SHADERS=1 with patches applied

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #82708|0                           |1

is obsolete| |

--- Comment #14 from Tom Stellard <[email protected]> --- Created attachment 82852
--> https://bugs.freedesktop.org/attachment.cgi?id=82852&action=edit
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #82710|0                           |1

is patch| |

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #15 from Laurent carlier <[email protected]> --- (In reply to comment #14)

Quoted 7 lines

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.

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #16 from Laurent carlier <[email protected]> --- Created attachment 82858
--> https://bugs.freedesktop.org/attachment.cgi?id=82858&action=edit
shader dump from portal with RADEON_DUMP_SHADERS=1 with with mesa patch V2 applied

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #17 from Vladimir Ysikov <[email protected]> --- Created attachment 82866
--> https://bugs.freedesktop.org/attachment.cgi?id=82866&action=edit
shader dump from HL2 Ep 2 with RADEON_DUMP_SHADERS=1 with patches v2 applied

Crash again whith mesa patch v2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #82852|0                           |1

is obsolete| |

--- Comment #18 from Tom Stellard <[email protected]> --- Created attachment 82875
--> https://bugs.freedesktop.org/attachment.cgi?id=82875&action=edit
Mesa Patch #2 v3

If you replace the v2 patch with this v3 patch, does it fix the crash?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #19 from Vladimir Ysikov <[email protected]> ---

Quoted 1 line

If you replace the v2 patch with this v3 patch, does it fix the crash?

With this patch no more crash in HL2Ep2.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #20 from Laurent carlier <[email protected]> --- (In reply to comment #18)

Quoted 4 lines

Created attachment 82875 [details] [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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #21 from Tom Stellard <[email protected]> --- (In reply to comment #20)

Quoted 29 lines

(In reply to comment #18)

Quoted 4 lines

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]

Quoted 8 lines
                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?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #22 from Vladimir Ysikov <[email protected]> --- Portal also stopped falling with the latest patches.
It remains to fix the bug 66974, and life will be a little better.:-)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #23 from Laurent carlier <[email protected]> --- (In reply to comment #21)

Quoted 2 lines

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

--- Comment #24 from Tom Stellard <[email protected]> ---
This should be fixed now. Can you try they latest versions of llvm and mesa?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw

[Bug 66805] [radeonsi] half life 2 base games are segfaulting

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66805

Laurent carlier <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #25 from Laurent carlier <[email protected]> --- (In reply to comment #24)

Quoted 1 line

This should be fixed now. Can you try they latest versions of llvm and mesa?

Yes, that's fixing the problem, so closing

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel