[Mesa-dev] [PATCH try 2 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen

2014-06-16 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- src/gallium/drivers/nouveau/nouveau_fence.c | 76 - src/gallium/drivers/nouveau/nouveau_fence.h | 22 +-- src/gallium/drivers/nouveau/nouveau_screen.c| 9 +++ src/gallium/drivers/nouveau/nouveau_screen.h| 14 ++---

[Mesa-dev] [PATCH 3/3] nv50: organize screen caps

2014-06-16 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nv50/nv50_screen.c | 124 - 1 file changed, 57 insertions(+), 67 deletions(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c index 015f139..c09a8c6 10

[Mesa-dev] [PATCH 1/3] nvc0: remove vport_int hack and instead use the usual state validation

2014-06-16 Thread Ilia Mirkin
Commit ad4dc772 fixed an issue with the viewport not being restored correctly. However it's rather hackish and confusing. Instead just mark the viewport dirty and let the viewport validation take care of it. Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nvc0/nvc0_context.h|

[Mesa-dev] [PATCH 2/3] nvc0: organize screen caps

2014-06-16 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 112 +++-- 1 file changed, 51 insertions(+), 61 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index 3fdb6ae..52a067e 10

[Mesa-dev] [ Open source project]

2014-06-16 Thread Roshan Chaudhari
Hi, I am new to mesa and interested in working on open source project. I have good knowledge about OpenGL and GLSL functionality. From the list, I want to work on "Improved application of GLSL compiler optimization" . What should I do to pick it? Can you help me with some documentation whi

Re: [Mesa-dev] [PATCH 1/2] R600/SI: add Gather4 intrinsics (v2)

2014-06-16 Thread Marek Olšák
Is there any specific reason for using SDNodes for everything? Using intrinsics directly in patterns seems to result in a smaller amount of code, which is always good. Marek On Mon, Jun 16, 2014 at 8:12 PM, Matt Arsenault wrote: > On 06/16/2014 08:45 AM, Tom Stellard wrote: >> >> You don't need

[Mesa-dev] [PATCH 2/3] mesa: Don't allow GL_TEXTURE_BORDER queries outside compat profile

2014-06-16 Thread Ian Romanick
From: Ian Romanick There are no texture borders in any version of OpenGL ES or desktop OpenGL core profile. Fixes piglit's gl-3.2-texture-border-deprecated. Signed-off-by: Ian Romanick Cc: "10.2 --- src/mesa/main/texparam.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/mai

[Mesa-dev] [PATCH 3/3] mesa: Don't allow GL_TEXTURE_{LUMINANCE, INTENSITY}_* queries outside compat profile

2014-06-16 Thread Ian Romanick
From: Ian Romanick There are no queries for GL_TEXTURE_LUMINANCE_SIZE, GL_TEXTURE_INTENSITY_SIZE, GL_TEXTURE_LUMINANCE_TYPE, or GL_TEXTURE_INTENSITY_TYPE in any version of OpenGL ES or desktop OpenGL core profile. NOTE: Without changes to piglit, this regresses required-sized-texture-formats. S

[Mesa-dev] [PATCH 1/3] mesa: Generate pname-based errors from glGetTexLevelParameter first

2014-06-16 Thread Ian Romanick
From: Ian Romanick Previously, calling glGenTextures(1, &t); glBindTexture(GL_TEXTURE_2D, t); glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, 0xDEADBEEF, &value); would not generate an error. Signed-off-by: Ian Romanick Cc: "10.2" --- src/mesa/main/texparam.c | 63 +++

Re: [Mesa-dev] [PATCH] radeonsi: pass ARB_conservative_depth parameters to the hardware

2014-06-16 Thread Michel Dänzer
On 17.06.2014 00:08, Marek Olšák wrote: > From: Marek Olšák Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast |Mesa and X developer ___ mesa-dev

[Mesa-dev] [Bug 80115] MESA_META_DRAW_BUFFERS induced GL_INVALID_VALUE errors

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80115 --- Comment #1 from jpsinthe...@verizon.net --- oops, pasted in description twice; sorry about that.. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list

[Mesa-dev] [Bug 80115] New: MESA_META_DRAW_BUFFERS induced GL_INVALID_VALUE errors

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80115 Priority: medium Bug ID: 80115 Assignee: mesa-dev@lists.freedesktop.org Summary: MESA_META_DRAW_BUFFERS induced GL_INVALID_VALUE errors Severity: normal Classification: Unclassified

Re: [Mesa-dev] [PATCH 1/2] R600/SI: add Gather4 intrinsics (v2)

2014-06-16 Thread Matt Arsenault
On 06/16/2014 08:45 AM, Tom Stellard wrote: You don't need to add new SDNodes for all these instructions, you can just use the intrinsic directly in the pattern. The only reason to add SDNodes, is if there are optimizations / special lowering we can do for these instructions. I kind of like hav

Re: [Mesa-dev] [PATCH v3 0/3] Software rendering in EGL-DRM

2014-06-16 Thread Giovanni Campagna
2014-06-16 7:47 GMT+02:00 Pekka Paalanen : > On Sun, 15 Jun 2014 13:49:48 +0200 > Giovanni Campagna wrote: > >> Hello all, >> >> This is the third attempt at swrast/llvmpipe support for DRM >> drivers that don't have userspace support (qxl, cirrus, simpledrm, etc.) >> >> I hope I addressed all of

Re: [Mesa-dev] [PATCH v3 3/3] Add a new capabilities for drivers that can't share buffers

2014-06-16 Thread Giovanni Campagna
2014-06-16 14:47 GMT+02:00 Marek Olšák : > Does the new CAP cover resource_from_handle or resource_get_handle or both? It covers both. Giovanni > Marek > > On Sun, Jun 15, 2014 at 1:49 PM, Giovanni Campagna > wrote: >> From: Giovanni Campagna >> >> The kms-dri swrast driver cannot share buffer

Re: [Mesa-dev] [PATCH 3/9] gallium: add PIPE_BIND_COMMAND_ARGS_BUFFER

2014-06-16 Thread Marek Olšák
Since LLVM 3.5 will be released in August and my radeon patches adding ARB_draw_indirect depend on it, I will commit ARB_draw_indirect support for Gallium with softpipe and llvmpipe support earlier. My plan is for patches 3,4,5,6 to get committed in one week from now, or sooner if somebody reviews

[Mesa-dev] [Bug 80034] compile error eglGetSyncValuesCHROMIUM undeclared

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80034 charlie changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 80034] compile error eglGetSyncValuesCHROMIUM undeclared

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80034 --- Comment #5 from charlie --- Solved. Mesa compiled fine after I fixed the typo in CPPFLAGS but I removed CPPFLAGS as suggested anyway. >I use a simple 10-liner script that sets the options that I need from mesa. People, your time was not a t

Re: [Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Marek Olšák
It's only for the state tracker. Drivers don't have to be concerned about this and should just expose a fixed number of writable shader resources that can be used with all types. Marek On Tue, Jun 17, 2014 at 1:26 AM, Ilia Mirkin wrote: > On Mon, Jun 16, 2014 at 7:21 PM, Marek Olšák wrote: >> [

Re: [Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Ilia Mirkin
On Mon, Jun 16, 2014 at 7:21 PM, Marek Olšák wrote: > [Cc: Aditya] > > Aditya Avinash was interested in doing this as his first task in Mesa. Oh awesome. Actually I think someone may have mentioned this fact to me but then I forgot :) I'll look at other stuff then. > > But what you describe soun

Re: [Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Marek Olšák
[Cc: Aditya] Aditya Avinash was interested in doing this as his first task in Mesa. But what you describe sounds good. If we use set_shader_resources for atomic counter buffer objects, we should also have a plan for how we will bind shader storage buffers objects and images. I suggest we use a di

Re: [Mesa-dev] [PATCH 2/2] i965: Use 8x4 aligned rectangles for HiZ operations on Broadwell.

2014-06-16 Thread Jordan Justen
On Fri, Jun 13, 2014 at 5:26 PM, Kenneth Graunke wrote: > Like on Haswell, we need to use 8x4 aligned rectangle primitives for > hierarchical depth buffer resolves and depth clears. See the comments > in brw_blorp.cpp's brw_hiz_op_params() constructor. (The Broadwell > documentation confirms tha

Re: [Mesa-dev] [PATCH] st/mesa: fix geometry shader max texture limit in state validation

2014-06-16 Thread Brian Paul
On 06/16/2014 04:45 PM, Marek Olšák wrote: --- src/mesa/state_tracker/st_atom_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c index e2d26ee..f34a598 100644 --- a/src/mesa/state_tr

[Mesa-dev] [PATCH] st/mesa: fix geometry shader max texture limit in state validation

2014-06-16 Thread Marek Olšák
--- src/mesa/state_tracker/st_atom_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c index e2d26ee..f34a598 100644 --- a/src/mesa/state_tracker/st_atom_texture.c +++ b/src/mesa/state_tr

Re: [Mesa-dev] [PATCH 01/13] glsl: Remove 'struct' from ir_variable declaration.

2014-06-16 Thread Ian Romanick
Series is Reviewed-by: Ian Romanick On 06/15/2014 10:15 AM, Matt Turner wrote: > --- > src/glsl/opt_dead_builtin_varyings.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/glsl/opt_dead_builtin_varyings.cpp > b/src/glsl/opt_dead_builtin_varyings.cpp > index 6612

[Mesa-dev] [PATCH] r600g: fix the max vertex shader input limit

2014-06-16 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 2b65056..6f87c78 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pip

[Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Ilia Mirkin
Hello, I've been toying with the idea of adding gallium support for the atomic counters extension in gallium. Nouveau already largely supports it, so it's mostly a question of plumbing. (One piece that's missing in nouveau is _actually_ binding resources, but that can't be too difficult... I hope.

Re: [Mesa-dev] Mesa (master): r600g, radeonsi: don' t use hardware MSAA resolve if dst is fast-cleared

2014-06-16 Thread Marek Olšák
No, 0423513c will fail to compile on stable branches. Marek On Sat, Jun 7, 2014 at 3:10 AM, Ian Romanick wrote: > This patch didn't apply cleanly to 10.2. It appears that 0423513c also > hits some code in this area. I picked d2261918 over, but should > 0423513c also get picked? > > On 06/03/20

Re: [Mesa-dev] [PATCH] radeonsi: Program RASTER_CONFIG for harvested GPUs v2

2014-06-16 Thread Marek Olšák
I haven't read the hardware docs on this, so I can't say if it's correct. Acked-by: Marek Olšák Marek On Thu, May 1, 2014 at 4:55 AM, Tom Stellard wrote: > v2: > - Write RASTER_CONFIG for all SEs > > https://bugs.freedesktop.org/show_bug.cgi?id=60879 > --- > src/gallium/drivers/radeonsi/si_

[Mesa-dev] [Bug 79706] [TRACKER] Mesa regression tracker

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79706 Andreas Boll changed: What|Removed |Added Depends on||80069 -- You are receiving this mail bec

[Mesa-dev] [Bug 80069] rendering problems: black areas in KDE desktop. [mesa 10.2.1 (not with 10.1.4)]

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80069 Andreas Boll changed: What|Removed |Added Blocks||79706 -- You are receiving this mail bec

[Mesa-dev] [Bug 80069] rendering problems: black areas in KDE desktop. [mesa 10.2.1 (not with 10.1.4)]

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80069 Andreas Boll changed: What|Removed |Added Version|unspecified |10.2 -- You are receiving this mail beca

Re: [Mesa-dev] [PATCH] i915: Fix gen2 texblend setup

2014-06-16 Thread Ian Romanick
Yeah, that looks right. Reviewed-by: Ian Romanick Did you notice if other drivers have the same off-by-one issue? On 06/16/2014 11:22 AM, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Fix an off by one in the texture unit walk during texblend > setup on gen2. This caused the

Re: [Mesa-dev] [PATCH] glsl: Expand matrix flip optimization pass to cover more cases.

2014-06-16 Thread Ian Romanick
On 04/21/2014 04:38 AM, Iago Toral Quiroga wrote: > Currently it only considers the cases of gl_ModelViewProjectionMatrix and > gl_TextureMatrix. The same optimization can be done also for > gl_ModelViewMatrix, gl_ProjectionMatrix and the corresponding inverses. I've been looking at some thing sim

Re: [Mesa-dev] [PATCH 1/2] R600/SI: add Gather4 intrinsics (v2)

2014-06-16 Thread Marek Olšák
Why are there SDNodes for the other "sample" intrinsics then? Marek On Mon, Jun 16, 2014 at 5:45 PM, Tom Stellard wrote: > On Thu, Jun 12, 2014 at 02:11:10AM +0200, Marek Olšák wrote: >> From: Marek Olšák >> >> This adds a new type of intrinsic and SDNode: SampleRaw. >> All fields of the MIMG o

[Mesa-dev] [PATCH] i915: Fix gen2 texblend setup

2014-06-16 Thread ville . syrjala
From: Ville Syrjälä Fix an off by one in the texture unit walk during texblend setup on gen2. This caused the last enabled texunit to be skipped resulting in totally messed up texturing. This is a regression introduced here: commit 1ad443ecdd694dd9bf3c4a5050d749fb80db6fa2 Author: Eric Anholt

Re: [Mesa-dev] [PATCH v3 0/3] Software rendering in EGL-DRM

2014-06-16 Thread Pekka Paalanen
On Mon, 16 Jun 2014 17:15:47 +0200 Giovanni Campagna wrote: > 2014-06-16 7:47 GMT+02:00 Pekka Paalanen : > > On Sun, 15 Jun 2014 13:49:48 +0200 > > Giovanni Campagna wrote: > > > >> Hello all, > >> > >> This is the third attempt at swrast/llvmpipe support for DRM > >> drivers that don't have use

Re: [Mesa-dev] [PATCH] glsl: Fixup glcpp tests for redefining a macro with whitespace changes.

2014-06-16 Thread Anuj Phogat
On Wed, Jun 11, 2014 at 6:11 PM, Carl Worth wrote: > Previously, the test suite was expecting the compiler to allow a redefintion > of a macro with whitespace added, but gcc is more strict and allows only for > changes in the amounts of whitespace, (but insists that whitespace exist or > not in ex

Re: [Mesa-dev] [PATCH] Add test to ensure compiler won't allow #undef for some builtins

2014-06-16 Thread Anuj Phogat
On Wed, Jun 11, 2014 at 5:32 PM, Carl Worth wrote: > Currently verifying that an #undef of __FILE__, __LINE__, or __VERSION__ will > generate an error. > --- > src/glsl/glcpp/tests/120-undef-builtin.c | 3 +++ > src/glsl/glcpp/tests/120-undef-builtin.c.expected | 7 +++ > 2 files cha

Re: [Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-16 Thread Ilia Mirkin
On Mon, Jun 16, 2014 at 1:20 PM, Jordan Justen wrote: > On Mon, Jun 16, 2014 at 1:05 AM, Samuel Iglesias Gonsálvez > wrote: >> On Sun, 2014-06-15 at 19:18 -0400, Ilia Mirkin wrote: >>> On Wed, Jun 11, 2014 at 12:31 PM, Jordan Justen wrote: >>> > On Wed, Jun 11, 2014 at 2:49 AM, Iago Toral wrote

Re: [Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-16 Thread Jordan Justen
On Mon, Jun 16, 2014 at 1:05 AM, Samuel Iglesias Gonsálvez wrote: > On Sun, 2014-06-15 at 19:18 -0400, Ilia Mirkin wrote: >> On Wed, Jun 11, 2014 at 12:31 PM, Jordan Justen wrote: >> > On Wed, Jun 11, 2014 at 2:49 AM, Iago Toral wrote: >> >> Hi Chris, >> >> >> >> thanks for the quick review! >>

Re: [Mesa-dev] [PATCH 4/5] texstore: Add a generic implementation of GL_ARB_clear_texture

2014-06-16 Thread Ilia Mirkin
On Mon, Jun 16, 2014 at 8:49 AM, Neil Roberts wrote: > Ilia Mirkin writes: > >> Will it? What about the MS case? I thought that for generic you had to >> do a shader-based approach. > > Ah yes, you're right the commit message is nonsense. I guess I should > also avoid enabling the extension at al

Re: [Mesa-dev] [Nouveau] [PATCH 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen

2014-06-16 Thread Ilia Mirkin
Not sure what you did with these patches, but the spacing is all off... makes them hard to read (for me) and also they won't apply for testing. Mind regenerating them? Perhaps you were doing a 2-way merge? On Mon, Jun 16, 2014 at 12:00 PM, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhor

[Mesa-dev] [PATCH 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen

2014-06-16 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- src/gallium/drivers/nouveau/nouveau_fence.c | 76 - src/gallium/drivers/nouveau/nouveau_fence.h | 22 +-- src/gallium/drivers/nouveau/nouveau_screen.c| 9 +++ src/gallium/drivers/nouveau/nouveau_screen.h| 14 ++---

Re: [Mesa-dev] [PATCH 3/3] gallium: implement ARB_texture_query_levels

2014-06-16 Thread Roland Scheidegger
Am 16.06.2014 17:02, schrieb Marek Olšák: > From: Marek Olšák > > The extension is always supported if GLSL 1.30 is supported. > > Softpipe and llvmpipe support is also added (trivial). > Radeon and nouveau support is already done. > --- > docs/GL3.txt| 2 +-

Re: [Mesa-dev] [PATCH 2/2] R600/SI: add tests for gather4

2014-06-16 Thread Tom Stellard
On Thu, Jun 12, 2014 at 02:11:11AM +0200, Marek Olšák wrote: > From: Marek Olšák > LGTM. > --- > test/CodeGen/R600/llvm.SI.gather4.ll | 508 > +++ > 1 file changed, 508 insertions(+) > create mode 100644 test/CodeGen/R600/llvm.SI.gather4.ll > > diff --git a/t

Re: [Mesa-dev] [PATCH 1/2] R600/SI: add Gather4 intrinsics (v2)

2014-06-16 Thread Tom Stellard
On Thu, Jun 12, 2014 at 02:11:10AM +0200, Marek Olšák wrote: > From: Marek Olšák > > This adds a new type of intrinsic and SDNode: SampleRaw. > All fields of the MIMG opcodes are exposed and can be set by Mesa, > even DMASK. All GATHER4 variants are added and there are a lot of them. > > v2: doc

[Mesa-dev] [Bug 79949] [DRI3] GTK+ Programs Not Updating Correctly

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79949 Alberto González changed: What|Removed |Added CC||luis6...@yahoo.com -- You are receiv

Re: [Mesa-dev] [PATCH 9/9] r600g/compute: avoid demoting items when reading/writing

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:38PM +0200, Bruno Jiménez wrote: > All the *Enqueue* functions that read/write buffers (except > clEnqueueCopyBuffer) would map the associated resource, making > it to be demoted if it was in the pool. > > But we possitively know that this transfer will end before po

Re: [Mesa-dev] [PATCH 8/9] r600g/compute: add util functions to add and remove items from lists

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:37PM +0200, Bruno Jiménez wrote: > --- > src/gallium/drivers/r600/compute_memory_pool.c | 158 > - > 1 file changed, 78 insertions(+), 80 deletions(-) > There are double linked list helper functions in gallium util, which we should use rathe

[Mesa-dev] [PATCH] radeonsi: pass ARB_conservative_depth parameters to the hardware

2014-06-16 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 21 - src/gallium/drivers/radeonsi/si_shader.h | 1 + src/gallium/drivers/radeonsi/si_state_draw.c | 4 src/gallium/drivers/radeonsi/sid.h | 4 4 files changed, 29 insertions(+), 1

Re: [Mesa-dev] [PATCH 7/9] r600g/compute: map only against intermediate buffers

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:36PM +0200, Bruno Jiménez wrote: > With this we can assure that mapped buffers will never change > its position when relocating the pool. > > This patch should finally solve the mapping bug. > --- > src/gallium/drivers/r600/evergreen_compute.c | 10 -- > 1 fi

[Mesa-dev] [PATCH 1/3] st/mesa: handle array textures in st_texture_image_copy

2014-06-16 Thread Marek Olšák
From: Dave Airlie Marek: also handle cube arrays Signed-off-by: Marek Olšák --- src/mesa/state_tracker/st_texture.c | 8 1 file changed, 8 insertions(+) diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index 92035e8..c148821 100644 --- a/src/mes

[Mesa-dev] [PATCH 3/3] gallium: implement ARB_texture_query_levels

2014-06-16 Thread Marek Olšák
From: Marek Olšák The extension is always supported if GLSL 1.30 is supported. Softpipe and llvmpipe support is also added (trivial). Radeon and nouveau support is already done. --- docs/GL3.txt| 2 +- docs/relnotes/10.3.html | 1 +

[Mesa-dev] [PATCH 2/3] st/mesa: set sampler_view::last_level correctly

2014-06-16 Thread Marek Olšák
From: Marek Olšák It was set to pipe_resource::last_level and _MaxLevel was embedded in max_lod, that's why it worked for ordinary texturing. However, min_lod doesn't have any effect on texelFetch and textureQueryLevels, so we must still set last_level correctly. --- src/mesa/state_tracker/st_at

Re: [Mesa-dev] [PATCH 6/9] r600g/compute: implement compute_memory_demote_item

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:35PM +0200, Bruno Jiménez wrote: > This function will be used when we want to map an item > that it's already in the pool. > --- > src/gallium/drivers/r600/compute_memory_pool.c | 45 > ++ > src/gallium/drivers/r600/compute_memory_pool.h | 3

Re: [Mesa-dev] [PATCH 5/9] r600g/compute: avoid problems when promoting items mapped for reading

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:34PM +0200, Bruno Jiménez wrote: > Acording to the OpenCL spec, it is possible to have a buffer mapped > for reading and at read from it using commands or buffers. > > With this we can keep the mapping (that exists against the > temporary item) and read with a kernel

Re: [Mesa-dev] [PATCH 4/9] r600g/compute: only move to the pool the buffers marked for promoting

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:33PM +0200, Bruno Jiménez wrote: Reviewed-by: Tom Stellard > --- > src/gallium/drivers/r600/compute_memory_pool.c | 140 > +++-- > src/gallium/drivers/r600/compute_memory_pool.h | 5 + > 2 files changed, 87 insertions(+), 58 deletions(-) > >

Re: [Mesa-dev] [PATCH] clover: Cache serialized binaries

2014-06-16 Thread Tom Stellard
On Sun, Jun 15, 2014 at 01:08:14PM +0200, Francisco Jerez wrote: > Tom Stellard writes: > > > We were serializing the binaries once when clGetProgramInfo was called > > with CL_PROGRAM_BINARY_SIZES and then again when it was called with > > CL_PROGRAM_BINARIES. This was slowing down some OpenCV

Re: [Mesa-dev] [PATCH 3/9] r600g/compute: divide the item list in two

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:32PM +0200, Bruno Jiménez wrote: > Now we will have a list with the items that are in the pool > (item_list) and the items that are outside it (unallocated_list) Reviewed-by: Tom Stellard > --- > src/gallium/drivers/r600/compute_memory_pool.c | 99 > +-

Re: [Mesa-dev] [PATCH 2/9] r600g/compute: Add statuses to the compute_memory_items

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:31PM +0200, Bruno Jiménez wrote: > These statuses will help track whether the items are mapped > or if they should be promoted to or demoted from the pool > --- > src/gallium/drivers/r600/compute_memory_pool.h | 7 ++- > src/gallium/drivers/r600/evergreen_compute

Re: [Mesa-dev] [PATCH 1/9] r600g/compute: Add an intermediate resource for OpenCL buffers

2014-06-16 Thread Tom Stellard
On Fri, Jun 13, 2014 at 10:35:30PM +0200, Bruno Jiménez wrote: > This patch changes completely the way buffers are added to the > compute_memory_pool. Before this, whenever we were going to > map a buffer or write to or read from it, it would get placed > into the pool. Now, every unallocated buffe

Re: [Mesa-dev] [PATCH 2/5] mesa/main: Add generic bits of ARB_clear_texture implementation

2014-06-16 Thread Marek Olšák
The presence of EXT_texture_integer implies EXT_gpu_shader4, so I added "ctx->Version >= 30 || ctx->Extensions.EXT_texture_integer" everywhere to allow drivers to disable EXT_texture_integer but not lose integer textures from GL 3.0. Marek On Mon, Jun 16, 2014 at 12:49 PM, Neil Roberts wrote: >

Re: [Mesa-dev] [PATCH 4/5] texstore: Add a generic implementation of GL_ARB_clear_texture

2014-06-16 Thread Neil Roberts
Ilia Mirkin writes: > Will it? What about the MS case? I thought that for generic you had to > do a shader-based approach. Ah yes, you're right the commit message is nonsense. I guess I should also avoid enabling the extension at all until the next patch. > While I'm sure we all love the > > wh

Re: [Mesa-dev] [PATCH v3 3/3] Add a new capabilities for drivers that can't share buffers

2014-06-16 Thread Marek Olšák
Does the new CAP cover resource_from_handle or resource_get_handle or both? Marek On Sun, Jun 15, 2014 at 1:49 PM, Giovanni Campagna wrote: > From: Giovanni Campagna > > The kms-dri swrast driver cannot share buffers using the GEM, > so it must tell the loader to disable extensions relying on >

Re: [Mesa-dev] [PATCH 2/5] mesa/main: Add generic bits of ARB_clear_texture implementation

2014-06-16 Thread Neil Roberts
Ilia Mirkin writes: >> + if (ctx->Version >= 30 || ctx->Extensions.EXT_texture_integer) { > > Just ctx->Extensions.EXT_texture_integer should be enough here, no? I'm reluctant to change this because every other place in the code that checks for integer textures does it in the same way. Perhaps

[Mesa-dev] [Bug 80034] compile error eglGetSyncValuesCHROMIUM undeclared

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80034 --- Comment #4 from Emil Velikov --- (In reply to comment #2) ... > I don't believe the CFLAGS have changed since I last successfully built mesa > with them. > > export CFLAGS="-m${LIBDIRSUFFIX} -O3 -march=native -pipe" > export CXXFLAGS="${CFLA

[Mesa-dev] [Bug 74010] mesa-10.0.2: z-buffer issue with opengl 3.3 context on intel

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74010 Tapani Pälli changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] gallium/util: fix p_atomic_dec_zero macros

2014-06-16 Thread Maarten Lankhorst
op 13-06-14 07:39, Michel Dänzer schreef: On 12.06.2014 17:00, Maarten Lankhorst wrote: I'm pretty sure that p_atomic_dec_zero should return 1 if the count drops to zero. Cc: "10.2 10.1 10.0" I don't think the stable tag is justified: These bugs have been there for more than four years. Nothi

Re: [Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-16 Thread Samuel Iglesias Gonsálvez
On Sun, 2014-06-15 at 19:18 -0400, Ilia Mirkin wrote: > On Wed, Jun 11, 2014 at 12:31 PM, Jordan Justen wrote: > > On Wed, Jun 11, 2014 at 2:49 AM, Iago Toral wrote: > >> Hi Chris, > >> > >> thanks for the quick review! > >> > >> On Wed, 2014-06-11 at 21:45 +1200, Chris Forbes wrote: > >>> I sent

[Mesa-dev] [Bug 80034] compile error eglGetSyncValuesCHROMIUM undeclared

2014-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=80034 --- Comment #3 from Tapani Pälli --- (In reply to comment #2) > export CFLAGS="-m${LIBDIRSUFFIX} -O3 -march=native -pipe" > export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden" > export CPPFLAGS="${CXXLAGS} -I${XBUILD}/include > -L${XBUILD}/li

Re: [Mesa-dev] [PATCH 06/13] mesa: Remove unused functions from perfomance query code.

2014-06-16 Thread Petri Latvala
On 06/15/2014 08:17 PM, Matt Turner wrote: Perhaps useful for debugging? Never used otherwise. Added by commit 8cf5bdad. --- src/mesa/main/performance_monitor.c | 13 - 1 file changed, 13 deletions(-) diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_mo

Re: [Mesa-dev] [PATCH 11/18] glsl: Add support for EmitStreamVertex() and EndStreamPrimitive().

2014-06-16 Thread Chris Forbes
Have a look at the ir_texture stuff -- it's complex, but it has a whole bunch of ir_value* for the various texture parameters. You'll be able to do something simpler, but will probably have to touch most of the same places that currently treat texturing specially. On Mon, Jun 16, 2014 at 7:04 PM,

Re: [Mesa-dev] [PATCH 11/18] glsl: Add support for EmitStreamVertex() and EndStreamPrimitive().

2014-06-16 Thread Iago Toral
Hi Chris, On Sat, 2014-06-14 at 08:34 +1200, Chris Forbes wrote: > Right, this happens because ir_emit_vertex doesn't take a proper > operand, so it can't keep it alive. > > What I think you want to do is change the stream in ir_emit_vertex and > ir_end_primitive to be a pointer to ir_rvalue (and