Re: [Mesa-dev] [PATCH] clover: fix building fix clang-3.8

2015-10-28 Thread Aaron Watry
Fixes the build for me here, and cl-program-tester from piglit seems to work just fine for the few tests I just ran. --Aaron On Wed, Oct 28, 2015 at 9:47 AM, Laurent Carlier wrote: > https://bugs.freedesktop.org/show_bug.cgi?id=92705 > > v2.1: use Linker::Flags::None instead of 0 and emplace_ba

Re: [Mesa-dev] [PATCH] util/u_atomic: Add new macro p_atomic_add

2015-02-06 Thread Aaron Watry
On Fri, Feb 6, 2015 at 1:43 PM, Carl Worth wrote: > This provides for atomic addition, which will be used by an upcoming > shader-cache patch. A simple test is added to "make check" as well. > > Note: The various O/S functions differ on whether they return the > original value or the value after

Re: [Mesa-dev] [PATCH 35/40] util/disk_cache: allow drivers to pass a directory structure

2017-02-07 Thread Aaron Watry
On Mon, Feb 6, 2017 at 9:42 PM, Timothy Arceri wrote: > In order to avoid costly fallback recompiles when cache items are > created with an old version of Mesa or for a different gpu on the > same system we want to create directories that look like this: > > ./{MESA_VERSION_STRING}/{GPU_ID} > > F

Re: [Mesa-dev] [PATCH 35/40] util/disk_cache: allow drivers to pass a directory structure

2017-02-07 Thread Aaron Watry
On Tue, Feb 7, 2017 at 3:43 PM, Timothy Arceri wrote: > On Wed, 8 Feb 2017 08:29:29 +1100 > Timothy Arceri wrote: > > > On Tue, 7 Feb 2017 11:40:12 -0600 > > Aaron Watry wrote: > > > > > On Mon, Feb 6, 2017 at 9:42 PM, Timothy Arceri > > >

[Mesa-dev] [PATCH] glx/tests: Fix bash-specific code in dispatch-index-check

2017-02-24 Thread Aaron Watry
Using <<< for variable redirection is bash-specific behavior. Ubuntu redirects sh -> dash, so this was erroring out. Also, the initial error that led me to this was that srcdir is null when running make check so I just copied something similar to what the optimization-test script does. --- src/g

Re: [Mesa-dev] [PATCH] glx/tests: Fix bash-specific code in dispatch-index-check

2017-02-27 Thread Aaron Watry
On Sun, Feb 26, 2017 at 7:51 AM, Eric Engestrom wrote: > On Friday, 2017-02-24 22:03:36 -0600, Aaron Watry wrote: > > Using <<< for variable redirection is bash-specific behavior. > > Ubuntu redirects sh -> dash, so this was erroring out. > > > > Also, th

Re: [Mesa-dev] [r600g] Mesa git: undefined reference to `ac_shader_binary_config_start' and `ac_elf_read'

2017-02-27 Thread Aaron Watry
On Mon, Feb 27, 2017 at 10:25 PM, Dieter Nützel wrote: > Hello Timothy, > > after your latest commit I get this: > Same here... My standard mesa build enables both r600g/radeonsi and also does --enable-opencl which pulls LLVM/libelf into r600g for compute purposes. Looks like r600g isn't being

Re: [Mesa-dev] [PATCH 1/3] nir: Simplify fne(fneg(a), a) -> fne(a, 0.0)

2015-08-06 Thread Aaron Watry
On Thu, Aug 6, 2015 at 6:36 AM, Thomas Helland wrote: > -NaN != NaN, and -Inf != Inf, so this should be safe. > What about -0.0 ? Does feq/fne treat both negative and positive zero as equivalent? --Aaron > Found while working on my VRP pass. > > Shader-db results on my IVB: > total instructi

Re: [Mesa-dev] [PATCH 1/3] nir: Simplify fne(fneg(a), a) -> fne(a, 0.0)

2015-08-06 Thread Aaron Watry
Nevermind. Patch 2 answers that question in the commit message. --Aaron On Thu, Aug 6, 2015 at 10:25 AM, Aaron Watry wrote: > > > On Thu, Aug 6, 2015 at 6:36 AM, Thomas Helland > wrote: > >> -NaN != NaN, and -Inf != Inf, so this should be safe. >> > > What

Re: [Mesa-dev] [PATCH] glsl: Let cache_test build when the shader cache is not enabled

2016-10-06 Thread Aaron Watry
Thanks for this. This at least lets me build a 32-bit mesa on 64-bit host again by disabling the cache. Tested-by: Aaron Watry Tim: Just FYI, I get test failures for 32-bit builds on my x86-64 host. With this patch, it no longer segfaults at least, just fails tests. If you need more info, I

[Mesa-dev] Bisected: Make check is failing as of 549222f5

2016-08-10 Thread Aaron Watry
Hello, I just got home and did a pull/build, and make check is failing as of a very recent commit today... ${MESA_ROOT}/bin/test-driver: line 107: 5863 Segmentation fault (core dumped) "$@" > $log_file 2>&1 FAIL: glsl/tests/uniform-initializer-test PASS: glsl/glcpp/tests/glcpp-test ^Cmake[6

Re: [Mesa-dev] [PATCH] glsl/tests: fix segfault in uniform initializer test

2016-08-10 Thread Aaron Watry
On Wed, Aug 10, 2016 at 7:34 PM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > Cause by 549222f5 > s/Cause/Caused/ ? Fixes the make check failure for me (haven't done a full piglit run, just build/check/install test). Thanks for the quick turnaround. --Aaron &g

Re: [Mesa-dev] [PATCH] nir/tests: Update the CF tests to not assume fake edges

2016-09-03 Thread Aaron Watry
On Sat, Sep 3, 2016 at 1:59 PM, Jason Ekstrand wrote: > In aad4f1550, we removed the concept of "fake" edges from NIR. Now, if you > have a block at the end of an infinite loop it really has no predecessors. > This updates the unit tests to match. > > Fixes `make check` for me. --Aaron > Sign

[Mesa-dev] [PATCH] llvmpipe: Fix build after removal of deprecated attribute API

2016-11-07 Thread Aaron Watry
Applies on top of v2 of Tom's gallivm change. Signed-off-by: Aaron Watry CC: Tom Stellard CC: Jan Vesely --- This fixes the build for me. I haven't done more than compile test this and run make check. src/gallium/drivers/llvmpipe/lp_state_fs.c| 2 +- src/gallium/driver

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

2016-11-08 Thread Aaron Watry
On Tue, Nov 8, 2016 at 4:38 AM, Andy Furniss wrote: > Tom Stellard wrote: > >> --- >> >> Build tested only so far. >> >> src/gallium/auxiliary/draw/draw_llvm.c| 6 +- >> src/gallium/auxiliary/gallivm/lp_bld_intr.c | 48 +++- >> src/gallium/auxiliary/gallivm/lp_b

[Mesa-dev] [PATCH 3/3] glsl/cache/tests: Cast cache_get result to avoid compiler warning

2016-11-22 Thread Aaron Watry
disk_cache_get returns void*, but we were storing/comparing a char*. Signed-off-by: Aaron Watry --- Note that this did, and still, segfaults for me when I actually run it... But at least the compiler is no longer complaining about the type mismatch. src/compiler/glsl/tests/cache_test.c | 6

[Mesa-dev] [PATCH 2/3] compiler/glsl/tests: Fix print format when building 32-bit on 64-bit host

2016-11-22 Thread Aaron Watry
Avoids two warnings. Signed-off-by: Aaron Watry --- src/compiler/glsl/tests/cache_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index ca22605..0ef05aa 100644 --- a/src/compiler/glsl

[Mesa-dev] [PATCH 1/3] compiler/glsl/tests: Fix print format when building 32-bit on 64-bit host

2016-11-22 Thread Aaron Watry
Avoids three warnings. Signed-off-by: Aaron Watry --- Hope you don't mind my re-wrapping the long lines. src/compiler/glsl/tests/blob_test.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/compiler/glsl/tests/blob_test.c b/src/compiler/glsl/tests/blob_t

Re: [Mesa-dev] [PATCH 3/3] glsl/cache/tests: Cast cache_get result to avoid compiler warning

2016-11-22 Thread Aaron Watry
On Tue, Nov 22, 2016 at 2:48 PM, Matt Turner wrote: > On 11/22, Aaron Watry wrote: > >> disk_cache_get returns void*, but we were storing/comparing a char*. >> >> Signed-off-by: Aaron Watry >> --- >> Note that this did, and still, segfaults for me when I a

Re: [Mesa-dev] [PATCH 3/3] glsl/cache/tests: Cast cache_get result to avoid compiler warning

2016-11-23 Thread Aaron Watry
On Tue, Nov 22, 2016 at 8:27 PM, Aaron Watry wrote: > > > On Tue, Nov 22, 2016 at 2:48 PM, Matt Turner wrote: > >> On 11/22, Aaron Watry wrote: >> >>> disk_cache_get returns void*, but we were storing/comparing a char*. >>> >>> Signed-off-b

Re: [Mesa-dev] [PATCH v2] clover: Use Clang's diagnostics

2016-12-22 Thread Aaron Watry
s. > > Fixes Piglit's cl/program/build/fail/invalid-version-declaration.cl > test. > > v2: fix inconsistent code formatting > > Signed-off-by: Vedran Miletić > Reviewed-by: Francisco Jerez > Tested-by: Aaron Watry > --- > src/gallium/state_trackers/clover/ll

Re: [Mesa-dev] [PATCH 1/4] radeon/video: fix coding style in radeon_video.c

2016-07-07 Thread Aaron Watry
On Thu, Jul 7, 2016 at 4:57 AM, Christian König wrote: > From: Christian König > > Signed-off-by: Christian König > --- > src/gallium/drivers/radeon/radeon_video.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/src/gallium/drivers/radeon/radeon_video.c >

Re: [Mesa-dev] OpenCL for radeon Hawaii?

2016-08-03 Thread Aaron Watry
It looks like CLBlast makes the same mistake that the CLU library did until recently (fixed in 435957d667bc22cdb2f0bdc32). It assumes that if your system has OpenCL 2.0 headers installed that the OpenCL platforms present on the system also support CL 2.0. In the case of Mesa, it doesn't support c

Re: [Mesa-dev] OpenCL for radeon Hawaii?

2016-08-04 Thread Aaron Watry
On Thu, Aug 4, 2016 at 2:54 PM, Sam Halliday wrote: > Thanks Jan, > > This is what it comes up with > https://gist.github.com/fommil/c97d4c8fb2790e28ecaf8d334ebf1746 > > Are there any demo apps I could expect to run with this? What is > involved in writing missing functionality? > I'll let other

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

2013-10-23 Thread Aaron Watry
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 device's capabilities, but doesn't take into account any resource usage wh

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

2013-10-25 Thread Aaron Watry
Reviewed-by: Aaron Watry I have tested this on a Radeon 5400 (Cedar), and I just sent a few generated tests to the piglit list. --Aaron On Wed, Oct 23, 2013 at 6:28 PM, Tom Stellard wrote: > From: Tom Stellard > > --- > lib/Target/R600/AMDGPUISelLowering.cpp | 1 + > te

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

2013-10-28 Thread Aaron Watry
I ran this through a piglit CL test run on my 7850, no test fixes or regressions. --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. > --- > src/gallium/d

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

2013-10-28 Thread Aaron Watry
I just ran a quick.tests run on evergreen without any regressions. Patch looks good to me, and doesn't seem to cause any regressions on the hardware I have available to test with. --Aaron On Tue, Oct 22, 2013 at 11:28 AM, Tom Stellard wrote: > From: Tom Stellard > > Without DataLayout, a lot o

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

2013-10-29 Thread Aaron Watry
On Tue, Oct 29, 2013 at 7:06 PM, Niels Ole Salscheider wrote: > Hi Tom, > > this has been on my todo list for quite a while. > > Your patch looks good to me, but in my experience a block with approximately > the same size for each dimension gives slightly better performance in many > cases when co

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

2013-10-30 Thread Aaron Watry
Reviewed and Tested-by: Aaron Watry On Tue, Oct 29, 2013 at 11:48 AM, Tom Stellard wrote: > From: Tom Stellard > > The ICD loader should be responsible for installing headers. > --- > src/gallium/state_trackers/clover/Makefile.am | 21 +++-- > 1 file chan

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

2013-11-01 Thread Aaron Watry
dso_list was added as an argument for createInternalizePass in 3.4, and then it was removed again in the same llvm version. --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 - 1 file changed, 5 deletions(-) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src

Re: [Mesa-dev] [PATCH 1/5] mesa: remove Alpha CPU checks

2013-11-05 Thread Aaron Watry
On Mon, Nov 4, 2013 at 7:04 PM, Matt Turner wrote: > On Mon, Nov 4, 2013 at 4:48 PM, Brian Paul wrote: >> --- >> src/mesa/main/compiler.h |7 +-- >> 1 file changed, 1 insertion(+), 6 deletions(-) >> >> diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h >> index 61ce5db..275

Re: [Mesa-dev] [PATCH] vl: use a separate context for shader based decode

2013-11-06 Thread Aaron Watry
I haven't looked in-depth at the rest of the patch, but I don't see anywhere in vl_mpeg12_destroy that you are actually destroying the context that you create in vl_create_mpeg12_decoder. Would I be correct in assuming that this is leaked memory? --Aaron On Wed, Nov 6, 2013 at 8:13 AM, Christian

Re: [Mesa-dev] [PATCH] vl: use a separate context for shader based decode

2013-11-06 Thread Aaron Watry
On Wed, Nov 6, 2013 at 8:13 AM, Christian König wrote: > From: Christian König > > This makes VDPAU thread save again. > > Signed-off-by: Christian König > --- > src/gallium/auxiliary/vl/vl_mpeg12_decoder.c | 180 > ++- > src/gallium/auxiliary/vl/vl_mpeg12_decoder.h |

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

2013-11-06 Thread Aaron Watry
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 Watry (6): radeon/llvm: fix spelling error radeon/llvm: Free libelf resources radeon/llvm: Free created llvm memory buffer radeonsi/compute

[Mesa-dev] [PATCH 5/6] radeonsi/compute: Dispose of LLVM module after compiling kernels

2013-11-06 Thread Aaron Watry
--- src/gallium/drivers/radeonsi/radeonsi_compute.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c index 28a3f17..6531bcd 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_compute.c +++ b/src/g

[Mesa-dev] [PATCH 1/6] radeon/llvm: fix spelling error

2013-11-06 Thread Aaron Watry
--- src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 286ccdd..57026bf 100644 --- a/src/gallium/drivers/radeon/rade

[Mesa-dev] [PATCH 6/6] gallium/pipe_loader: un-reference udev resources when we're done with them.

2013-11-06 Thread Aaron Watry
--- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index 339d7bf..927fb24 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loade

[Mesa-dev] [PATCH 3/6] radeon/llvm: Free created llvm memory buffer

2013-11-06 Thread Aaron Watry
--- src/gallium/drivers/radeon/radeon_llvm_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/gallium/drivers/radeon/radeon_llvm_util.c index 7192dee..aec5d67 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_util.c +++ b/src/gallium/d

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

2013-11-06 Thread Aaron Watry
--- 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 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_emit.c +++ b/src/galliu

[Mesa-dev] [PATCH 4/6] radeonsi/compute: Free program and program.kernels on shutdown

2013-11-06 Thread Aaron Watry
--- src/gallium/drivers/radeonsi/radeonsi_compute.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c index 265dbd7..28a3f17 100644 --- a/src/gallium/drivers/radeon

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

2013-11-06 Thread Aaron Watry
tabs for spaces. Do you want a v2, or are you happy with the patches assuming that I fix the indentation? --Aaron > > -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

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

2013-11-06 Thread Aaron Watry
Turns out that I don't have commit access to Mesa, just piglit. Feel free to push if they look good. I decided to have some fun and hooked valgrind up to my SI while running a few OpenCL tests in piglit. This is the first batch of fixes. Aaron Watry (6): radeon/llvm: fix spelling

[Mesa-dev] [PATCH 4/6] radeonsi/compute: Free program and program.kernels on shutdown

2013-11-06 Thread Aaron Watry
v2: Fix indentation Reviewed-by: Tom Stellard --- src/gallium/drivers/radeonsi/radeonsi_compute.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c index 265dbd7.

[Mesa-dev] [PATCH 6/6] gallium/pipe_loader: un-reference udev resources when we're done with them.

2013-11-06 Thread Aaron Watry
Reviewed-by: Tom Stellard --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index 339d7bf..927fb24 100644 --- a/src/gallium/auxil

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

2013-11-06 Thread Aaron Watry
v2: Fix indentation Reviewed-by: Tom Stellard --- 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..d2e5642 100644 --- a/src/gallium/dr

[Mesa-dev] [PATCH 1/6] radeon/llvm: fix spelling error

2013-11-06 Thread Aaron Watry
Reviewed-by: Tom Stellard --- src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 286ccdd..57026bf 100644 --- a/src/

[Mesa-dev] [PATCH 5/6] radeonsi/compute: Dispose of LLVM module after compiling kernels

2013-11-06 Thread Aaron Watry
v2: Fix indentation Reviewed-by: Tom Stellard --- src/gallium/drivers/radeonsi/radeonsi_compute.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c index 32d2487..fff9b76 100644 --- a/src/gallium

[Mesa-dev] [PATCH 3/6] radeon/llvm: Free created llvm memory buffer

2013-11-06 Thread Aaron Watry
v2: Fix indentation Reviewed-by: Tom Stellard --- src/gallium/drivers/radeon/radeon_llvm_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/gallium/drivers/radeon/radeon_llvm_util.c index 7192dee..f2b3e13 100644 --- a/src/gallium/drive

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

2013-11-07 Thread Aaron Watry
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.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/dr

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

2013-11-07 Thread Aaron Watry
use memset to initialize to 0's... otherwise code_size and config_size could be uninitialized when read later in this method. It's also hard to do NULL checks on uninitialized pointers. --- src/gallium/drivers/r600/r600_llvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drive

[Mesa-dev] [PATCH 3/3] radeon/llvm: Free elf_buffer after use

2013-11-07 Thread Aaron Watry
Prevents a memory leak. --- 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 d2e5642..e35c212 100644 --- a/src/gallium/drivers/radeon/radeon_llvm

[Mesa-dev] [PATCH 0/3] More radeon/llvm memory leak fixes

2013-11-07 Thread Aaron Watry
mit access, so feel free to push if you don't have any issues. Aaron Watry (3): r600/llvm: initialize radeon_llvm_binary r600/llvm: Free binary.code/binary.config in r600_llvm_compile radeon/llvm: Free elf_buffer after use src/gallium/drivers/r600/r600_llvm.c | 8 src/

Re: [Mesa-dev] [PATCH] radeon/compute: Unconditionally inline all functions

2013-11-14 Thread Aaron Watry
On Thu, Nov 14, 2013 at 10:29 AM, Tom Stellard wrote: > From: Tom Stellard > > We need to do this until function calls are supported. > > https://bugs.freedesktop.org/show_bug.cgi?id=64225 > > CC: "10.0" > --- > src/gallium/drivers/radeon/radeon_llvm_util.c | 24 ++-- > 1 fi

[Mesa-dev] [PATCH 0/3 v2] More radeon/llvm memory leak fixes

2013-11-14 Thread Aaron Watry
(yet), so feel free to push if you don't have any issues. v2: Remove NULL checks in patches 2,3 and fix indentation in patch 1. Aaron Watry (3): r600/llvm: initialize radeon_llvm_binary r600/llvm: Free binary.code/binary.config in r600_llvm_compile radeon/llvm: Free elf_b

[Mesa-dev] [PATCH 3/3] radeon/llvm: Free elf_buffer after use

2013-11-14 Thread Aaron Watry
Prevents a memory leak. v2: Remove null check --- src/gallium/drivers/radeon/radeon_llvm_emit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c index d2e5642..92e7dbc 100644 --- a/src/gallium/driver

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

2013-11-14 Thread Aaron Watry
use memset to initialize to 0's... otherwise code_size and config_size could be uninitialized when read later in this method. It's also hard to do NULL checks on uninitialized pointers. Reviewed-by: Tom Stellard v2: Fix indentation --- src/gallium/drivers/r600/r600_llvm.c | 1 + 1 file changed

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

2013-11-14 Thread Aaron Watry
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. v2: Don't bother checking for null before FREE() --- src/gallium/drivers/r600/r600_llvm.c | 3 +++ 1 file changed,

Re: [Mesa-dev] [PATCH 1/2] glx: Fix build in GLX_DIRECT_RENDERING !GLX_USE_APPLEGL !GLX_USE_DRM case

2014-06-04 Thread Aaron Watry
On Tue, Jun 3, 2014 at 10:26 AM, Jon TURNEY wrote: > On 03/06/2014 15:19, Aaron Watry wrote: >> >> On Tue, Jun 3, 2014 at 8:14 AM, Jon TURNEY >> wrote: >>> >>> Some untangling to fix building in the dri_platform=none, >>> --enable-driglx-

[Mesa-dev] [PATCH] gallivm: Fix build after LLVM commit 211259

2014-06-20 Thread Aaron Watry
Signed-off-by: Aaron Watry --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index df26883..413a0c2 100644 --- a/src/gallium

Re: [Mesa-dev] Static/shared pipe-drivers (was megadriver/pipe-loader-to-all)

2014-06-23 Thread Aaron Watry
On my machine, ${PREFIX}/lib/vdpau contains: libvdpau_gallium.so.1 -> libvdpau_r600.so.1.0.0 libvdpau_r600.so* libvdpau_radeonsi.so* Note that libvdpau_gallium.so.1 is only created when I force an ldconfig on my system (until then, I just have libvdpau_[r600|radeonsi]*) For some reason, while the

Re: [Mesa-dev] Static/shared pipe-drivers (was megadriver/pipe-loader-to-all)

2014-06-23 Thread Aaron Watry
.1.0 radeonsi_dri.so libMesaOpenCL.so.1libvdpau_r600.so.1libvdpau_radeonsi.so libvdpau_radeonsi.so.1.0.0 libMesaOpenCL.so.1.0.0libvdpau_r600.so.1.0 libvdpau_radeonsi.so.1 r600_dri.so awatry@ws-awatry:~/src/mesa/lib/gallium$ On Mon, Jun 23, 2014 at 1:12 PM, Emil Velikov wrote: >

Re: [Mesa-dev] Static/shared pipe-drivers (was megadriver/pipe-loader-to-all)

2014-06-23 Thread Aaron Watry
On Mon, Jun 23, 2014 at 12:10 PM, Ilia Mirkin wrote: > On Mon, Jun 23, 2014 at 1:07 PM, Aaron Watry wrote: >> On my machine, ${PREFIX}/lib/vdpau contains: >> libvdpau_gallium.so.1 -> libvdpau_r600.so.1.0.0 >> libvdpau_r600.so* >> libvdpau_radeonsi.so* >> &

Re: [Mesa-dev] Static/shared pipe-drivers (was megadriver/pipe-loader-to-all)

2014-06-23 Thread Aaron Watry
On Mon, Jun 23, 2014 at 1:54 PM, Emil Velikov wrote: > On 23/06/14 19:31, Aaron Watry wrote: >> Using /usr/local as PREFIX and an empty /usr/local/lib/vdpau directory >> to start, after make install of mesa I end up with >> /usr/local/lib/vdpau/ containing: >> >>

[Mesa-dev] [PATCH] radeon/llvm: Allocate space for kernel metadata operands

2014-07-02 Thread Aaron Watry
to get the kernel without the correct number of attributes led to memory corruption and luxrays crashing out. Fixes the cl/program/execute/attributes.cl piglit test. Signed-off-by: Aaron Watry CC: Tom Stellard Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76223 --- src/gallium/driv

Re: [Mesa-dev] [PATCH] radeon/llvm: Allocate space for kernel metadata operands

2014-07-03 Thread Aaron Watry
On Thu, Jul 3, 2014 at 9:56 AM, Tom Stellard wrote: > On Wed, Jul 02, 2014 at 04:34:24PM -0500, Aaron Watry wrote: >> Previously, we were assuming that kernel metadata nodes only had 1 operand. >> >> Kernels which have attributes can have more than 1, e.g.: >> !0 = met

Re: [Mesa-dev] [PATCH] radeon/llvm: Allocate space for kernel metadata operands

2014-07-03 Thread Aaron Watry
On Thu, Jul 3, 2014 at 11:29 AM, Tom Stellard wrote: > On Thu, Jul 03, 2014 at 10:56:24AM -0400, Tom Stellard wrote: >> On Wed, Jul 02, 2014 at 04:34:24PM -0500, Aaron Watry wrote: >> > Previously, we were assuming that kernel metadata nodes only had 1 operand. >> &

Re: [Mesa-dev] [PATCH] radeon/llvm: Allocate space for kernel metadata operands

2014-07-03 Thread Aaron Watry
for luxrays are now present (at least with >> my own libclc tree), at least with image support disabled in luxrays. >> >> If you enable image support, I believe that it is still going to fail >> due to mismatches/oddness with the number of supported pixel formats. &

Re: [Mesa-dev] [PATCH] radeon/llvm: Fix LLVM diagnostic error reporting

2014-07-14 Thread Aaron Watry
Tested-by and Reviewed-by: Aaron Watry On Mon, Jul 14, 2014 at 3:51 PM, Tom Stellard wrote: > We were trying to print the error message after disposing the > message object. > --- > src/gallium/drivers/radeon/radeon_llvm_emit.c | 11 --- > 1 file changed, 4 insertions(

[Mesa-dev] Clover Platform Naming

2014-07-29 Thread Aaron Watry
Hi list, I was starting to look into getting cppamp-driver-ng working with mesa/clover, and I quickly ran into a question... cppamp-driver-ng explicitly lists which platforms are supported in its OpenCL back-end's source code. I went to add in the Mesa/Clover entries, and discovered that we're ac

Re: [Mesa-dev] Clover Platform Naming

2014-07-30 Thread Aaron Watry
x27;t want to rename clover to reflect what we call it, then maybe I need to submit some patches to cppamp-driver-ng to have them also use the vendor name in the case that the platform name might be ambiguous. --Aaron On Wed, Jul 30, 2014 at 9:05 AM, Tom Stellard wrote: > On Tue, Jul 29,

Re: [Mesa-dev] [PATCH] R600: Expand VSELECT for all types

2013-07-16 Thread Aaron Watry
Looks good to me. I've tested on Cedar (HD5400) with no OpenCL regressions, but cannot test on SI because SETCC still causes issues (see https://bugs.freedesktop.org/show_bug.cgi?id=66175). Once SETCC is fixed for SI, we should probably add SI-CHECK lines to vselect.ll --Aaron On Tue, Jul 16, 2

Re: [Mesa-dev] [PATCH] R600: Expand VSELECT for all types

2013-07-17 Thread Aaron Watry
, Jul 16, 2013 at 8:39 PM, Tom Stellard wrote: > Hi, > > The attached three patches along with this one should fix VSELECT on SI > as well. > > -Tom > > On Tue, Jul 16, 2013 at 05:12:40PM -0500, Aaron Watry wrote: >> Looks good to me. >> >> I've teste

Re: [Mesa-dev] [PATCH 7/7] clover: Sign-extend and zero-extend kernel arguments when required v2

2013-07-17 Thread Aaron Watry
On Tue, Jul 9, 2013 at 11:21 PM, Tom Stellard wrote: > From: Tom Stellard > > v2: > - Extend to target size rather than aligned size > - Support for big-endian > --- > src/gallium/state_trackers/clover/core/kernel.cpp | 58 > -- > src/gallium/state_trackers/clover/core/

Re: [Mesa-dev] Patches: R600: Improve load / store support for 8-bit and 16-bit types

2013-08-12 Thread Aaron Watry
It'll take me a while to attempt to parse everything that's going on in these patches (and your resource descriptor types series that this depends on), but I have sent it all through a piglit run on Evergreen (Cedar). Everything was latest Mesa/LLVM/libclc upstream code as of today. Baseline: 567

Re: [Mesa-dev] Patches: R600: Improve load / store support for 8-bit and 16-bit types

2013-08-13 Thread Aaron Watry
s. And as you said, the descriptors series fixed compute hangs for the 7850 on quite a few kernels which did comparison operations (max/clamp kernels mostly, maybe some min). You can definitely get a tested-by for both the descriptors series and this: Tested-by: Aaron Watry wrote: > It'll

Re: [Mesa-dev] [PATCH] R600: Fix segfault in R600TextureIntrinsicReplacer

2013-08-21 Thread Aaron Watry
on Pass Manager' on module 'radeon'. 1.Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@vp8_loop_filter_all_edges_kernel' Aborted (core dumped) For that you get a: Tested-By: Aaron Watry On Wed, Aug 21, 2013 at 1:33 PM, Tom Ste

Re: [Mesa-dev] [PATCH] r600g/compute: Fix bug in compute memory pool

2013-08-28 Thread Aaron Watry
The changes look good to me... That seems to be a much more sane way to add the item to the beginning of the linked list. I've tested this on CEDAR (Radeon 5400) without any OpenCL regressions, and the only piglit change was that the new piglit test created for this bug now passes. --Aaron On T

Re: [Mesa-dev] [PATCH (9.1)] Revert "r600g: re-enable handling of DISCARD_RANGE, improving performance"

2013-02-20 Thread Aaron Watry
I've managed to capture a trace that loads TF2 to the menu and reproduces some of the flickering. I haven't managed to capture any gameplay yet due to an error in CD Key authentication due to how I'm launching the game. URL: http://www.watrys.net/tf2_menu.trace.xz --Aaron On Wed, Feb 20, 2013

Re: [Mesa-dev] [PATCH] clover: Fix build with LLVM 3.3

2013-02-21 Thread Aaron Watry
Hi Tom, Mesa+Clover does indeed build against master llvm/clang, but I'm having trouble building against it when I try to do a clean build of Piglit. Error received: [ 18%] Built target piglitutil_cl Linking C executable ../../../../../bin/cl-custom-run-simple-kernel /usr/local/lib/libOpenCL.so:

Re: [Mesa-dev] [PATCH] clover: Fix build with LLVM 3.3

2013-02-21 Thread Aaron Watry
On Thu, Feb 21, 2013 at 8:33 AM, Tom Stellard wrote: > On Thu, Feb 21, 2013 at 08:25:20AM -0600, Aaron Watry wrote: > > Hi Tom, > > > > Mesa+Clover does indeed build against master llvm/clang, but I'm having > > trouble building against it when I try to do a clea

Re: [Mesa-dev] [PATCH] clover: Fix build with LLVM 3.3

2013-02-21 Thread Aaron Watry
On Thu, Feb 21, 2013 at 10:06 AM, Tom Stellard wrote: > On Thu, Feb 21, 2013 at 10:02:34AM -0600, Aaron Watry wrote: > > On Thu, Feb 21, 2013 at 8:33 AM, Tom Stellard wrote: > > > > > On Thu, Feb 21, 2013 at 08:25:20AM -0600, Aaron Watry wrote: > > > > Hi T

Re: [Mesa-dev] [PATCH] clover: Fix build with LLVM 3.3

2013-02-22 Thread Aaron Watry
On Fri, Feb 22, 2013 at 12:21 PM, Tom Stellard wrote: > On Thu, Feb 21, 2013 at 08:25:20AM -0600, Aaron Watry wrote: > > Hi Tom, > > > > Mesa+Clover does indeed build against master llvm/clang, but I'm having > > trouble building against it when I try to do a clea

Re: [Mesa-dev] [PATCH 0/9] remove mfeatures.h file

2013-02-26 Thread Aaron Watry
Same error here. Configuration: ./autogen.sh --enable-texture-float --enable-opencl --with-gallium-drivers=r600 --with-dri-drivers=radeon --prefix=/usr/local --Aaron On Tue, Feb 26, 2013 at 11:09 AM, Jordan Justen wrote: > On Sat, Feb 23, 2013 at 7:29 AM, Brian Paul wrote: > > This series re

[Mesa-dev] [PATCH] libclc: Fix libclc build for LLVM 3.3

2013-03-08 Thread Aaron Watry
LLVM moved a bunch of IR-related headers for version 3.3. This fixes the libclc build to follow suit. --- utils/prepare-builtins.cpp | 12 1 file changed, 12 insertions(+) diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp index ae7731b..0141484 100644 --- a/uti

Re: [Mesa-dev] [PATCH] [libclc] configure: Enable building separate libraries for target variants

2013-03-13 Thread Aaron Watry
The python changes in this file look good to me. I haven't done a line-by-line review of the SI changes. I tested this patch and v2 of the related mesa series on r600g (radeon 6850) with a recent LLVM and fresh mesa master as of this evening. No real change in the piglit CL test success/failure ra

[Mesa-dev] [PATCH] libclc: Add max() builtin function

2013-03-14 Thread Aaron Watry
Adds this function for both int and floating data types. --- generic/include/clc/clc.h |2 ++ generic/include/clc/integer/max.h |2 ++ generic/include/clc/integer/max.inc |1 + generic/include/clc/math/max.h |2 ++ generic/include/clc/math/max.inc|1 + gene

[Mesa-dev] [PATCH 1/3] libclc: Fix abs_diff builtin integer function

2013-03-14 Thread Aaron Watry
--- generic/lib/SOURCES |1 + generic/lib/integer/abs_diff.inc |2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/generic/lib/SOURCES b/generic/lib/SOURCES index b593941..a97213b 100644 --- a/generic/lib/SOURCES +++ b/generic/lib/SOURCES @@ -4,6 +4,7 @@ geome

[Mesa-dev] libclc: Improve libclc handling of built-in functions

2013-03-14 Thread Aaron Watry
This series depends on the one-off patch I just sent to add max(). 1) Fix the broken abs_diff integer built-in. 2) Add clamp for both integer and floating types in a new shared/ dir in order to reduce code duplication and improve maintainability. 3) Move the max() function into the shared/ dire

[Mesa-dev] [PATCH 2/3] libclc: Add clamp() builtin for integer/floating point

2013-03-14 Thread Aaron Watry
Created under a new shared/ directory for functions which are available for both integer and floating point types. --- generic/include/clc/clc.h|3 +++ generic/include/clc/shared/clamp.h |5 + generic/include/clc/shared/clamp.inc |1 + generic/lib/SOURCES

[Mesa-dev] [PATCH 3/3] libclc: Move max builtin to shared/

2013-03-14 Thread Aaron Watry
Max(x,y) is available for all integer/floating types. --- generic/include/clc/clc.h |3 +-- generic/include/clc/integer/max.h |2 -- generic/include/clc/integer/max.inc |1 - generic/include/clc/math/max.h |2 -- generic/include/clc/math/max.inc|1 - generi

Re: [Mesa-dev] libclc: Improve libclc handling of built-in functions

2013-03-14 Thread Aaron Watry
PM, Aaron Watry wrote: > This series depends on the one-off patch I just sent to add max(). > > 1) Fix the broken abs_diff integer built-in. > 2) Add clamp for both integer and floating types in a new shared/ dir in > order >to reduce code duplication and improve maintain

[Mesa-dev] [PATCH] libclc: implement rotate builtin

2013-03-23 Thread Aaron Watry
This implementation does a lot of bit shifting and masking. Suffice to say, this is somewhat suboptimal... but it does look to produce correct results (after the piglit tests were corrected for sign extension issues). Someone who knows LLVM better than I could re-write this more efficiently. ---

[Mesa-dev] (no subject)

2013-04-13 Thread Aaron Watry
Implements the min() OpenCL built-in in 2 stages. 1) Implement min() where the two argument types match 2) Make changes to support min(vec,scalar) ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa

[Mesa-dev] [PATCH 1/2] libclc: implement initial version of min()

2013-04-13 Thread Aaron Watry
This doesn't handle the integer cases for min(vector, scalar). --- generic/include/clc/clc.h |1 + generic/include/clc/shared/min.h |5 + generic/include/clc/shared/min.inc |1 + generic/lib/SOURCES|1 + generic/lib/shared/min.cl | 11 +

[Mesa-dev] [PATCH 2/2] libclc: Implement the min(vec, scalar) version of the min builtin.

2013-04-13 Thread Aaron Watry
Checks if the current GENTYPE is scalar, and if not, then defines a separate implementation of the function which casts the second arg to vector before proceeding. --- generic/include/clc/integer/gentype.inc | 23 +++ generic/include/clc/math/gentype.inc|8 g

[Mesa-dev] [PATCH] libclc: Add clamp(vec, scalar, scalar) and max(vec, scalar)

2013-04-13 Thread Aaron Watry
For any GENTYPE that isn't scalar, we need to implement a mixed vector/scalar version of clamp/max. This depends on the min() patches I sent to the list a few minutes ago. --- generic/include/clc/shared/clamp.inc |4 generic/include/clc/shared/max.inc |4 generic/lib/shared/cl

[Mesa-dev] [PATCH] libclc: Rename [add|sub]_sat.ll to [add|sub]_sat_if.ll

2013-04-15 Thread Aaron Watry
configure.py allows overloading *.cl with *.ll, but will only ever build the first file listed in SOURCES of ${file}.cl and ${file}.ll add_sat, sub_sat, (and the soon to be submitted clz) all define interfaces in ${function_name}.ll which are implemented in ${function_name}_impl.ll. Renaming the

[Mesa-dev] [PATCH] libclc: Implement clz() builtin

2013-04-15 Thread Aaron Watry
Squashed commit of the following: commit a0df0a0e86c55c1bdc0b9c0f5a739e5adef4b056 Author: Aaron Watry Date: Mon Apr 15 18:42:04 2013 -0500 libclc: Rename clz.ll to clz_if.ll to ensure it gets built. configure.py treats files that have the same name with the .cl and .ll extensions

Re: [Mesa-dev] [PATCH 11/17] Modified _mesa_buffer_data to use _mesa_align_malloc.

2013-11-25 Thread Aaron Watry
On Sun, Nov 24, 2013 at 11:36 PM, Siavash Eliasi wrote: > --- > src/mesa/main/bufferobj.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c > index b27f592..5581a5d 100644 > --- a/src/mesa/main/bufferobj.c > +++ b/sr

  1   2   3   4   >