Re: [Mesa-dev] [PATCH 2/2] mesa: Add performance debug for meta code.

2013-04-19 Thread Kenneth Graunke
On 04/19/2013 11:35 AM, Eric Anholt wrote: I noticed a fallback in regnum through sysprof, and wanted a nicer way to get information about it. --- src/mesa/drivers/common/meta.c | 28 +--- src/mesa/main/errors.h | 10 ++ 2 files changed, 35 insertio

Re: [Mesa-dev] [PATCH v3] R600/SI: Add pattern for AMDGPUurecip

2013-04-19 Thread Tom Stellard
On Thu, Apr 11, 2013 at 10:12:01AM +0200, Christian König wrote: > Am 10.04.2013 18:50, schrieb Tom Stellard: > >On Wed, Apr 10, 2013 at 05:59:48PM +0200, Michel Dänzer wrote: > >>[SNIP] > >We should start using the updated pattern syntax for all new patterns. > >This means replacing register class

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

2013-04-19 Thread Tom Stellard
I've pushed all of your libclc patches to my repo. If I missed one, let me know. Thanks for the patches! -Tom On Sat, Apr 13, 2013 at 11:32:18AM -0500, Aaron Watry wrote: > For any GENTYPE that isn't scalar, we need to implement a mixed > vector/scalar version of clamp/max. > > This depends on

Re: [Mesa-dev] [PATCH] radeon/llvm: Use LLVM C API for compiling LLVM IR to ISA.

2013-04-19 Thread Tom Stellard
On Wed, Apr 17, 2013 at 07:54:32AM +0200, Mathias Fröhlich wrote: > > Tom, > > > -class LLVMEnsureMultithreaded { > > -public: > > - LLVMEnsureMultithreaded() > > - { > > - llvm_start_multithreaded(); > > - } > > -}; > > - > > -static LLVMEnsureMultithreaded lLVMEnsureMultithreaded; >

Re: [Mesa-dev] [PATCH 5/6] configure: remove IN_DRI_DRIVER

2013-04-19 Thread Brian Paul
On 04/19/2013 01:56 PM, Andreas Boll wrote: From: Brian Paul I don't recall authoring this particular patch. But AFAICT, IN_DRI_DRIVER is no loger used, as you indidate. -Brian Not used anymore. v2: Andreas Boll - split patch into two patches - remove more unused code ---

Re: [Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Marek Olšák
Please don't add any new environment variables and use R600_DEBUG instead. The other environment variables are deprecated. There is a table for R600_DEBUG in r600_pipe.c and it even comes with a help feature: R600_DEBUG=help Marek On Fri, Apr 19, 2013 at 4:48 PM, Vadim Girlin wrote: > Hi, > > I

[Mesa-dev] [PATCH 7/6] scons: remove IN_DRI_DRIVER

2013-04-19 Thread Andreas Boll
Not used anymore. --- Note: Untested src/mesa/SConscript |1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/SConscript b/src/mesa/SConscript index 3cd0f87..b87e40d 100644 --- a/src/mesa/SConscript +++ b/src/mesa/SConscript @@ -31,7 +31,6 @@ if env['platform'] == 'windows': e

Re: [Mesa-dev] i915c vs i915g piglit run

2013-04-19 Thread Kenneth Graunke
On 04/19/2013 11:07 AM, Marek Olšák wrote: It depends on what you need the sw fallback for. Stippling and smoothing is accelerated. Maybe emulating fragment shaders with too many instructions? Marek Yeah - it needs to correctly fall back to software for shaders that exceed instruction limits.

Re: [Mesa-dev] [PATCH 6/6] build: remove unused API_DEFINES

2013-04-19 Thread Matt Turner
On Fri, Apr 19, 2013 at 12:56 PM, Andreas Boll wrote: > --- > configure.ac |3 --- > src/glsl/Makefile.am |3 +-- > src/mesa/Makefile.am |2 +- > src/mesa/drivers/dri/common/Makefile.am|1 - > src/mesa/d

[Mesa-dev] [PATCH 6/6] build: remove unused API_DEFINES

2013-04-19 Thread Andreas Boll
--- configure.ac |3 --- src/glsl/Makefile.am |3 +-- src/mesa/Makefile.am |2 +- src/mesa/drivers/dri/common/Makefile.am|1 - src/mesa/drivers/dri/nouveau/Makefile.am |1 - src/mesa/drivers/dri/r20

[Mesa-dev] [PATCH 5/6] configure: remove IN_DRI_DRIVER

2013-04-19 Thread Andreas Boll
From: Brian Paul Not used anymore. v2: Andreas Boll - split patch into two patches - remove more unused code --- configure.ac | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index cdc8fd9..228c324 100644 --- a/confi

[Mesa-dev] [PATCH 4/6] configure: remove FEATURE_GL/ES1/ES2

2013-04-19 Thread Andreas Boll
From: Brian Paul Not used anymore. v2: Andreas Boll - split patch into two patches --- configure.ac | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 50e60f6..cdc8fd9 100644 --- a/configure.ac +++ b/configure.ac @@ -677,17

[Mesa-dev] [PATCH 3/6] intel: use automake conditionals for defining FEATURE_{ES1, ES2}

2013-04-19 Thread Andreas Boll
Removes the need of API_DEFINES. --- src/mesa/drivers/dri/i915/Makefile.am | 11 ++- src/mesa/drivers/dri/i965/Makefile.am | 11 ++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i915/Makefile.am b/src/mesa/drivers/dri/i915/Makefile.am in

[Mesa-dev] [PATCH 2/6] egl-static: use automake conditionals for defining FEATURE_{GL, ES1, ES2}

2013-04-19 Thread Andreas Boll
Removes the need of API_DEFINES. --- src/gallium/targets/egl-static/Makefile.am | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium/targets/egl-static/Makefile.am b/src/gallium/targets/egl-static/Makefile.am index 31dbc79..c68ed11 100644 --- a/src/galliu

[Mesa-dev] [PATCH 1/6] intel: remove executable bit from C file

2013-04-19 Thread Andreas Boll
--- 0 files changed mode change 100755 => 100644 src/mesa/drivers/dri/intel/intel_extensions.c diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c old mode 100755 new mode 100644 -- 1.7.10.4 ___

[Mesa-dev] [PATCH 0/6] remove API_DEFINES and IN_DRI_DRIVER

2013-04-19 Thread Andreas Boll
You can find these patches on this branch: http://cgit.freedesktop.org/~ab/mesa/log/?h=remove-api_defines Although the first patch doesn't really belong to this series, I've found it while working on it. Andreas. Andreas Boll (4): intel: remove executable bit from C file egl-static: use auto

[Mesa-dev] [PATCH 17/17] glsl linker: compare interface blocks during interstage linking

2013-04-19 Thread Jordan Justen
Verify that interface blocks match when linking separate shader stages into a program. Fixes piglit glsl-1.50 tests: * linker/interface-blocks-vs-fs-member-count-mismatch.shader_test * linker/interface-blocks-vs-fs-member-order-mismatch.shader_test Signed-off-by: Jordan Justen --- src/glsl/inte

[Mesa-dev] [PATCH 15/17] glsl linker: support arrays of interface block instances

2013-04-19 Thread Jordan Justen
With this change we now support interface block arrays. For example, cases like this: out block_name { float f; } block_instance[2]; This allows Mesa to pass the piglit glsl-1.50 test: * execution/interface-blocks-complex-vs-fs.shader_test Signed-off-by: Jordan Justen --- src/glsl/lower_na

[Mesa-dev] [PATCH 16/17] glsl linker: compare interface blocks during intrastage linking

2013-04-19 Thread Jordan Justen
Verify that interface blocks match when combining compilation units at the same stage. (For example, when merging all vertex shaders.) Fixes piglit glsl-1.50 test: * linker/interface-blocks-multiple-vs-member-count-mismatch.shader_test Signed-off-by: Jordan Justen --- src/glsl/Makefile.sources

[Mesa-dev] [PATCH 14/17] glsl link_varyings: link interface blocks using the block name

2013-04-19 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/glsl/link_varyings.cpp | 33 + 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 04c9fdd..b374049 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/gls

[Mesa-dev] [PATCH 12/17] glsl ast_to_hir: support in/out for interface blocks

2013-04-19 Thread Jordan Justen
Signed-off-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/glsl/ast_to_hir.cpp | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 25fcee4..8005fbd 100644 --- a/src/glsl/ast_to_hir.cpp

[Mesa-dev] [PATCH 08/17] glsl parser: allow in & out for interface block members

2013-04-19 Thread Jordan Justen
Previously uniform blocks allowed for the 'uniform' keyword to be used with members of a uniform blocks. With interface blocks 'in' can be used on 'in' interface block members and 'out' can be used on 'out' interface block members. The basic_interface_block rule will verify that the same qualifier

[Mesa-dev] [PATCH 09/17] glsl_symbol_table: add interface block namespaces

2013-04-19 Thread Jordan Justen
For interface blocks, there are three separate namespaces for uniform, input and output blocks. Signed-off-by: Jordan Justen --- src/glsl/glsl_symbol_table.cpp | 84 ++-- src/glsl/glsl_symbol_table.h |4 ++ 2 files changed, 85 insertions(+), 3 deletion

[Mesa-dev] [PATCH 07/17] glsl ast_to_hir: reject interpolation qualifiers for uniform blocks

2013-04-19 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/glsl/ast_to_hir.cpp |6 ++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 40f3188..612b3e4 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -4187,6 +4187,12 @@ ast_process_stru

[Mesa-dev] [PATCH 11/17] glsl ast_to_hir: reject row/column_major for in/out interface blocks

2013-04-19 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/glsl/ast_to_hir.cpp |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 9913309..25fcee4 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -4178,7 +4178,11 @@ a

[Mesa-dev] [PATCH 10/17] glsl ast_to_hir: move uniform block symbols to interface blocks namespace

2013-04-19 Thread Jordan Justen
Uniform/interface blocks are a separate namespace from types. Signed-off-by: Jordan Justen --- src/glsl/ast_to_hir.cpp |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 612b3e4..9913309 100644 --- a/src/glsl/ast_to_hir.

[Mesa-dev] [PATCH 06/17] glsl parser: handle interface block member qualifier

2013-04-19 Thread Jordan Justen
An interface block member may specify the type: in { in vec4 in_var_with_qualifier; }; When specified with the member, it must match the same type as interface block type. It can also omit the qualifier: uniform { vec4 uniform_var_without_qualifier; }; When the type is not specified with

[Mesa-dev] [PATCH 13/17] glsl linker: remove interface block instance names

2013-04-19 Thread Jordan Justen
Convert interface blocks with instance names into flat interface blocks without an instance name. Signed-off-by: Jordan Justen --- src/glsl/Makefile.sources |1 + src/glsl/ir_optimization.h|1 + src/glsl/linker.cpp |6 + src/glsl/

[Mesa-dev] [PATCH 05/17] glsl parser: on desktop GL require GLSL 150 for instance names

2013-04-19 Thread Jordan Justen
Interface blocks in GLSL 150 allow an instance name to be used. v2: * use state->check_version Signed-off-by: Jordan Justen Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/glsl/glsl_parser.yy |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gls

[Mesa-dev] [PATCH 03/17] glsl: parse in/out types for interface blocks

2013-04-19 Thread Jordan Justen
Previously only 'uniform' was allowed for uniform blocks. Now, in/out can be parsed, but it will only be allowed for GLSL >= 150. Signed-off-by: Jordan Justen Reviewed-by: Eric Anholt --- src/glsl/glsl_parser.yy | 51 +-- 1 file changed, 40 inserti

[Mesa-dev] [PATCH 02/17] glsl parser: rename uniform block to interface block

2013-04-19 Thread Jordan Justen
Signed-off-by: Jordan Justen Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/glsl/glsl_parser.yy | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index cd33078..33b74ea 100644 --- a/s

[Mesa-dev] [PATCH 01/17] glsl: rename ast_uniform_block to ast_interface_block

2013-04-19 Thread Jordan Justen
Signed-off-by: Jordan Justen Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/glsl/ast.h |4 ++-- src/glsl/ast_to_hir.cpp |6 +++--- src/glsl/glsl_parser.yy | 14 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/glsl/ast.h b/src

[Mesa-dev] [PATCH 00/17] GLSL 1.50 interface blocks support

2013-04-19 Thread Jordan Justen
Note: This is a resend of v3, originally posted March 25. git://people.freedesktop.org/~jljusten/mesa interface-blocks-v3 v3: * Several clean-ups based on v2 code review * Fix (proposed) piglit test: execution/interface-blocks-same-uniform-varying-name.shader_test (varying interface block

[Mesa-dev] [PATCH 04/17] glsl parser: reject VS+in & FS+out interface blocks

2013-04-19 Thread Jordan Justen
Signed-off-by: Jordan Justen Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/glsl/glsl_parser.yy | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 0a2a77b..dbc25a4 100644 --- a/src/glsl/glsl_parser.yy +++

Re: [Mesa-dev] [PATCH 2/2] mesa: Add performance debug for meta code.

2013-04-19 Thread Brian Paul
On 04/19/2013 12:35 PM, Eric Anholt wrote: I noticed a fallback in regnum through sysprof, and wanted a nicer way to get information about it. --- src/mesa/drivers/common/meta.c | 28 +--- src/mesa/main/errors.h | 10 ++ 2 files changed, 35 insertio

Re: [Mesa-dev] [PATCH 2/2] mesa: Introduce a globally-available minify() macro.

2013-04-19 Thread Brian Paul
On 04/19/2013 12:29 PM, Eric Anholt wrote: This matches u_minify()'s behavior, for consistency. --- src/mesa/drivers/dri/i915/i915_tex_layout.c| 18 +- src/mesa/drivers/dri/i965/brw_tex_layout.c |8 src/mesa/drivers/dri/intel/intel_tex_layout.c | 12 +

Re: [Mesa-dev] [PATCH 1/2] mesa: Generalize TexStorage allocator between swrast and intel.

2013-04-19 Thread Brian Paul
On 04/19/2013 12:29 PM, Eric Anholt wrote: This should be reusable for other non-gallium drivers, so we can make the extension always be available. --- src/mesa/drivers/common/driverfuncs.c |3 ++- src/mesa/drivers/dri/intel/intel_tex.c | 26 -- src/mesa/main/te

[Mesa-dev] [PATCH 2/2] mesa: Add performance debug for meta code.

2013-04-19 Thread Eric Anholt
I noticed a fallback in regnum through sysprof, and wanted a nicer way to get information about it. --- src/mesa/drivers/common/meta.c | 28 +--- src/mesa/main/errors.h | 10 ++ 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/src/mesa/dri

[Mesa-dev] [PATCH 1/2] intel: Mention how much data we're trying to subdata in perf debug.

2013-04-19 Thread Eric Anholt
--- src/mesa/drivers/dri/intel/intel_buffer_objects.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c index 2342f19..996518b 100644 --- a/src/mesa/drivers/dri/intel/in

Re: [Mesa-dev] [PATCH 2/2] draw: implement primitive assembler

2013-04-19 Thread Roland Scheidegger
Am 19.04.2013 20:10, schrieb Zack Rusin: > - Original Message - >> Looks good to me though I wonder if it would be an option to do this at >> vertex fetch time instead after vs? I guess though that way it would >> have to be done separate for the llvm and non-llvm code as the fetch is >> i

[Mesa-dev] [PATCH 1/2] mesa: Generalize TexStorage allocator between swrast and intel.

2013-04-19 Thread Eric Anholt
This should be reusable for other non-gallium drivers, so we can make the extension always be available. --- src/mesa/drivers/common/driverfuncs.c |3 ++- src/mesa/drivers/dri/intel/intel_tex.c | 26 -- src/mesa/main/texstorage.c | 21 ++

[Mesa-dev] [PATCH 2/2] mesa: Introduce a globally-available minify() macro.

2013-04-19 Thread Eric Anholt
This matches u_minify()'s behavior, for consistency. --- src/mesa/drivers/dri/i915/i915_tex_layout.c| 18 +- src/mesa/drivers/dri/i965/brw_tex_layout.c |8 src/mesa/drivers/dri/intel/intel_tex_layout.c | 12 ++-- src/mesa/drivers/dri/intel/intel_te

Re: [Mesa-dev] [PATCH 2/2] draw: implement primitive assembler

2013-04-19 Thread Zack Rusin
- Original Message - > Looks good to me though I wonder if it would be an option to do this at > vertex fetch time instead after vs? I guess though that way it would > have to be done separate for the llvm and non-llvm code as the fetch is > integrated into the llvm code. I think that the

Re: [Mesa-dev] i915c vs i915g piglit run

2013-04-19 Thread Marek Olšák
It depends on what you need the sw fallback for. Stippling and smoothing is accelerated. Maybe emulating fragment shaders with too many instructions? Marek On Thu, Apr 18, 2013 at 3:11 AM, Eric Anholt wrote: > Kenneth Graunke writes: > >> On 04/17/2013 01:59 PM, Dave Airlie wrote: >>> Hi, >>> >

[Mesa-dev] [PATCH] i965: Avoid recompiles for fragment clamping on non-clamping APIs.

2013-04-19 Thread Eric Anholt
Removes 75/78 state-dependent recompiles in GLB2.7 (the remaining 3 are due to FBO-rendering size predictions). --- src/mesa/drivers/dri/i965/brw_fs.cpp |2 +- src/mesa/drivers/dri/i965/brw_vs.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i9

Re: [Mesa-dev] [PATCH 2/2] draw: implement primitive assembler

2013-04-19 Thread Roland Scheidegger
Am 18.04.2013 12:16, schrieb Zack Rusin: > Input assembler needs to be able to decompose adjacency primitives > into something that can be understood by the rest of the pipeline. > The specs say that the adjacency primitives are *only* visible > in the geometry shader, for everything else they need

Re: [Mesa-dev] renaming i965g

2013-04-19 Thread Chia-I Wu
On Thu, Apr 18, 2013 at 2:29 PM, Chia-I Wu wrote: > Hi list, > > Per the discussion, i965g is confusing and misleading. Instead of > preventing the confusions via > > --with-gallium-drivers=i965g-unofficial or > --with-gallium-drivers=experimental-i965g, > > which kind of makes i965g a second

Re: [Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Vadim Girlin
On 04/19/2013 08:35 PM, Christian König wrote: Hey Vadim, Am 19.04.2013 18:18, schrieb Vadim Girlin: [SNIP] In theory, yes, some optimizations in this branch are typically used on the earlier compilation stages, not on the target machine code. On the other hand, there are some differences that

Re: [Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Christian König
Hey Vadim, Am 19.04.2013 18:18, schrieb Vadim Girlin: [SNIP] In theory, yes, some optimizations in this branch are typically used on the earlier compilation stages, not on the target machine code. On the other hand, there are some differences that might make it harder, e.g. many algorithms r

Re: [Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Vadim Girlin
On 04/19/2013 07:13 PM, � wrote: Hi Vadim, from your description it seems to be a post processing stage working on the bytecode of the shaders and additional to that is quite separated from the rest of the driver. Yes, currently it's more like a post-processing stage, though on the other hand

Re: [Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Vadim Girlin
On 04/19/2013 07:23 PM, Henri Verbeet wrote: On 19 April 2013 16:48, Vadim Girlin wrote: In the previous status update I said that the r600-sb branch is not ready to be merged yet, but recently I've done some cleanups and reworks, and though I haven't finished everything that I planned initiall

Re: [Mesa-dev] [PATCH 2/2] draw: implement primitive assembler

2013-04-19 Thread Brian Paul
Just some minor nits... On 04/18/2013 04:16 AM, Zack Rusin wrote: Input assembler needs to be able to decompose adjacency primitives into something that can be understood by the rest of the pipeline. The specs say that the adjacency primitives are *only* visible in the geometry shader, for ever

Re: [Mesa-dev] [PATCH 1/2] util/prim: fix decomposed counts for adjacency primitives

2013-04-19 Thread Brian Paul
On 04/18/2013 04:16 AM, Zack Rusin wrote: Signed-off-by: Zack Rusin --- src/gallium/auxiliary/util/u_prim.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/auxiliary/util/u_prim.h b/src/gallium/auxiliary/util/u_prim.h index 99bb66c..507d12e 100644 -

Re: [Mesa-dev] [PATCH 2/5] gallium: document breakc and switch/case/default/endswitch

2013-04-19 Thread Roland Scheidegger
Am 19.04.2013 09:26, schrieb Jose Fonseca: > > > - Original Message - >> From: Roland Scheidegger >> >> docs were missing, especially the opcode-from-hell switch however is anything >> but obvious. >> --- >> src/gallium/docs/source/tgsi.rst | 57 >> ++-

Re: [Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Henri Verbeet
On 19 April 2013 16:48, Vadim Girlin wrote: > In the previous status update I said that the r600-sb branch is not ready to > be merged yet, but recently I've done some cleanups and reworks, and though > I haven't finished everything that I planned initially, I think now it's in > a better state an

Re: [Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Christian König
Hi Vadim, from your description it seems to be a post processing stage working on the bytecode of the shaders and additional to that is quite separated from the rest of the driver. If that's the case then I don't really see a reason why we shouldn't merge it, but at least at the beginning it

[Mesa-dev] r600g: status of the r600-sb branch

2013-04-19 Thread Vadim Girlin
Hi, In the previous status update I said that the r600-sb branch is not ready to be merged yet, but recently I've done some cleanups and reworks, and though I haven't finished everything that I planned initially, I think now it's in a better state and may be considered for merging. I'm inte

Re: [Mesa-dev] [PATCH 02/14] st/mesa: add a simple path to BufferData if it only discards buffer contents

2013-04-19 Thread Christoph Bumiller
On 19.04.2013 14:08, Marek Olšák wrote: > That's not true. PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE does not copy > data in radeon drivers. It really does what st/mesa does - it creates > a new buffer and throws away the old one, which doesn't take any GPU > bandwidth. Doing that at a lower level shoul

Re: [Mesa-dev] [PATCH 02/14] st/mesa: add a simple path to BufferData if it only discards buffer contents

2013-04-19 Thread Marek Olšák
That's not true. PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE does not copy data in radeon drivers. It really does what st/mesa does - it creates a new buffer and throws away the old one, which doesn't take any GPU bandwidth. Doing that at a lower level should be faster in theory (+ drivers have multiple o

Re: [Mesa-dev] [PATCH 3/8] intel: refactor planar format lookup

2013-04-19 Thread Pohjolainen, Topi
On Tue, Apr 16, 2013 at 04:55:14PM -0700, Eric Anholt wrote: > Topi Pohjolainen writes: > > > Signed-off-by: Topi Pohjolainen > > --- > > src/mesa/drivers/dri/intel/intel_screen.c | 22 -- > > 1 file changed, 16 insertions(+), 6 deletions(-) > > > > diff --git a/src/mesa/dri

Re: [Mesa-dev] [PATCH 4/8] intel: prepare for dri images having more than plane

2013-04-19 Thread Pohjolainen, Topi
On Tue, Apr 16, 2013 at 04:57:49PM -0700, Eric Anholt wrote: > Topi Pohjolainen writes: > > > Signed-off-by: Topi Pohjolainen > > --- > > src/mesa/drivers/dri/intel/intel_screen.c | 101 > > +- > > 1 file changed, 71 insertions(+), 30 deletions(-) > > > > diff --git

Re: [Mesa-dev] EXT_image_dma_buf_import for intel

2013-04-19 Thread Pohjolainen, Topi
On Tue, Apr 16, 2013 at 01:22:22PM -0700, Eric Anholt wrote: > Topi Pohjolainen writes: > > > The set introduces new target for 'eglCreateImageKHR()' allowing one > > to create EGL images out of externally allocated buffers. Especially > > one can combine up to three separate buffers into one sin

Re: [Mesa-dev] [PATCH 2/5] gallium: document breakc and switch/case/default/endswitch

2013-04-19 Thread Christoph Bumiller
On 19.04.2013 09:26, Jose Fonseca wrote: > > - Original Message - >> From: Roland Scheidegger >> >> docs were missing, especially the opcode-from-hell switch however is anything >> but obvious. >> --- >> src/gallium/docs/source/tgsi.rst | 57 >> ++ >>

Re: [Mesa-dev] [PATCH 2/5] gallium: document breakc and switch/case/default/endswitch

2013-04-19 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > docs were missing, especially the opcode-from-hell switch however is anything > but obvious. > --- > src/gallium/docs/source/tgsi.rst | 57 > ++ > 1 file changed, 51 insertions(+), 6 deletions(-)

Re: [Mesa-dev] [PATCH 1/2] util/prim: fix decomposed counts for adjacency primitives

2013-04-19 Thread Jose Fonseca
- Original Message - > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/util/u_prim.h |8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/gallium/auxiliary/util/u_prim.h > b/src/gallium/auxiliary/util/u_prim.h > index 99bb66c..507d12e 10064