Re: [Mesa-dev] [PATCH 3/4] vc4: Drop the content of vc4_flush_resource().

2015-01-06 Thread Michel Dänzer
On 27.12.2014 03:45, Eric Anholt wrote: > The callers all follow it with a flush of the context, and the flush of > the context gives us more information about how things are being flushed. > --- > src/gallium/drivers/vc4/vc4_resource.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(

Re: [Mesa-dev] [PATCH v2] mesa/glsl/glapi: enable GL_EXT_draw_buffers extension

2015-01-06 Thread Tapani
On 01/06/2015 07:39 PM, Chad Versace wrote: On 11/25/2014 11:09 PM, Tapani Pälli wrote: Patch enables ES2 extension that utilizes existing ES3 functionality. Changes make all the subtests to run and pass in WebGL conformance test 'webgl-draw-buffers' when running Chrome on OpenGL ES. v2: remov

Re: [Mesa-dev] [PATCH 148/133] util/hash_table: Pull the details of the FNV-a1 into helpers

2015-01-06 Thread Michel Dänzer
On 07.01.2015 10:44, Matt Turner wrote: > On Tue, Jan 6, 2015 at 5:11 PM, Jason Ekstrand wrote: >> On Tue, Jan 6, 2015 at 5:03 PM, Matt Turner wrote: >>> On Tue, Jan 6, 2015 at 4:34 PM, Jason Ekstrand >>> wrote: This way the basics of the FNV-a1 hash can be reused to easily create othe

Re: [Mesa-dev] [PATCH 148/133] util/hash_table: Pull the details of the FNV-a1 into helpers

2015-01-06 Thread Matt Turner
On Tue, Jan 6, 2015 at 5:11 PM, Jason Ekstrand wrote: > On Tue, Jan 6, 2015 at 5:03 PM, Matt Turner wrote: >> On Tue, Jan 6, 2015 at 4:34 PM, Jason Ekstrand >> wrote: >> > This way the basics of the FNV-a1 hash can be reused to easily create >> > other >> > hashing functions. >> > >> > Cc: Eric

Re: [Mesa-dev] [PATCH 111/133] nir: Add infastructure for generating algebraic transformation passes

2015-01-06 Thread Dylan Baker
On Tuesday, January 06, 2015 04:49:04 PM Jason Ekstrand wrote: > On Tue, Jan 6, 2015 at 4:35 PM, Dylan Baker wrote: > > > I have a couple of comments, but they're just suggestions. > > On Monday, December 15, 2014 10:12:54 PM Jason Ekstrand wrote: > > > This commit builds on the nir_search.h infa

[Mesa-dev] [PATCH] i965/cfg: Fix end_ip of last basic block.

2015-01-06 Thread Matt Turner
start_ip and end_ip are inclusive. Increases instruction counts in 64 shaders in shader-db, likely indicative of them previously being misoptimized. --- src/mesa/drivers/dri/i965/brw_cfg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp

Re: [Mesa-dev] [PATCH 148/133] util/hash_table: Pull the details of the FNV-a1 into helpers

2015-01-06 Thread Jason Ekstrand
On Tue, Jan 6, 2015 at 5:03 PM, Matt Turner wrote: > On Tue, Jan 6, 2015 at 4:34 PM, Jason Ekstrand > wrote: > > This way the basics of the FNV-a1 hash can be reused to easily create > other > > hashing functions. > > > > Cc: Eric Anholt > > This didn't actually Cc him. > My e-mail says it did

Re: [Mesa-dev] [PATCH 1/2] radeonsi: Cache LLVMTargetMachine object in si_screen

2015-01-06 Thread Michel Dänzer
On 07.01.2015 06:33, Tom Stellard wrote: > On Wed, Dec 24, 2014 at 12:48:31PM +0900, Michel Dänzer wrote: >> On 24.12.2014 02:49, Tom Stellard wrote: >>> Rather than building a new one every compile. This should reduce some >>> of the overhead of compiling shaders. >> >> Thanks, though unfortunate

Re: [Mesa-dev] [PATCH 093/133] nir: Add a pass for lowering input/output loads/stores

2015-01-06 Thread Jason Ekstrand
On Sun, Jan 4, 2015 at 8:29 PM, Connor Abbott wrote: > I'd also like to rename or at least note that this is a scalar-only thing > for now... otherwise, > Sure, I'll add a note to the comment at the top of the file. > > Reviewed-by: Connor Abbott > > On Tue, Dec 16, 2014 at 1:11 AM, Jason Eks

Re: [Mesa-dev] [PATCH 092/133] nir: Add a pass to lower local variables to registers

2015-01-06 Thread Jason Ekstrand
On Sun, Jan 4, 2015 at 7:52 PM, Connor Abbott wrote: > > > On Tue, Dec 16, 2014 at 1:11 AM, Jason Ekstrand > wrote: > >> --- >> src/glsl/Makefile.sources | 1 + >> src/glsl/nir/nir.h | 2 + >> src/glsl/nir/nir_lower_locals_to_regs.c | 313 >> ++

Re: [Mesa-dev] [PATCH 148/133] util/hash_table: Pull the details of the FNV-a1 into helpers

2015-01-06 Thread Matt Turner
On Tue, Jan 6, 2015 at 4:34 PM, Jason Ekstrand wrote: > This way the basics of the FNV-a1 hash can be reused to easily create other > hashing functions. > > Cc: Eric Anholt This didn't actually Cc him. > --- > src/util/hash_table.c | 17 - > src/util/hash_table.h | 19 +

Re: [Mesa-dev] [PATCH 152/133] nir/validate: Don't build anything unless we're in

2015-01-06 Thread Matt Turner
On Tue, Jan 6, 2015 at 4:34 PM, Jason Ekstrand wrote: > The subject is incomplete, so maybe > nir/validate: Only build in debug mode. Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailm

Re: [Mesa-dev] [PATCH 149/133] nir: Use the actual FNV-1a hash for hashing derefs

2015-01-06 Thread Jason Ekstrand
Not mentioned in the original commit message, but this also switches the hashing functions to use a loop rather than recursion. --Jason On Tue, Jan 6, 2015 at 4:34 PM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_lower_locals_to_regs.c | 65 > src/glsl/nir/nir_lower_vari

Re: [Mesa-dev] [PATCH 091/133] nir: Add a pass to lower local variable accesses to SSA values

2015-01-06 Thread Jason Ekstrand
On Sun, Jan 4, 2015 at 1:01 PM, Connor Abbott wrote: > Ok, I'm going to try reviewing this again. I'm pasting the latest version > of the file from review/nir-v1 and replying to that so that I won't get > confused between all the various changes and reorganizing things. Here we > go! > > > /* > >

Re: [Mesa-dev] [PATCH 111/133] nir: Add infastructure for generating algebraic transformation passes

2015-01-06 Thread Jason Ekstrand
On Tue, Jan 6, 2015 at 4:35 PM, Dylan Baker wrote: > I have a couple of comments, but they're just suggestions. > On Monday, December 15, 2014 10:12:54 PM Jason Ekstrand wrote: > > This commit builds on the nir_search.h infastructure by adds a bit of > > python code that makes it stupid easy to w

Re: [Mesa-dev] [PATCH 111/133] nir: Add infastructure for generating algebraic transformation passes

2015-01-06 Thread Dylan Baker
I have a couple of comments, but they're just suggestions. On Monday, December 15, 2014 10:12:54 PM Jason Ekstrand wrote: > This commit builds on the nir_search.h infastructure by adds a bit of > python code that makes it stupid easy to write an algebraic transformation > pass. The nir_algebraic.p

[Mesa-dev] [PATCH 152/133] nir/validate: Don't build anything unless we're in

2015-01-06 Thread Jason Ekstrand
--- src/glsl/nir/nir.h | 4 src/glsl/nir/nir_validate.c | 7 +++ 2 files changed, 11 insertions(+) diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index ab9383e..e681d85 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1438,7 +1438,11 @@ void nir_index_blocks(ni

[Mesa-dev] [PATCH 151/133] nir/lower_variables: Improve documentation

2015-01-06 Thread Jason Ekstrand
Additional description was added to a variety of places. Also, we no longer use the term "leaf" to describe fully-qualified direct derefs. Instead, we simply use the term "direct" or spell it out completely. --- src/glsl/nir/nir_lower_variables.c | 103 +++-- 1 fil

[Mesa-dev] [PATCH 149/133] nir: Use the actual FNV-1a hash for hashing derefs

2015-01-06 Thread Jason Ekstrand
--- src/glsl/nir/nir_lower_locals_to_regs.c | 65 src/glsl/nir/nir_lower_variables.c | 101 +--- 2 files changed, 79 insertions(+), 87 deletions(-) diff --git a/src/glsl/nir/nir_lower_locals_to_regs.c b/src/glsl/nir/nir_lower_locals_to_regs.

[Mesa-dev] [PATCH 150/133] nir/lower_variables: Use a for loop for get_deref_node

2015-01-06 Thread Jason Ekstrand
--- src/glsl/nir/nir_lower_variables.c | 111 + 1 file changed, 50 insertions(+), 61 deletions(-) diff --git a/src/glsl/nir/nir_lower_variables.c b/src/glsl/nir/nir_lower_variables.c index 84cf85f..6c3e6cc 100644 --- a/src/glsl/nir/nir_lower_variables.c +++ b/

[Mesa-dev] [PATCH 148/133] util/hash_table: Pull the details of the FNV-a1 into helpers

2015-01-06 Thread Jason Ekstrand
This way the basics of the FNV-a1 hash can be reused to easily create other hashing functions. Cc: Eric Anholt --- src/util/hash_table.c | 17 - src/util/hash_table.h | 19 +++ 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/util/hash_table.c

Re: [Mesa-dev] [PATCH 04/13] radeonsi: enable LLVM optimizations that assume no NaNs for non-compute shaders

2015-01-06 Thread Tom Stellard
On Wed, Jan 07, 2015 at 01:13:37AM +0100, Marek Olšák wrote: > Neither. It's because we use DX10_CLAMP, which converts NaNs to 0. > Ok, could we add a dx10_clamp bit to si_shader and make this attribute conditional on that bit. I'm concerned someone may remove DX10_CLAMP and forget to also remov

Re: [Mesa-dev] [PATCH 04/13] radeonsi: enable LLVM optimizations that assume no NaNs for non-compute shaders

2015-01-06 Thread Marek Olšák
Neither. It's because we use DX10_CLAMP, which converts NaNs to 0. Marek On Wed, Jan 7, 2015 at 12:51 AM, Tom Stellard wrote: > On Mon, Jan 05, 2015 at 12:18:43AM +0100, Marek Olšák wrote: >> From: Marek Olšák >> >> --- >> src/gallium/drivers/radeon/radeon_llvm_emit.c | 1 + >> 1 file changed,

Re: [Mesa-dev] [PATCH 04/13] radeonsi: enable LLVM optimizations that assume no NaNs for non-compute shaders

2015-01-06 Thread Tom Stellard
On Mon, Jan 05, 2015 at 12:18:43AM +0100, Marek Olšák wrote: > From: Marek Olšák > > --- > 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 > in

Re: [Mesa-dev] [PATCH 118/133] nir: Add a sampler index indirect to nir_tex_instr

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 10:45 PM, Connor Abbott wrote: > I created nir_tex_src_sampler_index for exactly this purpose, which > fits in with the "stick all the sources in an array so we can easily > iterate over them" philosophy. If you decide to keep with this > solution, though, at least remove t

Re: [Mesa-dev] [PATCH 094/133] nir: Add a pass to lower global variables to local variables

2015-01-06 Thread Jason Ekstrand
On Sun, Jan 4, 2015 at 7:24 PM, Connor Abbott wrote: > > > On Tue, Dec 16, 2014 at 1:11 AM, Jason Ekstrand > wrote: > >> --- >> src/glsl/Makefile.sources | 1 + >> src/glsl/nir/nir.h| 2 + >> src/glsl/nir/nir_lower_global_vars_to_local.c | 107

Re: [Mesa-dev] [PATCH 113/133] nir: Add a basic constant folding pass

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 10:24 PM, Connor Abbott wrote: > On Tue, Dec 16, 2014 at 1:12 AM, Jason Ekstrand > wrote: > > --- > > src/glsl/Makefile.sources| 1 + > > src/glsl/nir/nir.h | 1 + > > src/glsl/nir/nir_opt_constant_folding.c | 283 > +

Re: [Mesa-dev] [PATCH 147/133] nir: Make intrinsic flags into an enum

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 11:26 PM, Connor Abbott wrote: > Can you make the fields lowercase to match the algebraic properties > enum? Or did you make that uppercase? Lowercase feels better to me > since it's an enum, but I don't really care too much. > I prefer upper-case for bitfields which is re

Re: [Mesa-dev] [PATCH 112/133] nir: Add an algebraic optimization pass

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 11:38 PM, Matt Turner wrote: > On Mon, Dec 15, 2014 at 10:12 PM, Jason Ekstrand > wrote: > > This pass uses the previously built algebraic transformations framework > and > > should act as an example for anyone else wanting to make an algebraic > > transformation pass for

Re: [Mesa-dev] [PATCH 112/133] nir: Add an algebraic optimization pass

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 10:12 PM, Connor Abbott wrote: > On Tue, Dec 16, 2014 at 1:12 AM, Jason Ekstrand > wrote: > > This pass uses the previously built algebraic transformations framework > and > > should act as an example for anyone else wanting to make an algebraic > > transformation pass for

Re: [Mesa-dev] [PATCH 119/133] nir: Rework the way samplers are lowered

2015-01-06 Thread Chris Forbes
Looks reasonable to me. Reviewed-by: Chris Forbes On Tue, Dec 16, 2014 at 7:13 PM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_lower_samplers.cpp | 149 > ++-- > 1 file changed, 74 insertions(+), 75 deletions(-) > > diff --git a/src/glsl/nir/nir_lower_sample

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Aditya Avinash
On Tue, Jan 6, 2015 at 4:23 PM, Marek Olšák wrote: > Having a different view type for writable shader resources sounds good. > > An alternative solution would be to have separate functions for images > and buffers: > > - set_image_views - image views only, pipe_image_view should look > similar to

Re: [Mesa-dev] [PATCH 132/133] nir: Make nir_ssa_undef_instr_create take a number of components

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 11:02 PM, Connor Abbott wrote: > The commit message should probably say something like "nir: Make > nir_ssa_undef_instr_create initialize the destination". That we now > need to pass in the number of components is just a side effect. > Good point. Done. > > On Tue, Dec 1

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Marek Olšák
Having a different view type for writable shader resources sounds good. An alternative solution would be to have separate functions for images and buffers: - set_image_views - image views only, pipe_image_view should look similar to pipe_surface - set_shader_buffers - buffers only, untyped, no v

Re: [Mesa-dev] [PATCH 110/133] nir: Add an expression matching framework

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 10:00 PM, Jason Ekstrand wrote: > > > On Mon, Jan 5, 2015 at 9:12 PM, Connor Abbott wrote: > >> Hi, >> >> Was it your intention to not support non-per-component things like dot >> product at all? I've made a few inline comments about how to do it, >> and it doesn't seem li

Re: [Mesa-dev] [PATCH 097/133] nir/validate: Ensure that outputs are write-only and inputs are read-only

2015-01-06 Thread Jason Ekstrand
On Tue, Jan 6, 2015 at 1:46 PM, Chris Forbes wrote: > Worth pointing out that when tessellation gets ported to NIR, output > reads are a real thing, and can't be lowered away like we do for other > stages (they allow cross-invocation communication, so have to actually > read back from the URB on

Re: [Mesa-dev] [PATCH 111/133] nir: Add infastructure for generating algebraic transformation passes

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 10:00 PM, Connor Abbott wrote: > On Tue, Dec 16, 2014 at 1:12 AM, Jason Ekstrand > wrote: > > This commit builds on the nir_search.h infastructure by adds a bit of > > adding > fixed. > > > python code that makes it stupid easy to write an algebraic > transformation > >

Re: [Mesa-dev] [PATCH 097/133] nir/validate: Ensure that outputs are write-only and inputs are read-only

2015-01-06 Thread Chris Forbes
Worth pointing out that when tessellation gets ported to NIR, output reads are a real thing, and can't be lowered away like we do for other stages (they allow cross-invocation communication, so have to actually read back from the URB on i965) On Wed, Jan 7, 2015 at 10:43 AM, Jason Ekstrand wrote:

Re: [Mesa-dev] [PATCH 097/133] nir/validate: Ensure that outputs are write-only and inputs are read-only

2015-01-06 Thread Jason Ekstrand
On Sun, Jan 4, 2015 at 8:48 PM, Connor Abbott wrote: > I'm not so sure how I feel about checking that outputs are write-only... > eventually we'll want to do lower_input_reads in NIR itself, at which point > we'll need to remove that part from the validator. At the same time, for > now this is so

Re: [Mesa-dev] [PATCH 1/2] radeonsi: Cache LLVMTargetMachine object in si_screen

2015-01-06 Thread Tom Stellard
On Wed, Dec 24, 2014 at 12:48:31PM +0900, Michel Dänzer wrote: > On 24.12.2014 02:49, Tom Stellard wrote: > > Rather than building a new one every compile. This should reduce some > > of the overhead of compiling shaders. > > Thanks, though unfortunately it doesn't seem to make much difference fo

Re: [Mesa-dev] [PATCH 000/123] Reintroducing NIR, a new IR for mesa

2015-01-06 Thread Jason Ekstrand
On Mon, Jan 5, 2015 at 11:28 PM, Connor Abbott wrote: > Patches 100, 102-104, 106-109, 114-117, 121-146 are: > > Reviewed-by: Connor Abbott > Noted. I'm working on dealing with comments now. --Jason > > Whew! I think I've looked through everything. > > On Tue, Dec 16, 2014 at 1:04 AM, Jason

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Aditya Avinash
Hi, I lost this mail in the mail box. I am sorry about patch related to pipe. My work is based on Ilia Mirkin pipe commits. As per my previous mail, you can ignore pipe patch. My current work is related to R600 backend. On Tue, Jan 6, 2015 at 8:54 AM, Jose Fonseca wrote: > Do we really need a n

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Roland Scheidegger
Actually initially pipe_surface really was for "traditional" render surface. There were even stand-alone surfaces (i.e. not based on resources) for the non-fbo (system window) surfaces - this is why the width/height fields are actually still in there in a pipe_surface (yes with a XXX comment)... So

Re: [Mesa-dev] [PATCH 120/133] i965/fs_nir: Add support for indirect texture arrays

2015-01-06 Thread Chris Forbes
Looks sensible to me. Reviewed-by: Chris Forbes On Tue, Dec 16, 2014 at 7:13 PM, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 24 ++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp >

Re: [Mesa-dev] [PATCH 00/41] ARB_direct_state_access texture functions

2015-01-06 Thread Anuj Phogat
I ran gles3 conformance on your adsa-textures branch. Your patches cause no regressions. With all the comments fixed, and no piglit regressions, this series is Reviewed-by: Anuj Phogat On Tue, Dec 30, 2014 at 4:27 PM, Laura Ekstrand wrote: > That is now fixed. Each added entry point in my his

[Mesa-dev] r600g fixes for 10.4 pull request

2015-01-06 Thread Dave Airlie
Hi Emil, I've put some 10.4 r600g fixes together can you pull them for next 10.4 Thanks, Dave. The following changes since commit fffe533f08d7c0cc61841195216e54587a1b77ad: i965: Use safer pointer arithmetic in gather_oa_results() (2015-01-04 21:39:10 +) are available in the git repositor

Re: [Mesa-dev] [PATCH 30/41] main: Added entry point for glGetCompressedTextureImage.

2015-01-06 Thread Laura Ekstrand
Comments have been addressed: http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-textures&id=9c55b528e24650753049a11b05f754ab02a0eba4 On Wed, Dec 31, 2014 at 11:27 AM, Anuj Phogat wrote: > On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand > wrote: > > --- > > src/mapi/glapi/gen/ARB_direct_st

Re: [Mesa-dev] [PATCH 09/41] main: Removed trailing whitespace in texstate.c.

2015-01-06 Thread Anuj Phogat
I think you can squash all the patches fixing the white space issues. Patch 09/41, 36/41 and 37/41. On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > --- > src/mesa/main/texstate.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/src/mesa/main/te

Re: [Mesa-dev] [PATCH 27/41] main: Added entry points for CopyTextureSubImage*D.

2015-01-06 Thread Laura Ekstrand
These comments have been addressed: http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-textures&id=8309dd6981a4d3e007437a860e5a45a823bf04cf Thanks. Laura On Tue, Dec 16, 2014 at 7:45 AM, Brian Paul wrote: > On 12/15/2014 06:22 PM, Laura Ekstrand wrote: > >> --- >> src/mapi/glapi/gen/ARB_

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Ilia Mirkin
Ah, OK. I was interpreting sampler view as "all the things you need to be able to sample from a resource", and surface as "all the things you need to know where to write in a resource", including a render target. But you guys have all been playing this game for much much longer than me... On Tue,

Re: [Mesa-dev] [PATCH 28/41] main: Nameless texture creation and deletion. Does not affect normal creation and deletion paths.

2015-01-06 Thread Laura Ekstrand
Oops, wrong link. Here it is: http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-textures&id=c2b179fe7d50922d8dc01dbf833885e3f4615277 . Laura On Tue, Jan 6, 2015 at 10:41 AM, Laura Ekstrand wrote: > I taken your recommendation: > http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-textu

Re: [Mesa-dev] [PATCH 29/41] main: Added entry point for glGetTextureImage.

2015-01-06 Thread Laura Ekstrand
These comments have been addressed: http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-textures&id=7c419db487dc3b2f55a30dca137322baae72f16b . On Wed, Dec 31, 2014 at 11:37 AM, Anuj Phogat wrote: > On Wed, Dec 31, 2014 at 11:21 AM, Anuj Phogat > wrote: > > On Mon, Dec 15, 2014 at 5:22 PM, La

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Roland Scheidegger
Am 06.01.2015 um 18:54 schrieb Marek Olšák: > I would just rename pipe_sampler_view to pipe_resource_view. I don't > think "pipe_sampler_view" has a lot to do with samplers. It's just a > universal view into textures and yes, buffers too. Of course, some > fields don't apply to certain types and us

Re: [Mesa-dev] [PATCH 28/41] main: Nameless texture creation and deletion. Does not affect normal creation and deletion paths.

2015-01-06 Thread Laura Ekstrand
I taken your recommendation: http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-textures&id=c984a04159fa1febf6ec4a5e900961f88c06e84c Thanks. Laura On Wed, Dec 31, 2014 at 10:45 AM, Anuj Phogat wrote: > On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand > wrote: > > In implementing ARB_DIRECT

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Marek Olšák
I thought pipe_surface was a render target view. From the r600 point of view, writable resources are pretty much "colorbuffers", because they share slots with colorbuffers and are set up exactly like colorbuffers. So pipe_surface maps well to r600, and using set_framebuffer_state for setting UAVs

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Ilia Mirkin
I thought that a surface was basically a writable view into a resource. What does sampler view have that surface doesn't (that matters)? The only thing I can think of is levels, but does anything actually support multi-level stuff? (ARB_shader_image_load_store doesn't seem to.) On Tue, Jan 6, 2015

[Mesa-dev] [Bug 67676] Transparent windows no longer work

2015-01-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67676 Jonny Lamb changed: What|Removed |Added CC||jonny.l...@collabora.co.uk -- You are rece

[Mesa-dev] [Bug 67676] Transparent windows no longer work

2015-01-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67676 --- Comment #8 from Jonny Lamb --- Created attachment 111864 --> https://bugs.freedesktop.org/attachment.cgi?id=111864&action=edit EGL_MESA_transparent_alpha draft Here is my initial draft for this extension. It's already been fixed after a ro

[Mesa-dev] [Bug 88079] dEQP-GLES3.functional.fbo.completeness.renderable.renderbuffer.color0 tests fail due to enabling of GL_RGB and GL_RGBA

2015-01-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88079 Chad Versace changed: What|Removed |Added CC||el...@igalia.com, |

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Marek Olšák
I would just rename pipe_sampler_view to pipe_resource_view. I don't think "pipe_sampler_view" has a lot to do with samplers. It's just a universal view into textures and yes, buffers too. Of course, some fields don't apply to certain types and use cases. OMSetRenderTargetsAndUnorderedAccessViews

Re: [Mesa-dev] [PATCH v2] mesa/glsl/glapi: enable GL_EXT_draw_buffers extension

2015-01-06 Thread Chad Versace
On 11/25/2014 11:09 PM, Tapani Pälli wrote: > Patch enables ES2 extension that utilizes existing ES3 functionality. > > Changes make all the subtests to run and pass in WebGL conformance > test 'webgl-draw-buffers' when running Chrome on OpenGL ES. > > v2: remove unused boolean (Ilia Mirkin) > >

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Roland Scheidegger
You are quite right using pipe_surface seems like a bit of an abuse. pipe_sampler_view wouldn't be quite right though neither, no samplers are involved. Plus, the views here cannot have multiple mip levels (which is presumably why pipe_surface was used - nevertheless pipe_surface was intended only

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Marek Olšák
Using set_shader_resources is preferable. I'd rather it used pipe_sampler_view, not pipe_surface. GL has a lot of shader resource types though: - uniform buffers (load only) - textures and texture buffers (sample+load only) - storage buffers (load+store) - atomic counter buffers (atomic only) - im

Re: [Mesa-dev] [PATCH 2/3] gallium: Plumb the swap INVALIDATE_ANCILLARY flag through more layers.

2015-01-06 Thread Jose Fonseca
On 05/01/15 00:05, Eric Anholt wrote: v2: Instead of telling the driver that the window system ancillaries have been invalidated (when the driver doesn't know which of its buffers are the window system's!), introduce a method for invalidating specific surfaces. Thanks, much bette

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Ilia Mirkin
On Tue, Jan 6, 2015 at 8:54 AM, Jose Fonseca wrote: > Do we really need a new pipe_context::set_counter_buffer method? Shouldn't > this case be covered by pipe_context::set_shader_resources ? FWIW this is the approach I've taken in https://github.com/imirkin/mesa/commits/atomic I've mentioned t

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Jose Fonseca
Do we really need a new pipe_context::set_counter_buffer method? Shouldn't this case be covered by pipe_context::set_shader_resources ? If we really need new method, I'd like we have better names for them, so we can clearly distinguish them. IIUC GL_ARB_shader_atomic_counters correctly, this

Re: [Mesa-dev] [PATCH 01/13] radeonsi: reduce the size of si_pm4_state

2015-01-06 Thread Michel Dänzer
The remaining 12 patches are Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list mesa-dev@lists.fre