Bug 100068 - LLVM ERROR: Cannot select: intrinsic %llvm.amdgcn.buffer.load.format
Summary: LLVM ERROR: Cannot select: intrinsic %llvm.amdgcn.buffer.load.format
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-05 19:04 UTC by Hleb Valoshka
Modified: 2017-03-06 08:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
check for proper llvm version (394 bytes, patch)
2017-03-05 19:04 UTC, Hleb Valoshka
Details | Splinter Review
Unigine Heaven output (11.91 KB, text/plain)
2017-03-05 21:29 UTC, Wojciech Pyczak
Details

Description Hleb Valoshka 2017-03-05 19:04:12 UTC
Created attachment 130077 [details] [review]
check for proper llvm version

I have mesa today's snapshot build against llvm 3.9.1.

When glxgears is started it aborts with the message:

LLVM ERROR: Cannot select: intrinsic %llvm.amdgcn.buffer.load.format

It looks like this intrinsic is supported with llvm 4.0 and higher, as when mesa is build against llvm 4.0 apps work as expected.

A simple patch to fix this error is attached.
Comment 1 Dave Airlie 2017-03-05 20:07:55 UTC
Fixed thanks for testing/patch.
Comment 2 Wojciech Pyczak 2017-03-05 21:29:20 UTC
Created attachment 130081 [details]
Unigine Heaven output

Looks like it's not all, glxgears works fine though.
Comment 3 Hleb Valoshka 2017-03-06 08:31:51 UTC
(In reply to Wojciech Pyczak from comment #2)
> Created attachment 130081 [details]
> Unigine Heaven output
> 
> Looks like it's not all, glxgears works fine though.

Looks like Marek has found a correct solution:

https://lists.freedesktop.org/archives/mesa-dev/2017-March/146693.html


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.