llvm Unreal Elemental rendering regression
A message that is not in the archive (sent off-list or not yet received): [email protected]/
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #1 from Andy Furniss <[email protected]> --- radeonsi R9270X I am getting mainly black screen with just a few frames/blocks correct since llvm commit -
6f485c0bc532ae7954ca5e0f3fe50a5558b64883 is the first bad commit commit 6f485c0bc532ae7954ca5e0f3fe50a5558b64883
Author: Matt Arsenault <[email protected]> Date: Thu Nov 13 23:03:09 2014 +0000
R600/SI: Fix fmin_legacy / fmax_legacy matching for SI
select_cc is expanded on SI, so this was never matched.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #2 from Marek Olšák <[email protected]> --- Created attachment 109675
--> https://bugs.freedesktop.org/attachment.cgi?id=109675&action=edit
workaround
Can you test this LLVM patch. It's not a final fix.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #3 from Andy Furniss <[email protected]> --- (In reply to Marek Olšák from comment #2)
Quoted 4 lines
Created attachment 109675 [details] [review]
workaroundCan you test this LLVM patch. It's not a final fix.
It doesn't apply to head, so testing reset on the bad commit - Yes it does workaround the issue.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
Matt Arsenault <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from Matt Arsenault <[email protected]> --- Created attachment 109693
--> https://bugs.freedesktop.org/attachment.cgi?id=109693&action=edit
Tentative fix
I think this is because I was assuming this would only ever see ordered comparisons. This tries disabling the combine for unordered compares
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #5 from Marek Olšák <[email protected]> --- (In reply to Matt Arsenault from comment #4)
Quoted 5 lines
Created attachment 109693 [details] [review]
Tentative fixI think this is because I was assuming this would only ever see ordered comparisons. This tries disabling the combine for unordered compares
Your patch fixes this issue.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #6 from Andy Furniss <[email protected]> --- Created attachment 109694
--> https://bugs.freedesktop.org/attachment.cgi?id=109694&action=edit
clang build fail with Tentative fix
I get a build fail with this - I build OK same tree without patch.
clang is roughly from same tree, though I deleted tools/clang when doing the bisect and haven't reinstated yet.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #7 from Andy Furniss <[email protected]> --- (In reply to Andy Furniss from comment #6)
Quoted 7 lines
Created attachment 109694 [details]
clang build fail with Tentative fixI get a build fail with this - I build OK same tree without patch.
clang is roughly from same tree, though I deleted
tools/clangwhen doing the bisect and haven't reinstated yet.
Never mind - I've upgraded GCC - for whatever reason it didn't care or error initially even though I cleaned + git clean -dfx + git reset hard origin/master.
Now I do it and it bails early in the configure -
We detected a missing feature in the standard C++ library that was known to be missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older than 4.7. You will need to update your system and ensure Clang uses the newer standard library.
Which is confusing as I've just upgraded from gcc 4.8.3 to 4.9.2.
Maybe I need to try rebuilding llvm/clang with gcc.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
Andy Furniss <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #109694|0 |1
is obsolete| |
--- Comment #8 from Andy Furniss <[email protected]> --- Comment on attachment 109694
--> https://bugs.freedesktop.org/attachment.cgi?id=109694
clang build fail with Tentative fix
Quoted 73 lines
make[3]: Entering directory '
/mnt/sdb1/Src64/llvm/lib/Target/R600'
llvm[3]: Compiling AMDGPUISelLowering.cpp for Release+Asserts build
clang:/mnt/sdb1/Src64/llvm/include/llvm/Support/Casting.h:237: typename cast_retty<X, Y *>::ret_typellvm::cast(Y *)[X =llvm::CallInst, Y =llvm::Instruction]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed. #00x7fa42bcc70b8llvm::sys::PrintStackTrace(_IO_FILE*)(/usr/bin/../lib/libLLVM-3.6svn.so+0x4230b8)
#10x7fa42bcc883bSignalHandler(int) (/usr/bin/../lib/libLLVM-3.6svn.so+0x42483b)
#20x7fa42b4812a0__restore_rt(/lib/libpthread.so.0+0xf2a0)
#30x7fa42a27e985__GI_raise/sources/eglibc-2.15/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:64:0
#40x7fa42a281aab__GI_abort/sources/eglibc-2.15/stdlib/abort.c:93:0
#50x7fa42a2779de__assert_fail_base/sources/eglibc-2.15/assert/assert.c:55:0
#60x7fa42a277a82(/lib/libc.so.6+0x2da82)
#70x8a43b7clang::CodeGen::CodeGenFunction::EmitCall(clang::CodeGen::CGFunctionInfo const&, llvm::Value*,clang::CodeGen::ReturnValueSlot,clang::CodeGen::CallArgListconst&,clang::Declconst*, llvm::Instruction**) (/usr/bin/clang+0x8a43b7) #80x8eab51clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorCall(clang::CXXMethodDecl const*, llvm::Value*,clang::CodeGen::ReturnValueSlot, llvm::Value*, llvm::Value*,clang::QualType,clang::CallExprconst*) (/usr/bin/clang+0x8eab51) #90x8ebb5eclang::CodeGen::CodeGenFunction::EmitCXXMemberCallExpr(clang::CXXMemberCallExpr const*, clang::CodeGen::ReturnValueSlot)(/usr/bin/clang+0x8ebb5e)
#100x8e053bclang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot)(/usr/bin/clang+0x8e053b)
#110x909ade(/usr/bin/clang+0x909ade)
#120x8f9943clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)(/usr/bin/clang+0x8f9943)
#130x8b9e19clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool)(/usr/bin/clang+0x8b9e19)
#140x8bca2eclang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool)(/usr/bin/clang+0x8bca2e)
#150x8bb9edclang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission const&)(/usr/bin/clang+0x8bb9ed)
#160x8b880aclang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&)(/usr/bin/clang+0x8b880a)
#170x7daa7cclang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&)(/usr/bin/clang+0x7daa7c)
#180x7d32b4clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*)(/usr/bin/clang+0x7d32b4)
#190x7d230fclang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*)(/usr/bin/clang+0x7d230f)
#200x7db4abclang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot)(/usr/bin/clang+0x7db4ab)
#210x7efa47clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&, clang::Stmt const*)(/usr/bin/clang+0x7efa47)
#220x7f002aclang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&)(/usr/bin/clang+0x7f002a)
#230x7ff21fclang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*)(/usr/bin/clang+0x7ff21f)
#240x7fc049clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*)(/usr/bin/clang+0x7fc049)
#250x800c31clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)(/usr/bin/clang+0x800c31)
#260x79fe9f(/usr/bin/clang+0x79fe9f)
#270x796d47(/usr/bin/clang+0x796d47)
#280x99ebc3clang::ParseAST(clang::Sema&, bool, bool)(/usr/bin/clang+0x99ebc3)
#290x5a86aeclang::FrontendAction::Execute()(/usr/bin/clang+0x5a86ae)
#300x57b87cclang::CompilerInstance::ExecuteAction(clang::FrontendAction&)(/usr/bin/clang+0x57b87c)
#310x55dc62clang::ExecuteCompilerInvocation(clang::CompilerInstance*)(/usr/bin/clang+0x55dc62)
#320x5548edcc1_main(llvm::ArrayRef<char const*>, char const*, void*)(/usr/bin/clang+0x5548ed)
#330x55c2e2main (/usr/bin/clang+0x55c2e2)
#340x7fa42a26b36d__libc_start_main/sources/eglibc-2.15/csu/libc-start.c:258:0
#350x5545d5_start(/usr/bin/clang+0x5545d5)
Stack dump:0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name AMDGPUISelLowering.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.23 -momit-leaf-frame-pointer -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file /mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.o -resource-dir /usr/bin/../lib/clang/3.6.0 -dependency-file /mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.d.tmp -MP -MT /mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.o -MT /mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.d -D _DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /mnt/sdb1/Src64/llvm/include -I /mnt/sdb1/Src64/llvm/lib/Target/R600 -internal-isystem /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2 -internal-isystem /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/x86_64-unknown-linux-gnu -internal-isystem /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.6.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wcast-qual -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers -Wno-comment -pedantic -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /mnt/sdb1/Src64/llvm/lib/Target/R600 -ferror-limit 19 -fmessage-length 239 -fvisibility-inlines-hidden -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.o -x c++ AMDGPUISelLowering.cpp 1. AMDGPUISelLowering.cpp:97:1: current parser token 'EVT' 2. AMDGPUISelLowering.cpp:87:27: LLVM IR generation of declaration 'llvm::AMDGPUTargetLowering::getEquivalentMemType' 3. AMDGPUISelLowering.cpp:87:27: Generating code for declaration 'llvm::AMDGPUTargetLowering::getEquivalentMemType'clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.6.0 (http://llvm.org/git/clang.gitf98071d4eacb44e7f36b4fd9878f415524a6efda) (http://llvm.org/git/llvm.gitab9c404bbdceead0ced57d5e805eeeb28941de35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:/tmp/AMDGPUISelLowering-03f4c1.cpp
clang: note: diagnostic msg:/tmp/AMDGPUISelLowering-03f4c1.sh
clang: note: diagnostic msg:********************
/bin/rm: cannot remove â/mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.d.tmpâ: No such file or directory/mnt/sdb1/Src64/llvm/Makefile.rules:1514: recipe for target '/mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.o' failed make[3]: *** [/mnt/sdb1/Src64/llvm/lib/Target/R600/Release+Asserts/AMDGPUISelLowering.o] Error 1
make[3]: Leaving directory '/mnt/sdb1/Src64/llvm/lib/Target/R600'/mnt/sdb1/Src64/llvm/Makefile.rules:932: recipe for target 'R600/.makeall' failed
make[2]: *** [R600/.makeall] Error 2
make[2]: Leaving directory '/mnt/sdb1/Src64/llvm/lib/Target'/mnt/sdb1/Src64/llvm/Makefile.rules:932: recipe for target 'Target/.makeall' failed
make[1]: *** [Target/.makeall] Error 2
make[1]: Leaving directory '/mnt/sdb1/Src64/llvm/lib'/mnt/sdb1/Src64/llvm/Makefile.rules:883: recipe for target 'all' failed
make: *** [all] Error 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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #9 from Andy Furniss <[email protected]> --- oops, failed there trying to obsolete - didn't mean to do comment 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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #10 from Andy Furniss <[email protected]> --- Built llvm with GCC now and Tentative fix works for me.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #11 from Matt Arsenault <[email protected]> --- I've posted an improved patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141117/245415.html
This should swap the operands and still work with unordered compares
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #12 from Andy Furniss <[email protected]> --- (In reply to Matt Arsenault from comment #11)
Quoted 5 lines
I've posted an improved patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141117/245415.
htmlThis should swap the operands and still work with unordered compares
Doesn't work for me with the 2 patches from there on llvm tree from yesterday.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #13 from Marek Olšák <[email protected]> --- Mesa commit 645b471d619b654d3bacfa8598f759833e08db4e should fix this.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
--- Comment #14 from Andy Furniss <[email protected]> --- (In reply to Marek Olšák from comment #13)
Quoted 1 line
Mesa commit
645b471d619b654d3bacfa8598f759833e08db4eshould fix this.
Yes, it works with or without patches on current mesa head.
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #15 from Michel Dänzer <[email protected]> ---
Module: Mesa
Branch: master
Commit: 645b471d619b654d3bacfa8598f759833e08db4e URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=645b471d619b654d3bacfa8598f759833e08db4e
Author: Marek Olšák <[email protected]> Date: Thu Nov 20 22:16:09 2014 +0100
radeonsi: use minnum and maxnum LLVM intrinsics for MIN and MAX opcodes
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
https://bugs.freedesktop.org/show_bug.cgi?id=86432
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #16 from Michel Dänzer <[email protected]> --- *** Bug 86490 has been marked as a duplicate of this bug. ***
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