Re: [Mesa-dev] [PATCH resend] mesa: Add core support for the GL_AMD_performance_monitor extension.

2013-04-13 Thread Christoph Bumiller
On 12.04.2013 21:14, Kenneth Graunke wrote: This provides an interface for applications (and OpenGL-based tools) to access GPU performance counters. Since the exact performance counters available vary between vendors and hardware generations, the extension provides an API the application can

[Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color

2013-04-13 Thread Christoph Bumiller
From: Christoph Bumiller christoph.bumil...@speed.at This is the only sane solution for nv50 and nvc0 (really, trust me), but since on other hardware the border colour is tightly coupled with texture state they'd have to undo the swizzle, so I've added a cap. The name of the cap could be changed

[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

[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

[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

Re: [Mesa-dev] [PATCH] r600g: Fix UMAD on Cayman

2013-04-13 Thread Martin Andersson
On Sat, Apr 13, 2013 at 4:23 AM, Vadim Girlin vadimgir...@gmail.com wrote: On 04/12/2013 11:36 PM, Martin Andersson wrote: I have made some progress with this issue. Vadim, I did as you suggested and tried to mimic the output from the shader analyser tool. I used your patch as a base and

Re: [Mesa-dev] [PATCH resend] mesa: Add core support for the GL_AMD_performance_monitor extension.

2013-04-13 Thread Christoph Bumiller
On 12.04.2013 21:14, Kenneth Graunke wrote: This provides an interface for applications (and OpenGL-based tools) to access GPU performance counters. Since the exact performance counters available vary between vendors and hardware generations, the extension provides an API the application can

Re: [Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color

2013-04-13 Thread Marek Olšák
PIPE_CAP_TEXTURE_SWIZZLE_AFFECTS_BORDER_COLOR would be a better name (note the meaning is inverted). Other than that, this looks good. Marek On Sat, Apr 13, 2013 at 4:31 PM, Christoph Bumiller e0425...@student.tuwien.ac.at wrote: From: Christoph Bumiller christoph.bumil...@speed.at This is