[Mesa-dev] [PATCH v3] radeon: Use upload manager for buffer downloads

2014-03-05 Thread Niels Ole Salscheider
Using DMA for reads is much faster. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- src/gallium/drivers/radeon/r600_buffer_common.c | 74 +++-- 1 file changed, 56 insertions(+), 18 deletions(-) diff --git

Re: [Mesa-dev] [PATCH v2] radeon: Use upload manager for buffer downloads

2014-03-05 Thread Niels Ole Salscheider
On Tuesday 04 March 2014, 23:43:01, Marek Olšák wrote: You check for streamout and CP DMA support, but you don't use resource_copy_region if DMA is not supported. The CP DMA and streamout-based buffer copying is only used by resource_copy_region. Oh, right. I initially used

Re: [Mesa-dev] [PATCH] gallium/tgsi: correct typo propagated from NV_vertex_program1_1

2014-03-05 Thread Erik Faye-Lund
On Thu, Feb 6, 2014 at 5:09 PM, Erik Faye-Lund kusmab...@gmail.com wrote: In the specification text of NV_vertex_program1_1, the upper limit of the RCC instruction is written as 1.884467e+19 in scientific notation, but as 0x5F80 in binary. But the binary version translates to 1.84467e+19

Re: [Mesa-dev] [PATCH 02/20] automake: silence folder creation

2014-03-05 Thread Erik Faye-Lund
On Tue, Mar 4, 2014 at 10:12 PM, Emil Velikov emil.l.veli...@gmail.com wrote: There is little gain in printing whenever a folder is created. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/auxiliary/Makefile.am | 8 src/glsl/Makefile.am | 4 ++--

Re: [Mesa-dev] [PATCH 04/20] automake: make install-lib-links less chatty

2014-03-05 Thread Erik Faye-Lund
On Tue, Mar 4, 2014 at 10:12 PM, Emil Velikov emil.l.veli...@gmail.com wrote: There is little point in echoing everything that the script does to stdout. Wrap it in AM_V_GEN so that a reasonable message is printed as a indication of it's invocation. Signed-off-by: Emil Velikov

[Mesa-dev] [PATCH 00/12] Last of the API changes for ARB_separate_shader_objects

2014-03-05 Thread Ian Romanick
This is the last set of core API changes for ARB_separate_shader_objects. The next set of patches will just be in the linker and compiler. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 01/12] glsl: Rewrite unrolled link_invalidate_variable_locations calls as a loop

2014-03-05 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/linker.cpp | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index f6b2661..3bf2789 100644 ---

[Mesa-dev] [PATCH 02/12] glsl: Fix typo

2014-03-05 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Remove extra any and re-word-wrap the comment. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/lower_packed_varyings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsl/lower_packed_varyings.cpp

[Mesa-dev] [PATCH 06/12] mesa/sso: Add gl_pipeline_object parameter to _mesa_use_shader_program

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com Extend use_shader_program to support a different target. Allow to reuse the function to update the pipeline state. Note I bypass the flush when target isn't current. Maybe it would be better to create a new UseProgramStages driver function This was

[Mesa-dev] [PATCH 12/12] mesa/sso: Implement ValidateProgramPipeline

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com Implementation note: I don't use context for ralloc (don't know how). The check on PROGRAM_SEPARABLE flags is also done when the pipeline isn't bound. It doesn't make any sense in a DSA style API. Maybe we could replace _mesa_validate_program by

[Mesa-dev] [PATCH 08/12] mesa/sso: Implement _mesa_BindProgramPipeline

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com Test become green in piglit: The updated ext_transform_feedback-api-errors:useprogstage_noactive useprogstage_active bind_pipeline arb_separate_shader_object-GetProgramPipelineiv arb_separate_shader_object-IsProgramPipeline For the moment I reuse

[Mesa-dev] [PATCH 04/12] mesa/sso: rename Shader to the pointer _Shader

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com Basically a sed but shaderapi.c and get.c. get.c = GL_CURRENT_PROGAM always refer to the old UseProgram behavior shaderapi.c = the old api stil update the Shader object directly V2: formatting improvement V3 (idr): * Rebase fixes after a block of

[Mesa-dev] [PATCH 05/12] meta/sso: Update meta to save and restore SSO state.

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com save and restore _Shader/Pipeline binding point. Rational we don't want any conflict when the program will be unattached. V2: formatting improvement V3 (idr): * Build fix. The original patch added calls to _mesa_use_shader_program with 4

[Mesa-dev] [PATCH 03/12] mesa/sso: replace Shader binding point with _Shader

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com To avoid NULL pointer check a default pipeline object is installed in _Shader when no program is current The spec say that UseProgram/UseShaderProgramEXT/ActiveProgramEXT got an higher priority over the pipeline object. When default program is

[Mesa-dev] [PATCH 09/12] mesa/sso: Implement GL_PROGRAM_PIPELINE_BINDING for glGet

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com Reviewed-by: Ian Romanick ian.d.roman...@intel.com --- src/mesa/main/get.c | 9 + src/mesa/main/get_hash_params.py | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index

[Mesa-dev] [PATCH 11/12] mesa/sso: Add _mesa_sampler_uniforms_pipeline_are_valid

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com This is much like _mesa_sampler_uniforms_are_valid, but it operates across an entire pipeline object. This function differs from _mesa_sampler_uniforms_are_valid in that it directly creates the gl_pipeline_object::InfoLog instead of writing to some

[Mesa-dev] [PATCH 07/12] mesa/sso: Implement _mesa_UseProgramStages

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com Now arb_separate_shader_object-GetProgramPipelineiv should pass. V3 (idr): * Change spec references to core OpenGL versions instead of issues in the extension spec. * Split out from previous uber patch. v4 (idr): Use _mesa_has_geometry_shaders

[Mesa-dev] [PATCH 10/12] mesa/sso: Add gl_pipeline_object::InfoLog support

2014-03-05 Thread Ian Romanick
From: Gregory Hainaut gregory.hain...@gmail.com V2 (idr): * Keep the behavior of other info logs in Mesa: and empty info log reports a GL_INFO_LOG_LENGTH of zero. * Use a NULL pointer to denote an empty info log. * Split out from previous uber patch. Reviewed-by: Ian Romanick

[Mesa-dev] [PATCH] nv50, nvc0: choose storage type after ms has been initialized

2014-03-05 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Noticed by inspection, untested. Would be interesting to see if this fixes anything. src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 4 ++-- src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 4 ++-- 2 files changed, 4 insertions(+), 4

Re: [Mesa-dev] [PATCH 02/20] automake: silence folder creation

2014-03-05 Thread Emil Velikov
On 05/03/14 10:11, Erik Faye-Lund wrote: On Tue, Mar 4, 2014 at 10:12 PM, Emil Velikov emil.l.veli...@gmail.com wrote: There is little gain in printing whenever a folder is created. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/auxiliary/Makefile.am | 8

Re: [Mesa-dev] [PATCH 2/2] clover: Fix building with latest llvm

2014-03-05 Thread Marek Olšák
Same here. I'll try to make clean in the LLVM tree. Marek On Wed, Mar 5, 2014 at 3:52 AM, Michel Dänzer mic...@daenzer.net wrote: On Mit, 2014-03-05 at 00:43 +0100, Marek Olšák wrote: I'm not an automake expect, but this might need to be done for gallivm too. It currently fails to compile

[Mesa-dev] [Bug 71547] compilation failure :#error SSE4.1 instruction set not enabled

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71547 --- Comment #6 from David okias Heidelberger david.heidelber...@ixit.cz --- Patch [1] tested on amd64, with both SSE4.1 enabled and -mno-sse4.1. Both passed correctly without additional tweaking. Thank you Matt Tested-by: David Heidelberger

Re: [Mesa-dev] [PATCH 04/20] automake: make install-lib-links less chatty

2014-03-05 Thread Emil Velikov
On 05/03/14 10:13, Erik Faye-Lund wrote: On Tue, Mar 4, 2014 at 10:12 PM, Emil Velikov emil.l.veli...@gmail.com wrote: There is little point in echoing everything that the script does to stdout. Wrap it in AM_V_GEN so that a reasonable message is printed as a indication of it's invocation.

Re: [Mesa-dev] [PATCH 04/20] automake: make install-lib-links less chatty

2014-03-05 Thread Erik Faye-Lund
On Wed, Mar 5, 2014 at 12:42 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 05/03/14 10:13, Erik Faye-Lund wrote: On Tue, Mar 4, 2014 at 10:12 PM, Emil Velikov emil.l.veli...@gmail.com wrote: There is little point in echoing everything that the script does to stdout. Wrap it in AM_V_GEN

[Mesa-dev] [Bug 75212] Mesa selects wrong DRI driver

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75212 Eero Tamminen eero.t.tammi...@intel.com changed: What|Removed |Added Status|RESOLVED|VERIFIED ---

Re: [Mesa-dev] [PATCH 08/20] gallium/targets: drop link generation for non DRI targets

2014-03-05 Thread Emil Velikov
On 05/03/14 07:55, Christian König wrote: Am 04.03.2014 22:12, schrieb Emil Velikov: All three (xvmc, vdpau and omx) do not have an alternative loading similar to the dri modules. Thus one needs to explicitly install them in order to use/test them. It's not mainline yet, but at least I'm

Re: [Mesa-dev] [PATCH v3] radeon: Use upload manager for buffer downloads

2014-03-05 Thread Marek Olšák
Thanks. I'm going to push this shortly. Marek On Wed, Mar 5, 2014 at 9:05 AM, Niels Ole Salscheider niels_...@salscheider-online.de wrote: Using DMA for reads is much faster. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de ---

[Mesa-dev] [PATCH] automake: make clean the correct git_sha1.h.tmp

2014-03-05 Thread Emil Velikov
When building out of tree, the file ends up dangling which may result in a binary with the old git sha. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/mesa/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am

[Mesa-dev] [Bug 75797] New: EGL application crashes with BadDrawable at SwapBuffers

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75797 Priority: medium Bug ID: 75797 Assignee: mesa-dev@lists.freedesktop.org Summary: EGL application crashes with BadDrawable at SwapBuffers Severity: normal Classification:

[Mesa-dev] [PATCH 1/2] glapi: replace 'user' with 'context' in u_current.[ch] code

2014-03-05 Thread Brian Paul
To make the functions more understandable. --- src/mapi/glapi/glapi.c |2 +- src/mapi/mapi_glapi.c |2 +- src/mapi/u_current.c | 32 src/mapi/u_current.h | 20 ++-- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git

[Mesa-dev] [PATCH 2/2] glapi: rename u_current dispatch table functions

2014-03-05 Thread Brian Paul
Put table in the names to make things more understandable. --- src/mapi/entry.c |4 ++-- src/mapi/glapi/glapi.c |2 +- src/mapi/mapi.c|2 +- src/mapi/mapi_glapi.c |2 +- src/mapi/u_current.c |6 +++--- src/mapi/u_current.h | 10 +- 6 files changed,

[Mesa-dev] [Bug 70410] egl-static/Makefile: linking fails with llvm = 3.4

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70410 --- Comment #20 from Laurent carlier lordhea...@gmail.com --- Patch increase size a lot. Linking failure is fixed when enable-shared-llvm option isn't enabled. Something is weird somewhere -- You are receiving this mail because: You are the

Re: [Mesa-dev] [PATCH] mesa: remove remaining uses of _glthread_GetID()

2014-03-05 Thread Jose Fonseca
- Original Message - It was really only used in the radeon driver for a debug printf. And evidently, libGL.so referenced it just to work around some sort of linker issue. This patch removes the two calls to the function and the function itself. Fixes undefined _glthread_GetID

[Mesa-dev] [PATCH] mesa: fix unpack_ubyte_ARGB4444_REV()

2014-03-05 Thread Brian Paul
This was overlooked in 7cc9df4b8a1c. Spotted by Chia-I Wu. --- src/mesa/main/format_unpack.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index d8bf57d..f9c42e7 100644 ---

Re: [Mesa-dev] [PATCH] mesa: fix packing/unpacking for MESA_FORMAT_A4R4G4B4_UNORM

2014-03-05 Thread Brian Paul
On 03/04/2014 08:17 PM, Chia-I Wu wrote: On Wed, Mar 5, 2014 at 12:10 AM, Brian Paul bri...@vmware.com wrote: Spotted by Chia-I Wu. unpack_ubyte_ARGB_REV() needs the same care too. With that fixed, this patch is Reviewed-by: Chia-I Wu o...@lunarg.com I missed that function in the

Re: [Mesa-dev] [PATCH] mesa: fix packing/unpacking for MESA_FORMAT_A4R4G4B4_UNORM

2014-03-05 Thread Brian Paul
On 03/05/2014 09:02 AM, Brian Paul wrote: On 03/04/2014 08:17 PM, Chia-I Wu wrote: On Wed, Mar 5, 2014 at 12:10 AM, Brian Paul bri...@vmware.com wrote: Spotted by Chia-I Wu. unpack_ubyte_ARGB_REV() needs the same care too. With that fixed, this patch is Reviewed-by: Chia-I Wu

[Mesa-dev] Overflow of intel vertex buffer

2014-03-05 Thread Hodek, Roman
Hello all! While debugging an application crash, we found a problem in mesa i915 buffer allocation, and we think we at least have a workaround for this. In more detail, the vertex buffers used in src/mesa/drivers/dri/i915/*.c, which are pointed to by intel-prim.vb, usually have a size of

Re: [Mesa-dev] [PATCH] nv50, nvc0: choose storage type after ms has been initialized

2014-03-05 Thread Ilia Mirkin
On Wed, Mar 5, 2014 at 5:37 AM, Ilia Mirkin imir...@alum.mit.edu wrote: Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Noticed by inspection, untested. Would be interesting to see if this fixes anything. I noticed that the nvc0 bit is bogus -- mt-ms_x/y aren't used to determine ms there

Re: [Mesa-dev] [PATCH 03/12] mesa/sso: replace Shader binding point with _Shader

2014-03-05 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: From: Gregory Hainaut gregory.hain...@gmail.com To avoid NULL pointer check a default pipeline object is installed in _Shader when no program is current The spec say that UseProgram/UseShaderProgramEXT/ActiveProgramEXT got an higher priority over

Re: [Mesa-dev] [PATCH 07/12] mesa/sso: Implement _mesa_UseProgramStages

2014-03-05 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: From: Gregory Hainaut gregory.hain...@gmail.com Now arb_separate_shader_object-GetProgramPipelineiv should pass. V3 (idr): * Change spec references to core OpenGL versions instead of issues in the extension spec. * Split out from previous uber

Re: [Mesa-dev] [PATCH 03/12] mesa/sso: replace Shader binding point with _Shader

2014-03-05 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: From: Gregory Hainaut gregory.hain...@gmail.com To avoid NULL pointer check a default pipeline object is installed in _Shader when no program is current diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index d05649c..8a03afd 100644

Re: [Mesa-dev] [PATCH 12/12] mesa/sso: Implement ValidateProgramPipeline

2014-03-05 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: From: Gregory Hainaut gregory.hain...@gmail.com Implementation note: I don't use context for ralloc (don't know how). The check on PROGRAM_SEPARABLE flags is also done when the pipeline isn't bound. It doesn't make any sense in a DSA style API.

Re: [Mesa-dev] [PATCH 00/12] Last of the API changes for ARB_separate_shader_objects

2014-03-05 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: This is the last set of core API changes for ARB_separate_shader_objects. The next set of patches will just be in the linker and compiler. Assuming my clarification restatement of the comment about ctx-Shader wasn't misinformed, all the uncommented

Re: [Mesa-dev] [PATCH] gallium/util: Fix memory leak

2014-03-05 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Wed, Mar 5, 2014 at 12:20 AM, Aaron Watry awa...@gmail.com wrote: Fix a leaked vertex shader in u_blitter.c Signed-off-by: Aaron Watry awa...@gmail.com CC: 10.1 mesa-sta...@lists.freedesktop.org ---

[Mesa-dev] [Bug 75814] New: Heap-buffer-overflow WRITE in memcpy_texture

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75814 Priority: medium Bug ID: 75814 Assignee: mesa-dev@lists.freedesktop.org Summary: Heap-buffer-overflow WRITE in memcpy_texture Severity: normal Classification: Unclassified

Re: [Mesa-dev] [PATCH] mesa: fix unpack_ubyte_ARGB4444_REV()

2014-03-05 Thread Anuj Phogat
On Wed, Mar 5, 2014 at 8:02 AM, Brian Paul bri...@vmware.com wrote: This was overlooked in 7cc9df4b8a1c. Spotted by Chia-I Wu. --- src/mesa/main/format_unpack.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/format_unpack.c

[Mesa-dev] [PATCH 1/2] glapi: use 'Mesa' in error messages

2014-03-05 Thread Brian Paul
A user would have no idea what _glthread_ is. This removes the last remaining instance of the _glthread_ string in Mesa. --- src/mapi/u_thread.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mapi/u_thread.h b/src/mapi/u_thread.h index 0fc9392..78f2269 100644

[Mesa-dev] [PATCH 2/2] glapi: remove u_mutex wrapper code, use c99 thread mutexes directly

2014-03-05 Thread Brian Paul
--- src/mapi/mapi.c | 10 +- src/mapi/stub.c |6 +++--- src/mapi/u_current.c |6 +++--- src/mapi/u_execmem.c |6 +++--- src/mapi/u_thread.h | 10 -- 5 files changed, 14 insertions(+), 24 deletions(-) diff --git a/src/mapi/mapi.c b/src/mapi/mapi.c index

[Mesa-dev] [PATCH] glsl: fix compiler warnings in link_uniforms.cpp

2014-03-05 Thread Brian Paul
With a non-debug build, gcc has two complaints: 1. 'found' var not used. Silence with '(void) found;' 2. 'id' not initialized. It's assigned by the UniformHash-get() call, actually. But init it to zero to silence gcc. --- src/glsl/link_uniforms.cpp |3 ++- 1 file changed, 2

[Mesa-dev] [PATCH 2/2] i965: Use the render cache tracker in more places to skip mi_flush()es.

2014-03-05 Thread Eric Anholt
Now you can call the blit functions without worrying about flushing either too much or too little. --- src/mesa/drivers/dri/i965/intel_blit.c | 8 +--- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 20 2 files changed, 5 insertions(+), 23 deletions(-)

[Mesa-dev] [PATCH 1/2] i965: Fix render-to-texture in non-FinishRenderTexture cases.

2014-03-05 Thread Eric Anholt
We've had several problems now with FinishRenderTexture not getting called enough, and we're ready to just give up on it ever doing what we need. In particular, an upcoming Steam title had rendering bugs that could be fixed by always_flush_cache=true. Instead of hoping Mesa core can figure out

Re: [Mesa-dev] [PATCH 2/2] i965: Use the render cache tracker in more places to skip mi_flush()es.

2014-03-05 Thread Kenneth Graunke
On 03/05/2014 04:17 PM, Eric Anholt wrote: Now you can call the blit functions without worrying about flushing either too much or too little. --- src/mesa/drivers/dri/i965/intel_blit.c | 8 +--- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 20 2

Re: [Mesa-dev] [PATCH 1/2] i965: Fix render-to-texture in non-FinishRenderTexture cases.

2014-03-05 Thread Kenneth Graunke
On 03/05/2014 04:17 PM, Eric Anholt wrote: We've had several problems now with FinishRenderTexture not getting called enough, and we're ready to just give up on it ever doing what we need. In particular, an upcoming Steam title had rendering bugs that could be fixed by

Re: [Mesa-dev] [PATCH] glsl: fix compiler warnings in link_uniforms.cpp

2014-03-05 Thread Matt Turner
On Wed, Mar 5, 2014 at 3:42 PM, Brian Paul bri...@vmware.com wrote: With a non-debug build, gcc has two complaints: 1. 'found' var not used. Silence with '(void) found;' 2. 'id' not initialized. It's assigned by the UniformHash-get() call, actually. But init it to zero to silence gcc.

[Mesa-dev] [PATCH 1/3] radeon: Rename struct radeon_llvm_binary to radeon_shader_binary

2014-03-05 Thread Tom Stellard
And move its definition into r600_pipe_common.h; This struct is a just a container for shader code and has nothing to do with LLVM. --- src/gallium/drivers/r600/r600_llvm.c | 4 ++-- src/gallium/drivers/radeon/Makefile.am| 1 + src/gallium/drivers/radeon/r600_pipe_common.h |

[Mesa-dev] [PATCH 3/3] clover: Inline all functions for drivers that don't support subroutines

2014-03-05 Thread Tom Stellard
--- src/gallium/drivers/radeon/radeon_llvm_util.c | 35 -- .../state_trackers/clover/core/compiler.hpp| 3 +- src/gallium/state_trackers/clover/core/device.cpp | 6 +++ src/gallium/state_trackers/clover/core/device.hpp | 1 +

[Mesa-dev] [PATCH 2/3] radeon/llvm: Factor elf parsing code out into its own function

2014-03-05 Thread Tom Stellard
--- src/gallium/drivers/radeon/Makefile.sources | 1 + src/gallium/drivers/radeon/radeon_elf_util.c | 90 +++ src/gallium/drivers/radeon/radeon_elf_util.h | 39 src/gallium/drivers/radeon/radeon_llvm_emit.c | 53 +--- 4 files changed, 132

[Mesa-dev] [PATCH] R600/SI: Custom lower i1 stores

2014-03-05 Thread Tom Stellard
These are sometimes created by the shrink to boolean optimization in the globalopt pass. --- lib/Target/R600/SIISelLowering.cpp | 6 ++ test/CodeGen/R600/store.ll | 23 --- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] R600/SI: Custom lower i1 stores

2014-03-05 Thread Michel Dänzer
On Mit, 2014-03-05 at 21:35 -0500, Tom Stellard wrote: These are sometimes created by the shrink to boolean optimization in the globalopt pass. Reviewed-by: Michel Dänzer michel.daen...@amd.com -- Earthling Michel Dänzer| http://www.amd.com Libre software

[Mesa-dev] [Bug 75226] Dark rendering of War for the Overworld

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75226 Chia-I Wu olva...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 1/2] glapi: replace 'user' with 'context' in u_current.[ch] code

2014-03-05 Thread Chia-I Wu
On Wed, Mar 5, 2014 at 10:48 PM, Brian Paul bri...@vmware.com wrote: To make the functions more understandable. Both patches are Reviewed-by: Chia-I Wu o...@lunarg.com --- src/mapi/glapi/glapi.c |2 +- src/mapi/mapi_glapi.c |2 +- src/mapi/u_current.c | 32

Re: [Mesa-dev] [PATCH 1/2] glapi: use 'Mesa' in error messages

2014-03-05 Thread Chia-I Wu
On Thu, Mar 6, 2014 at 7:06 AM, Brian Paul bri...@vmware.com wrote: A user would have no idea what _glthread_ is. This removes the last remaining instance of the _glthread_ string in Mesa. Reviewed-by: Chia-I Wu o...@lunarg.com --- src/mapi/u_thread.h |6 +++--- 1 file changed, 3

Re: [Mesa-dev] [PATCH 2/2] glapi: remove u_mutex wrapper code, use c99 thread mutexes directly

2014-03-05 Thread Chia-I Wu
On Thu, Mar 6, 2014 at 7:06 AM, Brian Paul bri...@vmware.com wrote: --- src/mapi/mapi.c | 10 +- src/mapi/stub.c |6 +++--- src/mapi/u_current.c |6 +++--- src/mapi/u_execmem.c |6 +++--- src/mapi/u_thread.h | 10 -- 5 files changed, 14

[Mesa-dev] [PATCH] mesa/st: only compare the current scissor

2014-03-05 Thread Ilia Mirkin
sizeof(scissor) returns the size of the full array rather than a single element. Fix it to consider just the one element. Fixes: 0705fa35cdaf15ec969c28dc85e88b8be1149a3b Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Noticed this when playing with valgrind for unrelated reasons. Seems

[Mesa-dev] [PATCH] nouveau: fix fence waiting logic in screen destroy

2014-03-05 Thread Ilia Mirkin
nouveau_fence_wait has the expectation that an external entity is holding onto the fence being waited on, not that it is merely held onto by the current pointer. Fixes a use-after-free in nouveau_fence_wait when used on the screen's current fence. Bugzilla:

[Mesa-dev] [PATCH v2] nouveau: add valid range tracking to nouveau_buffer

2014-03-05 Thread Ilia Mirkin
This logic is borrowed from the radeon code. The transfer logic will only get called for PIPE_BUFFER resources, so it shouldn't be necessary to worry about them becoming render targets. Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- This was re-tested by someone on both nv50 and nvc0. The

[Mesa-dev] [PATCH 2/2] glsl: Improve debug output and variable names for opt_dead_code_local.

2014-03-05 Thread Eric Anholt
I know this code has confused others, and it confused me 3 years later, too. --- src/glsl/opt_dead_code_local.cpp | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/glsl/opt_dead_code_local.cpp b/src/glsl/opt_dead_code_local.cpp index

[Mesa-dev] [PATCH 1/2] glsl: Skip making a temporary for assignments when we don't need one.

2014-03-05 Thread Eric Anholt
While we wish our optimization passes could identify all the cases where we can coalesce our variables, we miss out on a lot of opportunities. total instructions in shared programs: 1673849 - 1673166 (-0.04%) instructions in affected programs: 299521 - 298838 (-0.23%) GAINED: