[Mesa-dev] [PATCH 1/2] gallivm: Fix build after removal of deprecated attribute API v3

2016-11-09 Thread Tom Stellard
v2: Fix adding parameter attributes with LLVM < 4.0. v3: Fix typo. Fix parameter index. Add a gallivm enum for function attributes. --- src/gallium/auxiliary/draw/draw_llvm.c| 6 +- src/gallium/auxiliary/gallivm/lp_bld_intr.c | 70 ++- src/gallium/au

Re: [Mesa-dev] [PATCH 1/2] gallivm: Fix build after removal of deprecated attribute API v3

2016-11-10 Thread Tom Stellard
On Wed, Nov 09, 2016 at 11:45:38PM +0100, Roland Scheidegger wrote: > Am 09.11.2016 um 16:22 schrieb Tom Stellard: > > v2: > > Fix adding parameter attributes with LLVM < 4.0. > > > > v3: > > Fix typo. > > Fix parameter index. > &

Re: [Mesa-dev] [PATCH] clover: fix building since llvm r286566

2016-11-11 Thread Tom Stellard
On Fri, Nov 11, 2016 at 02:00:26PM +0100, Laurent Carlier wrote: Reviewed-by: Tom Stellard > pretty trivial fix > --- > src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/gallium/state_trackers/c

Re: [Mesa-dev] [PATCH] clover: adapt to new error API since LLVM r286752

2016-11-14 Thread Tom Stellard
On Mon, Nov 14, 2016 at 01:44:18PM +0100, Dieter Nützel wrote: > Tested-by: Dieter Nützel > > Thanks Vedran! > Pushed, thanks! -Tom > Dieter > > Am 14.11.2016 12:17, schrieb Vedran Miletić: > > --- > > src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp | 10 > > -- > > 1 fi

[Mesa-dev] [PATCH 1/2] radeonsi: Use amdgcn intrinsics for fs interpolation

2016-11-15 Thread Tom Stellard
--- src/gallium/drivers/radeonsi/si_shader.c | 197 ++- 1 file changed, 143 insertions(+), 54 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 0410a32..306e12f 100644 --- a/src/gallium/drivers/radeonsi

[Mesa-dev] [PATCH 2/2] radeonsi: Use buffer_load intrinsics instead of llvm.SI.vs.load.input

2016-11-15 Thread Tom Stellard
--- src/gallium/drivers/radeonsi/si_shader.c | 69 +++- 1 file changed, 50 insertions(+), 19 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 306e12f..ee4fe2f 100644 --- a/src/gallium/drivers/radeonsi/

Re: [Mesa-dev] [PATCH 2/2] radeonsi: Use buffer_load intrinsics instead of llvm.SI.vs.load.input

2016-11-16 Thread Tom Stellard
mOnly, but I think as long as it has non-pointer arguments this combination behaves the same as ReadNone, which would be incorrect. -Tom > Cheers, > Nicolai > > On 16.11.2016 03:14, Tom Stellard wrote: > >--- > > src/gallium/drivers/radeonsi/si_shader.c | 69 > >

[Mesa-dev] [PATCH] mesa: Add missing call to _mesa_unlock_debug_state(ctx); v2

2016-11-16 Thread Tom Stellard
cd724208d3e1e3307f84a794f2c1fc83b69ccf8a added a call to _mesa_lock_debug_state(ctx) but wasn't unlocking the debug state. This fixes a hang in glsl-fs-loop piglit test with MESA_DEBUG=context. v2: - Remove unrelated changes. --- src/mesa/main/debug_output.c | 4 +++- 1 file changed, 3 inserti

[Mesa-dev] [PATCH] mesa: Add missing call to _mesa_unlock_debug_state(ctx);

2016-11-16 Thread Tom Stellard
cd724208d3e1e3307f84a794f2c1fc83b69ccf8a added a call to _mesa_lock_debug_state(ctx) but wasn't unlocking the debug state. This fixes a hang in glsl-fs-loop piglit test with MESA_DEBUG=context. --- src/gallium/drivers/radeonsi/si_pipe.c | 8 +--- src/mesa/main/debug_output.c | 5 +++

Re: [Mesa-dev] [PATCH 2/2] radeonsi: Use buffer_load intrinsics instead of llvm.SI.vs.load.input

2016-11-18 Thread Tom Stellard
On Sat, Nov 19, 2016 at 01:09:00AM +0100, Marek Olšák wrote: > On Wed, Nov 16, 2016 at 4:38 PM, Tom Stellard wrote: > > On Wed, Nov 16, 2016 at 11:13:45AM +0100, Nicolai Hähnle wrote: > >> Have you looked at the shader-db impact? > >> > > > > shader-d

[Mesa-dev] [PATCH] radeonsi: Set datalayout on the llvm module

2016-12-15 Thread Tom Stellard
This prevents LLVM from using sext instructions for local memory offsets and allows the backend to fold immediate offsets into the instruction. This also prevents some incorrect code generation for ptrtoint and inttoptr instructions. --- src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 6 +++

[Mesa-dev] [PATCH] radeonsi: Use build_buffer_load helper function for geometry shaders

2016-12-15 Thread Tom Stellard
Also add a need_range_checks parameter to this function, which can be set to false to enable some additional optimizations. Currently, this will cause the compiler to emit the llvm.SI.buffer.load.dword intrinsic instead of llvm.amdgcn.buffer.load. Eventually, this information will be passed to LL

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add Polaris12 support

2016-12-19 Thread Tom Stellard
On Mon, Dec 19, 2016 at 02:04:05PM -0500, Alex Deucher wrote: > From: Junwei Zhang > > Signed-off-by: Junwei Zhang > Reviewed-by: Nicolai Hähnle > Acked-by: Christian König > --- > src/amd/addrlib/r800/ciaddrlib.cpp| 3 ++- > src/amd/addrlib/r800/ciaddrlib.h | 1 + >

Re: [Mesa-dev] clover: Implement linking of multiple CL programs.

2016-07-04 Thread Tom Stellard
On Sun, Jul 03, 2016 at 05:51:09PM -0700, Francisco Jerez wrote: > This series is the result of a long back and forth of patches between > Serge and me. Most of the changes are already reviewed by either of > us, but I'm sending them again over the mailing list just in case > somebody else wants t

Re: [Mesa-dev] [PATCH] gallivm: set LLVMNoUnwindAttribute on all intrinsics

2016-07-05 Thread Tom Stellard
On Tue, Jul 05, 2016 at 11:36:03AM +0200, Marek Olšák wrote: > From: Marek Olšák > > RadeonSI stats: Mostly 0% difference, but Valley shows a small improvement: > Do you know which intrinsic this made a difference for? I'm guessing this is required for all the intrinsics defined in the backend

Re: [Mesa-dev] [PATCH] radeonsi: don't interleave R600_DEBUG-enabled shader dumps

2016-07-06 Thread Tom Stellard
On Wed, Jul 06, 2016 at 11:55:03PM +0200, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Only setting R600_DEBUG doesn't set any debug callback. Conversely, the debug > callback is only called when R600_DEBUG is set. I don't get any output from shader-db with this patch. -Tom > --- > src/ga

Re: [Mesa-dev] [PATCH RFC 1/1] r600, compute: Use vtx #3 for kernel arguments

2016-07-11 Thread Tom Stellard
re using vtx#3. With that change: Reviewed-by: Tom Stellard > --- > Hi, > > I ran into problem when using VTX_READ from constant buffer would work only > for 0 index. The LLVM code implied that it should work (or maybe they > considered constant offsets only), but I could

Re: [Mesa-dev] [PATCH 2/5] radeonsi: set dereferenceable attribute on descriptor arrays

2016-07-13 Thread Tom Stellard
On Tue, Jul 12, 2016 at 10:52:35PM +0200, Marek Olšák wrote: > From: Marek Olšák > > This allows moving the loads arbitrarily in the Sinking pass. > > 26002 shaders in 14643 tests > Totals: > SGPRS: 2080160 -> 2080160 (0.00 %) > VGPRS: 798875 -> 797826 (-0.13 %) > Spilled SGPRs: 108485 -> 79165

Re: [Mesa-dev] [PATCH 3/5] radeonsi: replace !tbaa with !invariant.load

2016-07-13 Thread Tom Stellard
On Tue, Jul 12, 2016 at 10:52:36PM +0200, Marek Olšák wrote: > From: Marek Olšák > Reviewed-by: Tom Stellard > no change in generated code thanks to dereferenceable(n) > --- > src/gallium/drivers/radeonsi/si_shader.c | 17 + > 1 file changed, 5 insertion

Re: [Mesa-dev] [PATCH 2/5] radeonsi: set dereferenceable attribute on descriptor arrays

2016-07-13 Thread Tom Stellard
On Wed, Jul 13, 2016 at 03:20:55PM -0400, Tom Stellard wrote: > On Tue, Jul 12, 2016 at 10:52:35PM +0200, Marek Olšák wrote: > > From: Marek Olšák > > > > This allows moving the loads arbitrarily in the Sinking pass. > > > > 26002 shaders in 14643 tests > >

[Mesa-dev] [PATCH 1/2] clover: Add missing include

2016-07-19 Thread Tom Stellard
There was a patch committed to clang to remove unnecessary includes from header files, so we now need to explicitly include clang/Lex/PreprocessorOptions.h --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/clo

[Mesa-dev] [PATCH 2/2] clover: Re-order includes in invocation.cpp to fix build

2016-07-19 Thread Tom Stellard
The build was failing because the official CL headers have a few defines, like: Which have the same name as some class members of clang's OpenCLOptions class. If we include the cl headers first, this breaks the build because the member names of this class are replaced by the literal 1. --- .../st

[Mesa-dev] [PATCH 1/2] clover: Add missing include v2

2016-07-20 Thread Tom Stellard
There was a patch committed to clang to remove unnecessary includes from header files, so we now need to explicitly include clang/Lex/PreprocessorOptions.h v2: - Use <> instead of "" for the include path. --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 ++ 1 file changed, 2 insert

[Mesa-dev] [PATCH 2/2] clover: Re-order includes in invocation.cpp to fix build

2016-07-20 Thread Tom Stellard
The build was failing because the official CL headers have a few defines, like: \# define cl_khr_gl_sharing 1 Which have the same name as some class members of clang's OpenCLOptions class. If we include the cl headers first, this breaks the build because the member names of this class are replace

[Mesa-dev] [PATCH 2/2] radeonsi/compute: Use the HSA abi for non-TGSI compute shaders

2016-07-25 Thread Tom Stellard
This patche switches non-TGSI compute shaders over to using the HSA ABI described here: https://github.com/RadeonOpenCompute/ROCm-Docs/blob/master/AMDGPU-ABI.md The HSA ABI provides a much cleaner interface for compute shaders and allows us to share more code in the compiler with the HSA stack.

[Mesa-dev] [PATCH 1/2] radeonsi/compute: Add some more debug printfs

2016-07-25 Thread Tom Stellard
--- src/gallium/drivers/radeonsi/si_compute.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 5a40286..949ab1a 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeon

Re: [Mesa-dev] [PATCH] radeon/llvm: fix TGSI_OPCODE_UCMP

2013-09-27 Thread Tom Stellard
On Wed, Sep 25, 2013 at 08:14:43PM +0200, Marek Olšák wrote: > From: Marek Olšák > > This doesn't fix any known issue (I haven't run piglit with this yet), > but the code was obviously completely wrong. It looks like copy-pasted from > CMP. Reviewed-by: Tom Stella

Re: [Mesa-dev] [PATCH] R600/SI: fix MIMG writemask adjustement

2013-09-27 Thread Tom Stellard
On Mon, Sep 23, 2013 at 09:09:14PM +0200, mar...@gmail.com wrote: > From: Marek Olšák > > This fixes piglit: > - shaders/glsl-fs-texture2d-masked > - shaders/glsl-fs-texture2d-masked-4 > > Signed-off-by: Marek Olšák > --- > lib/Target/R600/SIISelLowering.cpp | 27 +-- >

Re: [Mesa-dev] [PATCH 04/29] r600: use NEED_RADEON_LLVM over R600_NEED_RADEON_GALLIUM

2013-09-27 Thread Tom Stellard
On Sun, Sep 22, 2013 at 09:29:27PM +0100, Emil Velikov wrote: > libllvmradeon.la is available whenever NEED_RADEON_LLVM is set, using > R600_NEED_RADEON_GALLIUM is rather ambiguous and unnecessary. Drop it > in favour of NEED_RADEON_LLVM. > Reviewed-by: Tom Stellard > Signed-off-b

Re: [Mesa-dev] [PATCH 01/29] gallium/targets: Make use of prebuilt libdricommon.la.

2013-09-27 Thread Tom Stellard
On Sun, Sep 22, 2013 at 09:29:24PM +0100, Emil Velikov wrote: > From: Johannes Obermayr > > libdricommon.la is available whenever a non swrast driver is built. > All the classic dri drivers make use of the prebuild library but all > of the gallium ones rebuild it explicitly. > > While we're here

Re: [Mesa-dev] [PATCH 03/29] gallium/radeon: drop unused variable LIBGALLIUM_LIBS

2013-09-27 Thread Tom Stellard
On Sun, Sep 22, 2013 at 09:29:26PM +0100, Emil Velikov wrote: Reviewed-by: Tom Stellard > Signed-off-by: Emil Velikov > --- > src/gallium/drivers/radeon/Makefile.am | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/src/gallium/drivers/radeon/Makefile.am > b/src/g

Re: [Mesa-dev] [PATCH 05/29] softpipe: consolidate C sources list into Makefile.sources

2013-09-27 Thread Tom Stellard
On Sun, Sep 22, 2013 at 09:29:28PM +0100, Emil Velikov wrote: > Signed-off-by: Emil Velikov As long as you have build tested these with both automake and scons and are prepared to deal with any fallout once they are committed. Patches 5 through 29 are: Reviewed-by: Tom Stellard > ---

Re: [Mesa-dev] [PATCH 01/29] gallium/targets: Make use of prebuilt libdricommon.la.

2013-09-27 Thread Tom Stellard
On Sat, Sep 28, 2013 at 04:42:34AM +0100, Emil Velikov wrote: > On 28/09/13 04:36, Tom Stellard wrote: > > On Sun, Sep 22, 2013 at 09:29:24PM +0100, Emil Velikov wrote: > >> From: Johannes Obermayr > >> > >> libdricommon.la is available whenever a non swrast d

Re: [Mesa-dev] [PATCH 05/29] softpipe: consolidate C sources list into Makefile.sources

2013-09-30 Thread Tom Stellard
On Sat, Sep 28, 2013 at 03:01:15PM +0100, Emil Velikov wrote: > On 28/09/13 04:48, Tom Stellard wrote: > > On Sun, Sep 22, 2013 at 09:29:28PM +0100, Emil Velikov wrote: > >> Signed-off-by: Emil Velikov > > > > As long as you have build tested these with both

Re: [Mesa-dev] [PATCH] R600: Add a ldptr intrinsic to support MSAA.

2013-09-30 Thread Tom Stellard
SAMPLE_LB">; > def TEX_SAMPLE_C_LB : R600_TEX <0x1A, "TEX_SAMPLE_C_LB">; > def TEX_LD : R600_TEX <0x03, "TEX_LD">; > +def TEX_LDPTR : R600_TEX <0x03, "TEX_LDPTR"> { Can you use a named field here so it is easier to read: field bi

Re: [Mesa-dev] [PATCH 1/4] r600g/llvm: fix sample cube shadow

2013-09-30 Thread Tom Stellard
On Mon, Sep 30, 2013 at 11:46:26PM +0200, Vincent Lejeune wrote: Could you go through and wrap some on the long lines that you are adding in the other patches. With that fix, the entire series is: Reviewed-by: Tom Stellard > --- > src/gallium/drivers/radeon/radeon_setup_tgsi_llvm

Re: [Mesa-dev] [PATCH 05/29] softpipe: consolidate C sources list into Makefile.sources

2013-10-01 Thread Tom Stellard
On Mon, Sep 30, 2013 at 07:55:34AM -0700, Tom Stellard wrote: > On Sat, Sep 28, 2013 at 03:01:15PM +0100, Emil Velikov wrote: > > On 28/09/13 04:48, Tom Stellard wrote: > > > On Sun, Sep 22, 2013 at 09:29:28PM +0100, Emil Velikov wrote: > > >> Signed-off-by: Emil Ve

[Mesa-dev] [PATCH] radeonsi/compute: Fix segfault caused by recent refactoring

2013-10-03 Thread Tom Stellard
From: Tom Stellard --- src/gallium/drivers/radeon/r600_pipe_common.c | 4 src/gallium/drivers/radeonsi/radeonsi_shader.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c

Re: [Mesa-dev] PATCH: R600/SI: Enable the verifier on most lit tests

2013-10-04 Thread Tom Stellard
On Fri, Oct 04, 2013 at 10:01:32AM -0700, Owen Anderson wrote: > > On Oct 3, 2013, at 5:36 PM, Tom Stellard wrote: > > > Unfortunately, we cannot enable the machine verifier on tests that have > > branches, because the way IF and ELSE instructions are selected leav

Re: [Mesa-dev] [PATCH 1/3] gallium/radeon: don't export any private symbols

2013-10-07 Thread Tom Stellard
ake.inc if you want to. Either way, the series is Reviewed-by: Tom Stellard > --- > src/gallium/drivers/r600/Makefile.am | 3 ++- > src/gallium/drivers/radeon/Makefile.am | 8 +--- > src/gallium/drivers/radeonsi/Makefile.am | 4 +++- > src/gallium/targets/r300

Re: [Mesa-dev] [PATCH 3/3] configure.ac: report an error if LLVM shared libs are disabled and CL is enabled

2013-10-07 Thread Tom Stellard
On Mon, Oct 07, 2013 at 01:05:15PM +0200, Marek Olšák wrote: > From: Marek Olšák > Reviewed-by: Tom Stellard > --- > configure.ac | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 559c9a3..6158c6e 100

Re: [Mesa-dev] [PATCH] clover: fix building with llvm-3.4 since rev191922

2013-10-07 Thread Tom Stellard
On Fri, Oct 04, 2013 at 09:22:30PM +0200, Laurent Carlier wrote: > http://llvm.org/viewvc/llvm-project?view=revision&revision=191922 Pushed, thanks! > --- > src/gallium/state_trackers/clover/llvm/invocation.cpp | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/g

Re: [Mesa-dev] [PATCH 4/7] gallium/targets/xorg: drop set but unused variable entity

2013-10-07 Thread Tom Stellard
On Sat, Sep 28, 2013 at 03:46:18PM +0100, Emil Velikov wrote: > The function xf86GetEntityInfo() retrieves the entity rather than > doing any changes. Remove this no-op code. > > Signed-off-by: Emil Velikov Reviewed-by: Tom Stellard > --- > src/gallium/targets/r600/xorg/xor

Re: [Mesa-dev] [PATCH 7/7] automake: properly handle non-default expat installation

2013-10-07 Thread Tom Stellard
On Sat, Sep 28, 2013 at 03:46:21PM +0100, Emil Velikov wrote: > Use PKG_CHECK_MODULE over requesting the user to setup the > option at configure time. Drop unused EXPAT_INCLUDE and add > EXPAT_CFLAGS to all classic/dri and gallium/dri targets. > > Signed-off-by: Emil Velikov > --- > configure.ac

Re: [Mesa-dev] [PATCH] R600/SI: fix MIMG writemask adjustement

2013-10-09 Thread Tom Stellard
1b4cc4e > --- /dev/null > +++ b/test/CodeGen/R600/llvm.SI.sample-masked.ll > @@ -0,0 +1,93 @@ > +;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s > + > +; CHECK: @v1 I always forget to mention this, but we should use CHECK-LABEL: when checking the function names. CHECK-LAB

Re: [Mesa-dev] [PATCH] R600/SI: Support byval arguments

2013-10-10 Thread Tom Stellard
On Thu, Oct 10, 2013 at 12:04:16AM +0200, Vincent Lejeune wrote: What is the purpose of this change? -Tom > --- > lib/Target/R600/AMDGPUCallingConv.td | 7 ++- > lib/Target/R600/SIISelLowering.cpp | 3 ++- > 2 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/lib/Target/R60

Re: [Mesa-dev] PATCH: R600 + SI Private memory fixes; Use more SALU instructions on SI

2013-10-10 Thread Tom Stellard
On Thu, Oct 10, 2013 at 11:29:17AM -0700, Matt Arsenault wrote: > On 10/10/2013 10:55 AM, Tom Stellard wrote: > > Hi, > > > > The attached patches simplify the handling of OpenCL private memory > > space for VLIW4/VLIW5 GPUs and should fix a crash with pyrit on r600

[Mesa-dev] PATCH: R600: Fix crash in AMDILCFGStructurizer

2013-10-11 Thread Tom Stellard
Hi, The attached patches fix a crash in the AMDILCFGStructurizer. The first patch does some code cleanup and the second patch actually fixes the crash. -Tom >From 8a95058178eba343cb6ee408677b42329e7069ed Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 11 Oct 2013 09:18:22 -0700 Subj

[Mesa-dev] [PATCH] clover: Link libclc before running any optimizations

2013-10-11 Thread Tom Stellard
From: Tom Stellard This is required in order for clang to correctly handle the OpenCL C barrier() builtin which has the following restrictions acording to the OpenCL 1.1 Specification: If barrier is inside a conditional statement, then all work-items must enter the conditional if any work-item

[Mesa-dev] [PATCH] r600g/compute Improve debugging output

2013-10-11 Thread Tom Stellard
From: Tom Stellard --- src/gallium/drivers/r600/compute_memory_pool.c | 8 +--- src/gallium/drivers/r600/evergreen_compute.c | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600

[Mesa-dev] [PATCH] R600: Make sure OQAP defs and uses happen in the same clause

2013-10-11 Thread Tom Stellard
From: Tom Stellard Reading the special OQAP register pops the top value off the LDS input queue and returns it to the instruction. This queue is invalidated at the end of an ALU clause and leaving values in the queue can lead to GPU hangs. This means that if we load a value into the queue, we

Re: [Mesa-dev] [PATCH 7/7] automake: properly handle non-default expat installation

2013-10-11 Thread Tom Stellard
On Fri, Oct 11, 2013 at 02:09:57PM +0100, Emil Velikov wrote: > On 07/10/13 18:53, Emil Velikov wrote: > > On 07/10/13 16:48, Tom Stellard wrote: > >> On Sat, Sep 28, 2013 at 03:46:21PM +0100, Emil Velikov wrote: > >>> Use PKG_CHECK_MODULE over requesting the use

Re: [Mesa-dev] [PATCH] radeon/llvm: show LLVM disassembly when available

2013-10-12 Thread Tom Stellard
On Thu, Oct 10, 2013 at 08:06:48PM -0500, Jay Cornwall wrote: > With code dump enabled LLVM may generate disassembly during compilation. > Show this disassembly when available and prefer it to SI bytecode dump. > I've pushed this and the LLVM patch. Thanks! -Tom > Signed-off-by: Jay Cornwall

[Mesa-dev] PATCH: R600: Fix handling of kernel arguments

2013-10-15 Thread Tom Stellard
Hi, The attached patches fix various bugs in the handling of kernel arguments in the R600 backend. The main problem with the old implementations was that it disagreed with clover on type size and alignment, so vector arguments were not being loaded correctly into the kernel. This series depends

Re: [Mesa-dev] PATCH: R600: Fix handling of kernel arguments

2013-10-15 Thread Tom Stellard
On Tue, Oct 15, 2013 at 01:59:55PM -0400, Alex Deucher wrote: > Did you forget the attachments? > Yes I did. Here they are. -Tom > On Tue, Oct 15, 2013 at 12:40 PM, Tom Stellard wrote: > > Hi, > > > > The attached patches fix various bugs in the handling of kerne

Re: [Mesa-dev] [PATCH 1/2] r600/llvm: Fix texbuf for pre EG gen

2013-10-21 Thread Tom Stellard
On Mon, Oct 21, 2013 at 10:02:12PM +0200, Vincent Lejeune wrote: Can you add an explanation to the commit messages for both patches about what was wrong with the old code? Thanks, Tom > --- > src/gallium/drivers/r600/r600_llvm.c | 29 + > 1 file changed, 29 insertion

[Mesa-dev] [PATCH] radeon/llvm: Specify the DataLayout when running optimizations

2013-10-22 Thread Tom Stellard
From: Tom Stellard Without DataLayout, a lot of optimization passes aren't run and the ones that are don't work as well. --- src/gallium/drivers/radeon/radeon_llvm_util.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/galli

Re: [Mesa-dev] [PATCH] R600: Make sure OQAP defs and uses happen in the same clause

2013-10-22 Thread Tom Stellard
ailed. Any suggestions on where I should but it? -Tom On Mon, Oct 21, 2013 at 12:40:28PM -0700, Vincent Lejeune wrote: > > > > > - Mail original - > > De : Tom Stellard > > À : llvm-comm...@cs.uiuc.edu > > Cc : mesa-dev@lists.freedesktop.org; Tom Stellar

[Mesa-dev] [PATCH] radeonsi/compute: Add Sea Islands support

2013-10-22 Thread Tom Stellard
From: Tom Stellard --- src/gallium/drivers/radeonsi/radeonsi_compute.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c index d3f5a23..f047d5d 100644 --- a/src

[Mesa-dev] [PATCH] R600/SI: Add compute support for CI

2013-10-22 Thread Tom Stellard
From: Tom Stellard --- lib/Target/R600/AMDGPU.td| 2 ++ lib/Target/R600/AMDGPUAsmPrinter.cpp | 16 ++-- lib/Target/R600/AMDGPUCallingConv.td | 4 ++-- lib/Target/R600/AMDGPUSubtarget.h| 3 ++- lib/Target/R600/Processors.td| 6 +++--- lib/Target/R600

Re: [Mesa-dev] [PATCH] R600/SI: fix MIMG writemask adjustement

2013-10-22 Thread Tom Stellard
Pushed, thanks. -Tom On Tue, Oct 22, 2013 at 02:15:01AM +0200, Marek Olk wrote: > From: Marek Olk > > This fixes piglit: > - shaders/glsl-fs-texture2d-masked > - shaders/glsl-fs-texture2d-masked-4 > > Signed-off-by: Marek Ol????k > Reviewed-by: Tom Stellard

Re: [Mesa-dev] [PATCH] radeonsi/compute: Add Sea Islands support

2013-10-23 Thread Tom Stellard
On Wed, Oct 23, 2013 at 09:47:30AM -0500, Jay Cornwall wrote: > On 2013-10-22 21:05, Tom Stellard wrote: > > > --- > > src/gallium/drivers/radeonsi/radeonsi_compute.c | 15 --- > > 1 file changed, 12 insertions(+), 3 deletions(-) > > > [..] &

Re: [Mesa-dev] [PATCH] R600/SI: Add compute support for CI

2013-10-23 Thread Tom Stellard
On Wed, Oct 23, 2013 at 09:31:53AM +0200, Michel D??nzer wrote: > On Die, 2013-10-22 at 22:07 -0400, Tom Stellard wrote: > > > > diff --git a/lib/Target/R600/AMDGPU.td b/lib/Target/R600/AMDGPU.td > > index a722f55..f63617f 100644 > > --- a/lib/Target/R600/AMDGPU.t

[Mesa-dev] [PATCH 1/3] pipe-loader: Only export necessary symbols

2013-10-23 Thread Tom Stellard
From: Tom Stellard This makes it possible to use clover with statically linked LLVM. --- src/gallium/targets/pipe-loader/Makefile.am | 4 src/gallium/targets/pipe-loader/pipe.link | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 src/gallium/targets/pipe-loader/pipe.link

[Mesa-dev] [PATCH 2/3] configure.ac: Don't require shared LLVM when building OpenCL

2013-10-23 Thread Tom Stellard
From: Tom Stellard This works now that pipe_*.so is no longer exporting LLVM symbols. --- configure.ac | 6 -- 1 file changed, 6 deletions(-) diff --git a/configure.ac b/configure.ac index dfa35b4..81403ee 100644 --- a/configure.ac +++ b/configure.ac @@ -1530,12 +1530,6 @@ AC_ARG_WITH

[Mesa-dev] Fix crashes with static LLVM

2013-10-23 Thread Tom Stellard
Hi, The attached patches introduce linker scripts to the pipe-loader and egl-static targets. The linker scripts prevents these targets from exporting LLVM (and other) symbols that they shouldn't be. This fixes several crashes in the radeon drivers when statically linking LLVM. With these patche

[Mesa-dev] [PATCH 3/3] egl-static: Only export necessary symbols

2013-10-23 Thread Tom Stellard
From: Tom Stellard This fixes a crash in glamor when mesa links against static LLVM. --- src/gallium/targets/egl-static/Makefile.am | 4 src/gallium/targets/egl-static/egl.link| 3 +++ 2 files changed, 7 insertions(+) create mode 100644 src/gallium/targets/egl-static/egl.link diff

[Mesa-dev] [PATCH 1/3] pipe-loader: Only export necessary symbols v2

2013-10-23 Thread Tom Stellard
From: Tom Stellard This makes it possible to use clover with statically linked LLVM. v2: - Inline LINKER_SCRIPT variable --- src/gallium/targets/pipe-loader/Makefile.am | 2 ++ src/gallium/targets/pipe-loader/pipe.link | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 src

[Mesa-dev] [PATCH 3/3] egl-static: Only export necessary symbols v2

2013-10-23 Thread Tom Stellard
From: Tom Stellard This fixes a crash in glamor when mesa links against static LLVM. v2: - Inline LINKER_SCRIPT variable --- src/gallium/targets/egl-static/Makefile.am | 2 ++ src/gallium/targets/egl-static/egl.link| 3 +++ 2 files changed, 5 insertions(+) create mode 100644 src/gallium

[Mesa-dev] [PATCH] R600: Expand vector FSQRT ops

2013-10-23 Thread Tom Stellard
From: Tom Stellard --- lib/Target/R600/AMDGPUISelLowering.cpp | 1 + test/CodeGen/R600/llvm.sqrt.ll | 54 ++ 2 files changed, 55 insertions(+) create mode 100644 test/CodeGen/R600/llvm.sqrt.ll diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib

[Mesa-dev] [PATCH] R600/SI: Add compute support for CI v2

2013-10-23 Thread Tom Stellard
From: Tom Stellard v2: - Fix LDS size calculation --- lib/Target/R600/AMDGPU.td| 2 ++ lib/Target/R600/AMDGPUAsmPrinter.cpp | 16 ++-- lib/Target/R600/AMDGPUCallingConv.td | 4 ++-- lib/Target/R600/AMDGPUSubtarget.h| 3 ++- lib/Target/R600/Processors.td

Re: [Mesa-dev] [PATCH] RFC clover: calculate maximum workgroup size based on device

2013-10-23 Thread Tom Stellard
On Wed, Oct 23, 2013 at 06:41:56PM -0500, Aaron Watry wrote: > The maximum workgroup size for a given kernel is based on the > capabilities of the device that it's being run on. Previously, > we were just returning the maximum value of a size_t which is > obviously wrong. > > This patch uses the d

Re: [Mesa-dev] Continuous Integration

2013-10-24 Thread Tom Stellard
On Thu, Oct 24, 2013 at 02:55:36AM -0400, Yomi Ogunwumi wrote: > Hello everyone. > > I was reading through the Help Wanted page and I was wondering if 6. > Automatic Testing still needed to be done. > > The three continuous integration systems currently I'm looking at are : > > • Jenkins > • Bui

Re: [Mesa-dev] clover: fix build after a3ed98f7aa85636579a5696bf036ec13e5c9104a

2013-10-24 Thread Tom Stellard
On Thu, Oct 24, 2013 at 09:14:49AM -0600, Brian Paul wrote: > On 10/23/2013 01:33 PM, David Heidelberger wrote: > > link to similiar bug: https://bugs.freedesktop.org/show_bug.cgi?id=70804 > > > > --- > > src/gallium/state_trackers/clover/core/kernel.cpp | 7 --- > > 1 file changed, 4 insert

Re: [Mesa-dev] [PATCH] R600: Expand vector FSQRT ops

2013-10-29 Thread Tom Stellard
On Wed, Oct 23, 2013 at 6:28 PM, Tom Stellard wrote: > > From: Tom Stellard > > > > --- > > lib/Target/R600/AMDGPUISelLowering.cpp | 1 + > > test/CodeGen/R600/llvm.sqrt.ll | 54 > > ++ > > 2 files changed, 55 in

Re: [Mesa-dev] [PATCH] radeonsi: Allow longer intrinsic names

2013-10-29 Thread Tom Stellard
Kai Wasserbäch This looks OK to me, which intrinsic names were too long? Reviewed-by: Tom Stellard > --- > src/gallium/drivers/radeonsi/radeonsi_shader.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader

[Mesa-dev] [PATCH] clover: Don't install headers when using the icd

2013-10-29 Thread Tom Stellard
From: Tom Stellard The ICD loader should be responsible for installing headers. --- src/gallium/state_trackers/clover/Makefile.am | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium

Re: [Mesa-dev] [PATCH] clover: mark gcc 4.7.0 as broken

2013-10-29 Thread Tom Stellard
nly not compile on 4.7.0, if I recall corectly Tom Stellard > said it compile on 4.7.1. This patch is tested. I was mistaken. 4.7.3 is the oldest version that will work. This patch doesn't apply for me. It looks like your mail client is wrapping long lines, can you resend? Thanks, Tom

[Mesa-dev] [PATCH] clover: Calculate the optimal work group size when local_size is NULL

2013-10-29 Thread Tom Stellard
From: Tom Stellard This results in huge performance improvements for applications like pyrit, which depend on the implementation to determine the optimal work group size. --- src/gallium/state_trackers/clover/api/kernel.cpp | 9 - src/gallium/state_trackers/clover/core/device.cpp | 19

[Mesa-dev] [PATCH] clover: Calculate the optimal work group size when local_size is NULL

2013-10-29 Thread Tom Stellard
From: Tom Stellard This results in huge performance improvements for applications like pyrit, which depend on the implementation to determine the optimal work group size. --- src/gallium/state_trackers/clover/api/kernel.cpp | 9 - src/gallium/state_trackers/clover/core/device.cpp | 19

[Mesa-dev] [PATCH 2/2] pipe-loader: Add support for render nodes

2013-10-29 Thread Tom Stellard
From: Tom Stellard You can use the --enable-pipe-loader-render-nodes configure flag to make the pipe-loader use render nodes for talking with the device. --- configure.ac | 6 ++ src/gallium/auxiliary/pipe-loader/Makefile.am | 5 ++ .../auxiliary

[Mesa-dev] [PATCH 1/2] winsys/radeon: Add a work around for drmGetVersion() when using render nodes

2013-10-29 Thread Tom Stellard
From: Tom Stellard DRM_IOCTL_VERSION is not currently a legal ioctl for render nodes, so we need to hard code the drm version when drmGetVersion() returns NULL. --- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 36 --- 1 file changed, 25 insertions(+), 11 deletions

Re: [Mesa-dev] [PATCH 1/2] r600/llvm: Fix texbuf for pre EG gen

2013-10-30 Thread Tom Stellard
Both patches are: Reviewed-by: Tom Stellard On Wed, Oct 30, 2013 at 04:48:18PM +0100, Vincent Lejeune wrote: > R600/R700 implementation of tex buffer fetch requires the result of the VFETCH > instruction to be ANDed with R600_BUFFER_INFO_CONST_BUFFER, and the last > channel > to

Re: [Mesa-dev] [PATCH] R600: Make sure OQAP defs and uses happen in the same clause

2013-10-30 Thread Tom Stellard
ll LDS instructions > that queues a value, I only use LDS_RET_READ in switch case. > > Vincent > > > > - Mail original - > > De : Tom Stellard > > À : Vincent Lejeune > > Cc : "llvm-comm...@cs.uiuc.edu" ; > > "mesa-dev@lists.fr

Re: [Mesa-dev] [PATCH 2/2] pipe-loader: Add support for render nodes

2013-10-30 Thread Tom Stellard
On Wed, Oct 30, 2013 at 08:15:43AM +0100, David Herrmann wrote: > Hi Tom > > On Tue, Oct 29, 2013 at 9:00 PM, Tom Stellard wrote: > > From: Tom Stellard > > > > You can use the --enable-pipe-loader-render-nodes configure flag to > > make the pipe-loader use

Re: [Mesa-dev] [PATCH] radeonsi: Allow longer intrinsic names

2013-10-30 Thread Tom Stellard
On Tue, Oct 29, 2013 at 08:34:16PM +0100, Kai Wasserb??ch wrote: > Tom Stellard schrieb am 29.10.2013 17:48: > > On Sun, Oct 27, 2013 at 07:36:07PM +0100, Kai Wasserb??ch wrote: > >> Fixes a boat load of Piglit tests for me, which crashed like fdo#70913 > >> before. &

Re: [Mesa-dev] [PATCH] clover: Don't install headers when using the icd

2013-10-30 Thread Tom Stellard
On Wed, Oct 30, 2013 at 08:38:37AM -0500, Aaron Watry wrote: > Reviewed and Tested-by: Aaron Watry I have pushed this patch, thanks for testing. > > On Tue, Oct 29, 2013 at 11:48 AM, Tom Stellard wrote: > > From: Tom Stellard > > > > The ICD loader should be

Re: [Mesa-dev] [PATCH] radeon/llvm: Specify the DataLayout when running optimizations

2013-10-30 Thread Tom Stellard
, thanks for testing. > --Aaron > > On Tue, Oct 22, 2013 at 11:28 AM, Tom Stellard wrote: > > From: Tom Stellard > > > > Without DataLayout, a lot of optimization passes aren't run and the ones > > that are don't work as well. > > --- > >

Re: [Mesa-dev] [PATCH] gallivm: Remove llvm::DisablePrettyStackTrace for LLVM >= 3.4.

2013-11-04 Thread Tom Stellard
e in LLVM 3.4 and newer. Otherwise, I think people may be confused about why this change was made. With that change, the patch is: Reviewed-by: Tom Stellard > Signed-off-by: Vinson Lee > --- > src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 ++ > 1 file changed, 2 insertions(+)

Re: [Mesa-dev] [PATCH] clover: fix build with LLVM 3.4

2013-11-04 Thread Tom Stellard
On Fri, Nov 01, 2013 at 10:25:43AM -0500, Aaron Watry wrote: > dso_list was added as an argument for createInternalizePass in 3.4, and then > it was removed again in the same llvm version. I've pushed this patch, thanks! -Tom > --- > src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 ---

Re: [Mesa-dev] [PATCH] r600/llvm: Store inputs in function arguments

2013-11-04 Thread Tom Stellard
On Sun, Nov 03, 2013 at 06:58:18PM +0100, Vincent Lejeune wrote: > --- > src/gallium/drivers/r600/r600_llvm.c | 125 > - > src/gallium/drivers/r600/r600_shader.c | 2 + > src/gallium/drivers/radeon/radeon_llvm.h | 1 + > .../drivers/rade

Re: [Mesa-dev] Fix crashes with static LLVM

2013-11-05 Thread Tom Stellard
On Wed, Oct 23, 2013 at 04:26:18PM -0400, Tom Stellard wrote: > Hi, > > The attached patches introduce linker scripts to the pipe-loader and > egl-static targets. The linker scripts prevents these targets from > exporting LLVM (and other) symbols that they shouldn't be.

Re: [Mesa-dev] [PATCH 2/6] radeon/llvm: Free libelf resources

2013-11-06 Thread Tom Stellard
On Wed, Nov 06, 2013 at 10:36:51AM -0600, Aaron Watry wrote: > --- > src/gallium/drivers/radeon/radeon_llvm_emit.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c > b/src/gallium/drivers/radeon/radeon_llvm_emit.c > index 8bf278b..20b3206

Re: [Mesa-dev] [PATCH 0/6] radeon: Plug some memory leaks

2013-11-06 Thread Tom Stellard
These look good, but the indentation seems wrong in patches 2 through 6. -Tom On Wed, Nov 06, 2013 at 10:36:49AM -0600, Aaron Watry wrote: > I decided to have some fun and hooked valgrind up to my 7850 while running > a few OpenCL tests in piglit. This is the first batch of fixes. > > Aaron Watr

Re: [Mesa-dev] [PATCH 0/6] radeon: Plug some memory leaks

2013-11-06 Thread Tom Stellard
On Wed, Nov 06, 2013 at 12:59:09PM -0600, Aaron Watry wrote: > On Wed, Nov 6, 2013 at 12:15 PM, Tom Stellard wrote: > > These look good, but the indentation seems wrong in patches 2 through 6. > > An artifact of expanding tabs to 4 spaces in the IDE... Although I'd >

Re: [Mesa-dev] [PATCH] r600/llvm: Store inputs in function arguments

2013-11-11 Thread Tom Stellard
On Mon, Nov 11, 2013 at 03:45:53PM +0100, Vincent Lejeune wrote: Reviewed-by: Tom Stellard > --- > src/gallium/drivers/r600/r600_llvm.c | 119 > +++ > src/gallium/drivers/r600/r600_shader.c | 1 + > src/gallium/drivers/radeon/radeon_llvm

Re: [Mesa-dev] [PATCH 15/37] r300: move the final sources list to Makefile.sources

2013-11-11 Thread Tom Stellard
On Sat, Nov 02, 2013 at 07:00:45PM +, Emil Velikov wrote: > Signed-off-by: Emil Velikov Can you make sure make check still works with this patch, if it does, then: Reviewed-by: Tom Stellard > --- > src/gallium/drivers/r300/Makefile.am | 13 ++--- > src/gallium/

Re: [Mesa-dev] [PATCH 14/37] r300: add symlink to ralloc.c and register_allocate.c

2013-11-11 Thread Tom Stellard
On Sat, Nov 02, 2013 at 07:00:44PM +, Emil Velikov wrote: > Make automake's subdir-objects work. > Update includes. > > Signed-off-by: Emil Velikov > --- > src/gallium/drivers/r300/Makefile.am | 6 +++--- > src/gallium/drivers/r300/ralloc.c| 1 + > src/gallium/drivers/r30

Re: [Mesa-dev] [PATCH 2/3] r600/llvm: Free binary.code/binary.config in r600_llvm_compile

2013-11-11 Thread Tom Stellard
On Thu, Nov 07, 2013 at 06:08:15PM -0600, Aaron Watry wrote: > radeon_llvm_compile allocates memory for binary.code, binary.config, or > neither depending on > what's being done. > > We need to make sure to free that memory after it's no longer needed. > --- > src/gallium/drivers/r600/r600_llvm.

Re: [Mesa-dev] [PATCH 1/3] r600/llvm: initialize radeon_llvm_binary

2013-11-11 Thread Tom Stellard
600/r600_llvm.c > @@ -712,6 +712,7 @@ unsigned r600_llvm_compile( > const char * gpu_family = r600_llvm_gpu_string(family); > unsigned i; > > +memset(&binary, 0, sizeof(struct radeon_llvm_binary)); The indentation looks wrong here, otherwise this patch is: Reviewe

<    1   2   3   4   5   6   7   8   9   10   >