Summary: | [radeonsi] half life 2 base games are segfaulting | ||
---|---|---|---|
Product: | Mesa | Reporter: | Laurent carlier <lordheavym> |
Component: | Drivers/Gallium/radeonsi | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | medium | CC: | grantipak |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
shader dump from portal with RADEON_DUMP_SHADERS=1
Possible Work Around Mesa Patch #1 Mesa Patch #2 LLVM Patch #1 LLVM Patch #2 LLVM Patch #3 shader dump from portal with RADEON_DUMP_SHADERS=1 with patches applied shader dump from HL2 Ep 2 with RADEON_DUMP_SHADERS=1 with patches applied Mesa Patch #2 v2 shader dump from portal with RADEON_DUMP_SHADERS=1 with with mesa patch V2 applied shader dump from HL2 Ep 2 with RADEON_DUMP_SHADERS=1 with patches v2 applied Mesa Patch #2 v3 |
Description
Laurent carlier
2013-07-10 23:25:12 UTC
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.