dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 88209] HAVE_LLVM undelcared in r600_pipe_common.c if enable_r600_llvm not set
       [not found] <bug-88209-502@http.bugs.freedesktop.org/>
@ 2015-01-08 18:21 ` bugzilla-daemon
  2015-01-09  9:53 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-01-08 18:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1497 bytes --]

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

athomas@synexxus.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|HAVE_LLVM undelcared in:q   |HAVE_LLVM undelcared in
                   |                            |r600_pipe_common.c if
                   |                            |enable_r600_llvm not set

--- Comment #1 from athomas@synexxus.com ---


HAVE_LLVM is only established by configure.ac if LLVM_CONFIG = yes. LLVM_CONFIG
will only be "yes" if enable_r600_llvm is specified. If HAVE_LLVM is not
declared, then the build of
mesa/mesa/src/gallium/drivers/radeon/r600_pipe_common.c

DEFINES="${DEFINES} -DHAVE_LLVM=0x0$LLVM_VERSION_INT
-DLLVM_VERSION_PATCH=$LLVM_VERSION_PATCH"


Fails with:
make[3]: Entering directory
'/home/jessie/xserver_tmp/src/mesa/mesa/src/gallium/drivers/radeon'
  CC       r600_pipe_common.lo
r600_pipe_common.c: In function 'r600_get_compute_param':
r600_pipe_common.c:503:40: error: 'HAVE_LLVM' undeclared (first use in this
function)
   if (rscreen->family <= CHIP_ARUBA || HAVE_LLVM < 0x0306) {
                                        ^
r600_pipe_common.c:503:40: note: each undeclared identifier is reported only
once for each function it appears in
Makefile:668: recipe for target 'r600_pipe_common.lo' failed
make[3]: *** [r600_pipe_common.lo] Error 1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2757 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 88209] HAVE_LLVM undelcared in r600_pipe_common.c if enable_r600_llvm not set
       [not found] <bug-88209-502@http.bugs.freedesktop.org/>
  2015-01-08 18:21 ` [Bug 88209] HAVE_LLVM undelcared in r600_pipe_common.c if enable_r600_llvm not set bugzilla-daemon
@ 2015-01-09  9:53 ` bugzilla-daemon
  2015-01-09 14:25 ` bugzilla-daemon
  2015-01-23 21:51 ` bugzilla-daemon
  3 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-01-09  9:53 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 380 bytes --]

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

--- Comment #2 from Michel Dänzer <michel@daenzer.net> ---
Created attachment 111998
  --> https://bugs.freedesktop.org/attachment.cgi?id=111998&action=edit
Don't build LLVM related code when HAVE_LLVM isn't defined

Does this patch work?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1501 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 88209] HAVE_LLVM undelcared in r600_pipe_common.c if enable_r600_llvm not set
       [not found] <bug-88209-502@http.bugs.freedesktop.org/>
  2015-01-08 18:21 ` [Bug 88209] HAVE_LLVM undelcared in r600_pipe_common.c if enable_r600_llvm not set bugzilla-daemon
  2015-01-09  9:53 ` bugzilla-daemon
@ 2015-01-09 14:25 ` bugzilla-daemon
  2015-01-23 21:51 ` bugzilla-daemon
  3 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-01-09 14:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 2055 bytes --]

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

--- Comment #3 from athomas@synexxus.com ---
The patch seems to be in the right direction of removing the dependance of 
LLVM in the source code, but I dont have hardware to test functionality. I can
test that it compiles when LLVM isn't specified on Monday. I don't have enough 
knowledge on the internal workings of the driver to make comments on the
implications of the code chages though. 

A couple of notes I meant to add last night:

Build Environment:

- Building directly on an ARM platform. imx6 - very similar to sabrelite.
- I set the prefix to be someplace in my /home directory via the X.org build.sh
script.
- Flags: --enable-driglx-direct --enable-gles1 --enable-gles2 --enable-glx
--with-dri-drivers=radeon

Additional notes about the mesa build with llvm:

Normally the auto setting for enable_gallium_llvm will set
enable_gallium=llvm=yes and trigger llvm to be used with the driver. This is
NOT the case if the host CPU is not i*86/x96_64/AMD64. See the current snippet
below from configure.ac


if test "x$enable_gallium_llvm" = xauto; then
    case "$host_cpu" in
    i*86|x86_64|amd64) enable_gallium_llvm=yes;;
    esac
fi

Tests I did:
- I hacked the configure.ac to always set enable_gallium_llvm=yes and was able
to get the gallium r600 driver to build and subsquently mesa. 
- I, somewhat stupidly, tested --with-dri-drivers=nouveau and not
--with-gallium-drivers=nouveau because I dont care about the drivers - I will
end up using Freescale/Vivante drivers. BUT - can the two be aligned or at
least checked for inconsistencies.

Questions:
- Does it make sense to migrate the default to use LLVM for ARM platforms? 

At the end of the day I didnt really care about the drivers themselves because
I will be dropping in Vivante drivers via Freescale, but I needed mesa/gallium
to build. I should have cut the gallium drivers out, but I was concerned I had
my build environment/paths setup correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2864 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 88209] HAVE_LLVM undelcared in r600_pipe_common.c if enable_r600_llvm not set
       [not found] <bug-88209-502@http.bugs.freedesktop.org/>
                   ` (2 preceding siblings ...)
  2015-01-09 14:25 ` bugzilla-daemon
@ 2015-01-23 21:51 ` bugzilla-daemon
  3 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-01-23 21:51 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 548 bytes --]

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

Marek Olšák <maraeo@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Marek Olšák <maraeo@gmail.com> ---
Fixed with bed6f20f28af8bf531c14e3cab12a00354a31. Closing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2111 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-23 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-88209-502@http.bugs.freedesktop.org/>
2015-01-08 18:21 ` [Bug 88209] HAVE_LLVM undelcared in r600_pipe_common.c if enable_r600_llvm not set bugzilla-daemon
2015-01-09  9:53 ` bugzilla-daemon
2015-01-09 14:25 ` bugzilla-daemon
2015-01-23 21:51 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox