Skip to contentSkip to conversation

FTBFS with commit f9f5c92f73: R600_UCP_CONST_BUFFER is undefined

Bug 91985 [email protected] 1 participant 6 messages Sep 12, 2015 – Sep 13, 2015

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 91985
Summary: [regression, bisected] FTBFS with commit f9f5c92f73:
R600_UCP_CONST_BUFFER is undefined
Product: Mesa
Version: git
Hardware: All
OS: All
Status: NEW
Keywords: bisected, regression
Severity: blocker
Priority: highest
Component: Drivers/Gallium/r600
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]

The following commit makes compiling Mesa with --enable-opencl impossible, since that pulls r600_llvm.c in.

commit f9f5c92f734c517c1bd486f5a3b1931ea6f871a5

Author: Vincent Lejeune <[email protected]>
Date:   Sat Jan 19 22:27:16 2013 +0100

r600g/llvm: Fixes addressspace of basevectors for clipvertex

Excerpt from build log:

Quoted 7 lines

../../../../../../src/gallium/drivers/r600/r600_llvm.c: In function 'llvm_emit_epilogue':
../../../../../../src/gallium/drivers/r600/r600_llvm.c:25:70: error: 'R600_UCP_CONST_BUFFER' undeclared (first use in this function) #define CONSTANT_BUFFER_1_ADDR_SPACE (CONSTANT_BUFFER_0_ADDR_SPACE + R600_UCP_CONST_BUFFER)
^
../../../../../../src/gallium/drivers/r600/r600_llvm.c:271:75: note: in expansion of macro 'CONSTANT_BUFFER_1_ADDR_SPACE' LLVMValueRef base_vector = llvm_load_const_buffer(bld_base, offset, CONSTANT_BUFFER_1_ADDR_SPACE);
^

Quoted 8 lines

../../../../../../src/gallium/drivers/r600/r600_llvm.c:25:70: note: each undeclared identifier is reported only once for each function it appears in #define CONSTANT_BUFFER_1_ADDR_SPACE (CONSTANT_BUFFER_0_ADDR_SPACE + R600_UCP_CONST_BUFFER)
^
../../../../../../src/gallium/drivers/r600/r600_llvm.c:271:75: note: in expansion of macro 'CONSTANT_BUFFER_1_ADDR_SPACE' LLVMValueRef base_vector = llvm_load_const_buffer(bld_base, offset, CONSTANT_BUFFER_1_ADDR_SPACE);
^
Makefile:834: recipe for target 'r600_llvm.lo' failed
make[4]: *** [r600_llvm.lo] Error 1

Please revert or 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

author Reviewed-by Edward O'Callaghan Reviewed-by Glenn Kennard
#1 lore raw

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

--- Comment #1 from Ilia Mirkin <[email protected]> --- Seems more likely that the culprit is

Quoted 1 line

From f9caabe8f1bff86d19b53d9ecba5c72b238d9e23 Mon Sep 17 00:00:00 2001

From: Dave Airlie <[email protected]>
Date: Fri, 11 Sep 2015 04:43:53 +0100
Subject: r600g: lower number of driver const buffers

I'm going to want a driver constant buffer for tess to coordinate LDS storage, so before I go tackling that I decided to merge the clip/samplepos and texture info buffers into one. So I can steal the spare one.

This creates a single constant buffer between the two, with clip/samplepos taking up a reserved 128 bytes at the start.

than a commit from 2013...

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

author Reviewed-by Edward O'Callaghan Reviewed-by Glenn Kennard
#2 lore raw

[Bug 91985] [regression, bisected] FTBFS with commit f9caabe8f1: R600_UCP_CONST_BUFFER is undefined

In reply to [email protected]

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

Kai <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|[email protected]                |[email protected]
            Summary|[regression, bisected]      |[regression, bisected]
                   |FTBFS with commit           |FTBFS with commit
                   |f9f5c92f73:                 |f9caabe8f1:
                   |R600_UCP_CONST_BUFFER is    |R600_UCP_CONST_BUFFER is
                   |undefined                   |undefined

--- Comment #2 from Kai <[email protected]> --- Ahrg, pasted wrong commit, the following is the correct one:

commit f9caabe8f1bff86d19b53d9ecba5c72b238d9e23

Author: Dave Airlie <[email protected]>
Date:   Fri Sep 11 04:43:53 2015 +0100

r600g: lower number of driver const buffers

I'm going to want a driver constant buffer for tess to coordinate LDS storage, so before I go tackling that I decided to merge the clip/samplepos and texture info buffers into one. So I can steal the spare one.

This creates a single constant buffer between the two, with clip/samplepos taking up a reserved 128 bytes at the start.

It's basically that R600_UCP_CONST_BUFFER was replaced by R600_BUFFER_INFO_CONST_BUFFER AFAICT and this place in r600_llvm.c was forgotten.

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

#3 lore raw

[Bug 91985] [regression, bisected] FTBFS with commit f9caabe8f1: R600_UCP_CONST_BUFFER is undefined

In reply to [email protected]

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

--- Comment #3 from Kai <[email protected]> --- (In reply to Ilia Mirkin from comment #1)

Quoted 12 lines

Seems more likely that the culprit is

From f9caabe8f1bff86d19b53d9ecba5c72b238d9e23 Mon Sep 17 00:00:00 2001
From: Dave Airlie <[email protected]>
Date: Fri, 11 Sep 2015 04:43:53 +0100
Subject: r600g: lower number of driver const buffers

I'm going to want a driver constant buffer for tess to coordinate LDS storage, so before I go tackling that I decided to merge the clip/samplepos and texture info buffers into one. So I can steal the spare one.

Quoted 8 lines

This creates a single constant buffer between the two, with clip/samplepos taking up a reserved 128 bytes at the start.

than a commit from 2013...

Yes, I had – after looking with git blame at r600_llvm.c – the wrong commit in my clipboard and worked with that. Since both start with f9 I didn't notice. Sorry.

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

#4 lore raw

[Bug 91985] [regression, bisected] FTBFS with commit f9caabe8f1: R600_UCP_CONST_BUFFER is undefined

In reply to [email protected]

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

--- Comment #4 from Kai <[email protected]> --- I've sent a patch to the mailing list:
http://thread.gmane.org/gmane.comp.video.mesa3d.devel/112810

It at least compiles again for me, but I can't say for sure, if this is the correct 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

#5 lore raw

[Bug 91985] [regression, bisected] FTBFS with commit f9caabe8f1: R600_UCP_CONST_BUFFER is undefined

In reply to [email protected]

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

Kai <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Kai <[email protected]> --- Fixed by:
commit d6fbcf6ee28c273b37bf293aea5faf77253029a3

Author: Kai Wasserbäch <[email protected]>
Date:   Sat Sep 12 10:39:50 2015 +0200

r600: Fix llvm build since const buffer changes

In commit f9caabe8f1bff86d19b53d9ecba5c72b238d9e23:

One place in r600_llvm.c was forgotten when replacing R600_UCP_CONST_BUFFER with R600_BUFFER_INFO_CONST_BUFFER.

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

Thanks to Dave, for commiting 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