From: bugzilla-daemon@freedesktop.org
Subject: [Bug 92214] Flightgear crashes during splashboot with R600 driver,
LLVM 3.7.0 and mesa 11.0.2
Date: Thu, 22 Oct 2015 01:49:36 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0342591607=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id AFAC76E8FC
for ; Wed, 21 Oct 2015 18:49:36 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0342591607==
Content-Type: multipart/alternative; boundary="1445478576.2A280.19380"; charset="UTF-8"
--1445478576.2A280.19380
Date: Thu, 22 Oct 2015 01:49:36 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=92214
--- Comment #31 from Barto ---
llvm developper ( Craig Topper ) has answered this :
https://llvm.org/bugs/show_bug.cgi?id=25021#c8
he said that the remove of the SSE4 test for penryn CPUs ( including pentium
dual core who don't support SSE4 ) was intentional,
he advices mesa developpers to use the llvm function "getHostCPUFeatures()" in
order to check if the CPU can support SSE4, before doing a llvm operation (
like a binary code generation ),
I check in mesa source code and it seems that mesa developpers don't use this
function "getHostCPUFeatures()",
I am not a specialist in llvm API, but it seems that there is a change since
llvm 3.7.0, developpers like mesa should now always check if the host CPU has
some features like SSE4, because without no check llvm will try to apply
generic CPU settings fixed in the file /lib/Target/X86.td, in this file there
are a sort of definitions of features for each CPU :
/ Intel Core 2 Solo/Duo.
def : ProcessorModel<"core2", SandyBridgeModel,
[FeatureSSSE3, FeatureCMPXCHG16B, FeatureSlowBTMem]>;
def : ProcessorModel<"penryn", SandyBridgeModel,
[FeatureSSE41, FeatureCMPXCHG16B, FeatureSlowBTMem]>;
we see here that by default all penryn CPU are treated by llvm as "SSE4 ready",
which triggers a bug with pentium dual core ( cpu family 6 model 23 ) if no
sanity checks ( like SSE4 test ) have been done by the application who uses
llvm libs
--
You are receiving this mail because:
You are the assignee for the bug.
--1445478576.2A280.19380
Date: Thu, 22 Oct 2015 01:49:36 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 31
on bug 92214
from Barto
llvm developper ( Craig Topper ) has answered this :
https://llvm.org/bugs/show_bug.cgi?id=25021#c8
he said that the remove of the SSE4 test for penryn CPUs ( including pentium
dual core who don't support SSE4 ) was intentional,
he advices mesa developpers to use the llvm function "getHostCPUFeatures()" in
order to check if the CPU can support SSE4, before doing a llvm operation (
like a binary code generation ),
I check in mesa source code and it seems that mesa developpers don't use this
function "getHostCPUFeatures()",
I am not a specialist in llvm API, but it seems that there is a change since
llvm 3.7.0, developpers like mesa should now always check if the host CPU has
some features like SSE4, because without no check llvm will try to apply
generic CPU settings fixed in the file /lib/Target/X86.td, in this file there
are a sort of definitions of features for each CPU :
/ Intel Core 2 Solo/Duo.
def : ProcessorModel<"core2", SandyBridgeModel,
[FeatureSSSE3, FeatureCMPXCHG16B, FeatureSlowBTMem]>;
def : ProcessorModel<"penryn", SandyBridgeModel,
[FeatureSSE41, FeatureCMPXCHG16B, FeatureSlowBTMem]>;
we see here that by default all penryn CPU are treated by llvm as "SSE4 ready",
which triggers a bug with pentium dual core ( cpu family 6 model 23 ) if no
sanity checks ( like SSE4 test ) have been done by the application who uses
llvm libs
You are receiving this mail because:
- You are the assignee for the bug.
--1445478576.2A280.19380--
--===============0342591607==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0
cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK
--===============0342591607==--