Re: [Mesa-dev] R600 Patches: Add support for the local address space

2013-06-12 Thread Matt Arsenault
On 06/12/2013 05:42 PM, Tom Stellard wrote: Hi, The attached patches add support for local address space on Evergreen / Northern Islands GPUs. Please Review. -Tom > + def int_AMDGPU_barrier_local : Intrinsic<[], [], []>; You probably want to mark this as IntrReadMem to try to avoid reorderi

[Mesa-dev] GLSL 1.50 GS layout qualifier progress

2013-06-12 Thread Eric Anholt
I spent today trying to get GLSL 1.50 GSes up and running, so I can port the basic UBO VS/FS tests to 1.50 GSes. I made significant progress on parsing and error checking, and the results are in the "gs" branch of my tree (recently rebased on Paul's). It's stuck currently at: "error: size of arr

[Mesa-dev] [PATCH 2/2] r600g/compute: Accept LDS size from the LLVM backend

2013-06-12 Thread Tom Stellard
From: Tom Stellard And allocate the correct amount before dispatching the kernel. --- src/gallium/drivers/r600/evergreen_compute.c | 53 +++--- .../drivers/r600/evergreen_compute_internal.h | 1 + src/gallium/drivers/r600/evergreen_state.c | 6 +-- src/galliu

[Mesa-dev] [PATCH 1/2] r600g/compute: Move compute_shader_create() function into evergreen_compute.c

2013-06-12 Thread Tom Stellard
From: Tom Stellard --- src/gallium/drivers/r600/evergreen_compute.c | 23 +++- src/gallium/drivers/r600/r600_shader.c | 32 2 files changed, 22 insertions(+), 33 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gall

[Mesa-dev] [PATCH libclc] Implement barrier() builtin

2013-06-12 Thread Tom Stellard
From: Tom Stellard --- r600/lib/SOURCES | 2 ++ r600/lib/synchronization/barrier.cl | 15 +++ r600/lib/synchronization/barrier_impl.ll | 12 3 files changed, 29 insertions(+) create mode 100644 r600/lib/synchronization/barrier.cl create mo

Re: [Mesa-dev] [PATCH] mesa: per-texture locking

2013-06-12 Thread Dave Airlie
On Thu, Jun 13, 2013 at 3:33 AM, Eric Anholt wrote: > Frank Henigman writes: > >> On Tue, Jun 11, 2013 at 1:10 PM, Eric Anholt wrote: >> >>> Frank Henigman writes: >>> >>> > Replace the one texture lock with a lock per texture. This allows >>> > uploading textures from one thread concurrently

Re: [Mesa-dev] [PATCH mesa 0/8] XA patches for freedreno/a3xx DDX

2013-06-12 Thread Rob Clark
On Wed, Jun 12, 2013 at 11:41 AM, Jakob Bornecrantz wrote: > The changes looks good at a first glance. > > There are some thoughts tho, > maybe we should try and make libxatracker.so autodetect > which driver to use so we don't have to create a libxatracker.so > for each driver, at least for linux

[Mesa-dev] [Bug 61919] make fails without C_INCLUDE_PATH: xlib_sw_winsys.c:49:33: fatal error: X11/extensions/XShm.h: No such file or directory

2013-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61919 Darxus changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 2/2] gallium/draw: add limits to the clip and cull distances

2013-06-12 Thread Jose Fonseca
- Original Message - [...] > On an unrelated note ... packing clip distances into vec4s sucks, I want > scalar arrays. OMG, then we must fix it! Now seriously, we had the discussion about packed vs unpacked clip distances -- I don't feel strongly either way and I don't recall the ration

Re: [Mesa-dev] [PATCH 2/2] gallium/draw: add limits to the clip and cull distances

2013-06-12 Thread Christoph Bumiller
On 12.06.2013 15:57, Jose Fonseca wrote: > > > - Original Message - >> Am 11.06.2013 05:39, schrieb Zack Rusin: >>> There are strict limits on those registers. Define the maximums >>> and use them instead of magic numbers. Also allows us to add >>> some extra sanity checks. >>> Suggested

Re: [Mesa-dev] Seeking information about commit 586b4b50 (glsl: Also update implicit sizes of varyings at link time)

2013-06-12 Thread Paul Berry
On 10 June 2013 16:51, Eric Anholt wrote: > Fabian Bieler writes: > > > Hello! > > > > I'm obviously no expert for this code but as far as I understand it > > this was supposed to resize the zero length built-in arrays when they > > are not redeclared by the user (and only indexed with constant

Re: [Mesa-dev] [PATCH] mesa: per-texture locking

2013-06-12 Thread Eric Anholt
Frank Henigman writes: > On Tue, Jun 11, 2013 at 1:10 PM, Eric Anholt wrote: > >> Frank Henigman writes: >> >> > Replace the one texture lock with a lock per texture. This allows >> > uploading textures from one thread concurrently with drawing in another >> > thread. _mesa_lock_context_textu

Re: [Mesa-dev] 16-wide math on ironlake

2013-06-12 Thread Kenneth Graunke
On 06/12/2013 01:50 AM, Chris Forbes wrote: I've just completed a piglit run of kwg/g45-math16 picked to master on my ironlake. No regressions vs master. Helps cs:s video stress test by about 2%. -- Chris That's a surprising amount! As is, the patch doesn't actually enable 16-wide math on G4

[Mesa-dev] [Bug 64386] Stellarium : white screen with Ubuntu Raring and chipset Intel

2013-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64386 Emil Velikov changed: What|Removed |Added Attachment #79044|text/plain |image/png mime type|

Re: [Mesa-dev] [PATCH mesa 0/8] XA patches for freedreno/a3xx DDX

2013-06-12 Thread Jakob Bornecrantz
The changes looks good at a first glance. There are some thoughts tho, maybe we should try and make libxatracker.so autodetect which driver to use so we don't have to create a libxatracker.so for each driver, at least for linux that should be do-able. Thoughts? Cheers, Jakob.

[Mesa-dev] [PATCH 1/2] glsl/gsraytrace: Bind transform feedback buffer.

2013-06-12 Thread Fabian Bieler
Bind the transform feedback buffer before drawing into it und unbind it afterwards. --- src/glsl/gsraytrace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glsl/gsraytrace.cpp b/src/glsl/gsraytrace.cpp index 62a584d..f34a3da 100644 --- a/src/glsl/gsraytrace.cpp +++ b/

[Mesa-dev] [PATCH 2/2] glsl/gsraytrace: Use EXT_transform_feedback instead of, NV.

2013-06-12 Thread Fabian Bieler
NV_transform_feedback is currently not supported by mesa (and I'm somewhat doubtful it will be implemented in the foreseeable future). Note that with this patch the demo doesn't work anymore with the nvidia binary driver. --- src/glsl/gsraytrace.cpp | 71 +-

Re: [Mesa-dev] [PATCH 7/8] util: Expand the comment above the channel[] array

2013-06-12 Thread Michel Dänzer
On Die, 2013-06-11 at 16:26 +0100, Richard Sandiford wrote: > Signed-off-by: Richard Sandiford > --- > src/gallium/auxiliary/util/u_format.h | 42 > ++- > 1 file changed, 41 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/auxiliary/util/u_format.h > b/

Re: [Mesa-dev] [PATCH] Fixed bug in unclamped float to ubyte conversion.

2013-06-12 Thread Brian Paul
On 06/07/2013 05:20 PM, Stéphane Marchesin wrote: Ping, does anyone else want to review this patch? Stéphane On Fri, May 10, 2013 at 3:56 PM, Manfred Ernst wrote: Problem: The IEEE float optimized version of UNCLAMPED_FLOAT_TO_UBYTE in macros.h computed incorrect results for inputs in the r

Re: [Mesa-dev] [PATCH mesa 0/8] XA patches for freedreno/a3xx DDX

2013-06-12 Thread Brian Paul
On 06/10/2013 11:31 AM, Rob Clark wrote: From: Rob Clark The newer snapdragon devices (at least, the one I have in nexus4) no longer has a dedicated 2D core. For these devices, DDX needs to use the 3D core. I've implemented support to use XA in the DDX, but it requires some changes which brea

[Mesa-dev] [PATCH 2/8] util: Turn inv_swizzle into a global function

2013-06-12 Thread Richard Sandiford
With the big-endian changes, there can be two swizzle orders for each format. This patch turns Format.inv_swizzle() into a global function that takes the swizzle list as a parameter. There is no change to the generated u_format_table.c. Signed-off-by: Richard Sandiford --- src/gallium/auxiliary

[Mesa-dev] [PATCH 7/8] util: Expand the comment above the channel[] array

2013-06-12 Thread Richard Sandiford
Signed-off-by: Richard Sandiford --- src/gallium/auxiliary/util/u_format.h | 42 ++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index e4b9c36..db6c290 100644 --- a/src

[Mesa-dev] [PATCH 8/8] util: Add a shift field to the channel structure

2013-06-12 Thread Richard Sandiford
The new field eats up all the remaining bits of the bitfield, but it could easily be shrunk in future. Signed-off-by: Richard Sandiford --- src/gallium/auxiliary/util/u_format.h| 1 + src/gallium/auxiliary/util/u_format_table.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)

[Mesa-dev] [PATCH 6/8] util: Fix pack and unpack for big-endian

2013-06-12 Thread Richard Sandiford
The old code tried to emulate little-endian format layout on big-endian targets by byte-swapping each pixel value. This was OK for packed byte formats, but isn't what we want for multibyte channels. E.g. the floats in R32G32B32A32_FLOAT should all have native endianness, and the red component sho

[Mesa-dev] [PATCH 5/8] util: Precompute channel shifts in u_format_parse.py

2013-06-12 Thread Richard Sandiford
Store the shift value for a bitmask channel in the Channel object, rather than working it out on the fly. This allows the shift to depend on endianness. There is no change to the generated u_format_table.c. Signed-off-by: Richard Sandiford --- src/gallium/auxiliary/util/u_format_pack.py | 8 +

[Mesa-dev] [PATCH 4/8] util: Split out channel-parsing Python code

2013-06-12 Thread Richard Sandiford
Splits out the code that parses the channel list, so that we can have different lists for little and big endian. There is no change to the generated u_format_table.c. Signed-off-by: Richard Sandiford --- src/gallium/auxiliary/util/u_format_parse.py | 96 +++- 1 file chan

[Mesa-dev] [PATCH 3/8] util: Split out channel-printing Python code

2013-06-12 Thread Richard Sandiford
Rather than iterate over format.channels and format.swizzles directly, use Python subfunctions that take the channel and swizzle lists as arguments. This allow the channel and swizzle lists to depend on endianness. There is no change to the generated u_format_table.c. Signed-off-by: Richard Sand

[Mesa-dev] [PATCH 1/8] util: Add more query methods to u_format_parse.Format

2013-06-12 Thread Richard Sandiford
The main aim is to reduce the number of places that access channels[0], swizzles[0] and swizzles[1] directly. There is no change to the generated u_format_table.c. Signed-off-by: Richard Sandiford --- src/gallium/auxiliary/util/u_format_pack.py | 27 ++- src/gallium/auxiliary/util/

Re: [Mesa-dev] recursive raytracing demo

2013-06-12 Thread Brian Paul
On 06/12/2013 03:41 AM, kristof.ralov...@gmail.com wrote: On Mon, Apr 29, 2013 at 4:21 PM, Brian Paul wrote: On 04/28/2013 06:54 AM, kristof.ralov...@gmail.com wrote: Dear All, please review and merge this demo. In patch 2: * Let's pass the GS input/output info as parameters to the funct

[Mesa-dev] [PATCH 0/8] util: big-endian fixes for format generator

2013-06-12 Thread Richard Sandiford
This series is a replacement for the util part of: http://lists.freedesktop.org/archives/mesa-dev/2013-May/039419.html It doesn't include any of the controversial format name parts of those patches (although of course they're still needed in some form). The original version took the endianne

Re: [Mesa-dev] [PATCH 2/2] gallium/draw: add limits to the clip and cull distances

2013-06-12 Thread Jose Fonseca
- Original Message - > Am 11.06.2013 05:39, schrieb Zack Rusin: > > There are strict limits on those registers. Define the maximums > > and use them instead of magic numbers. Also allows us to add > > some extra sanity checks. > > Suggested by Brian. > > > > Signed-off-by: Zack Rusin >

[Mesa-dev] [Bug 65676] New: Piglit: port remaining glean tests to piglit framework

2013-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=65676 Priority: medium Bug ID: 65676 Assignee: mesa-dev@lists.freedesktop.org Summary: Piglit: port remaining glean tests to piglit framework Severity: minor Classification: Unclassified

[Mesa-dev] [Bug 64386] Stellarium : white screen with Ubuntu Raring and chipset Intel

2013-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64386 Tollef Fog Heen changed: What|Removed |Added Assignee|sitewranglers@lists.freedes |mesa-dev@lists.freedesktop.

[Mesa-dev] 16-wide math on ironlake

2013-06-12 Thread Chris Forbes
I've just completed a piglit run of kwg/g45-math16 picked to master on my ironlake. No regressions vs master. Helps cs:s video stress test by about 2%. -- Chris ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailma

[Mesa-dev] [Bug 61919] make fails without C_INCLUDE_PATH: xlib_sw_winsys.c:49:33: fatal error: X11/extensions/XShm.h: No such file or directory

2013-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61919 Quentin Glidic changed: What|Removed |Added CC||sardemff7+freedesktop@sarde

[Mesa-dev] [Bug 61919] make fails without C_INCLUDE_PATH: xlib_sw_winsys.c:49:33: fatal error: X11/extensions/XShm.h: No such file or directory

2013-06-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61919 --- Comment #8 from Quentin Glidic --- Created attachment 80713 --> https://bugs.freedesktop.org/attachment.cgi?id=80713&action=edit Patch to fix CFLAGS I didn’t test it as I don’t get this failure myself, but from my Autotools reading, this s