[Mesa-dev] [PATCH] i965: Use the buffer object size for VERTEX_BUFFER_STATE's size field.

2016-05-26 Thread Kenneth Graunke
commit 7c8dfa78b98a12c1c5 (i965/draw: Use the real size for vertex buffers) changed how we programmed the VERTEX_BUFFER_STATE size field. Previously, we programmed it to the size of the actual underlying BO, which is page-aligned, and potentially much larger than the GL buffer object. This violat

Re: [Mesa-dev] [PATCH 0/2] fix load of unpacked double vector input varyings

2016-05-26 Thread Timothy Arceri
On Thu, 2016-05-26 at 07:56 +0200, Samuel Iglesias Gonsálvez wrote: > Hello, > > Timothy found that tests with unpacked double vector input varyings > were failing in i965 driver. For example, this is happening when > using explicit locations because Mesa disables varying packing for > that case.

Re: [Mesa-dev] [PATCH 0/2] fix load of unpacked double vector input varyings

2016-05-26 Thread Timothy Arceri
On Thu, 2016-05-26 at 17:44 +1000, Timothy Arceri wrote: > On Thu, 2016-05-26 at 07:56 +0200, Samuel Iglesias Gonsálvez wrote: > > > > Hello, > > > > Timothy found that tests with unpacked double vector input varyings > > were failing in i965 driver. For example, this is happening when > > using

[Mesa-dev] [PATCH] i965: Fix the passthrough TCS for isolines.

2016-05-26 Thread Kenneth Graunke
We weren't setting up several of the uniform values for the patch header, so we'd crash when uploading push constants. We at least need to initialize them to zero. We also had the isoline parameters reversed, so it would also render incorrectly (if it didn't crash). Fixes a new Piglit test(*) (i

Re: [Mesa-dev] [PATCH v2] nvc0: enable 32 textures on kepler+

2016-05-26 Thread Samuel Pitoiset
I think you forgot to increase the array of commands from 16 to 32 in nvc0_validate_tsc() (you did it in v1). With that addressed, this patch is: Reviewed-by: Samuel Pitoiset On 05/26/2016 04:55 AM, Ilia Mirkin wrote: For fermi, this likely will require use of linked tsc mode. However on bin

Re: [Mesa-dev] [PATCH] st/dri: fix winsys handle stride calculation for block formats

2016-05-26 Thread Michel Dänzer
On 25.05.2016 22:20, Philipp Zabel wrote: > This fixes the stride calculation for pipe formats with a block width > larger than one. > > Signed-off-by: Philipp Zabel > --- > src/gallium/state_trackers/dri/dri2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/galliu

Re: [Mesa-dev] [PATCH] radeon/uvd: fix the H264 level for Tonga

2016-05-26 Thread Andy Furniss
Alex Deucher wrote: On Wed, May 25, 2016 at 10:57 AM, Christian König wrote: From: Christian König We support 5.1 for a while now. Resend as the last one didn't have the CCs. I know (well think) vdpau doesn't really mention 5.2 anywhere, but for ffmpeg I've been making this change for some

Re: [Mesa-dev] [PATCH 1/2] gbm: Enable DRI2 fence extension in the GBM DRI backend

2016-05-26 Thread Philipp Zabel
Hi Marek, Am Mittwoch, den 25.05.2016, 20:52 +0200 schrieb Marek Olšák: > On Wed, May 25, 2016 at 4:46 PM, Philipp Zabel wrote: > > Am Mittwoch, den 25.05.2016, 16:01 +0200 schrieb Marek Olšák: > >> On Wed, May 25, 2016 at 3:44 PM, Philipp Zabel > >> wrote: > >> > Am Dienstag, den 10.05.2016, 1

Re: [Mesa-dev] [PATCH 1/2] gbm: Enable DRI2 fence extension in the GBM DRI backend

2016-05-26 Thread Philipp Zabel
Hi Emil, Am Mittwoch, den 25.05.2016, 23:42 +0100 schrieb Emil Velikov: [...] > Or in other words, in case of egl + gbm, egl inherits the screen from > the gbm device. As such platform_gbm does not call the core egl setup > function, dri2_create_screen (like everyone else does x11, wayland...) > b

Re: [Mesa-dev] [PATCH] st/dri: fix winsys handle stride calculation for block formats

2016-05-26 Thread Philipp Zabel
Hi Michel, Am Donnerstag, den 26.05.2016, 17:59 +0900 schrieb Michel Dänzer: > On 25.05.2016 22:20, Philipp Zabel wrote: > > This fixes the stride calculation for pipe formats with a block width > > larger than one. > > > > Signed-off-by: Philipp Zabel > > --- > > src/gallium/state_trackers/dri

Re: [Mesa-dev] [PATCH v2] nvc0: enable 32 textures on kepler+

2016-05-26 Thread Ilia Mirkin
Nope, it was one of the irrelevant changes. If I were enabling 32 on Fermi, it'd matter, but I'm not. On May 26, 2016 04:37, "Samuel Pitoiset" wrote: > I think you forgot to increase the array of commands from 16 to 32 in > nvc0_validate_tsc() (you did it in v1). > > With that addressed, this pat

Re: [Mesa-dev] [PATCH v2] nvc0: enable 32 textures on kepler+

2016-05-26 Thread Samuel Pitoiset
On 05/26/2016 01:22 PM, Ilia Mirkin wrote: Nope, it was one of the irrelevant changes. If I were enabling 32 on Fermi, it'd matter, but I'm not. Right, this function is for fermi only. Looks good. On May 26, 2016 04:37, "Samuel Pitoiset" mailto:samuel.pitoi...@gmail.com>> wrote: I thi

Re: [Mesa-dev] [PATCH 1/2] gbm: Enable DRI2 fence extension in the GBM DRI backend

2016-05-26 Thread Emil Velikov
On 26 May 2016 at 11:28, Philipp Zabel wrote: > Hi Emil, > > Am Mittwoch, den 25.05.2016, 23:42 +0100 schrieb Emil Velikov: > [...] >> Or in other words, in case of egl + gbm, egl inherits the screen from >> the gbm device. As such platform_gbm does not call the core egl setup >> function, dri2_cr

Re: [Mesa-dev] [PATCH] st/dri: fix winsys handle stride calculation for block formats

2016-05-26 Thread Emil Velikov
Hi gents, On 26 May 2016 at 11:28, Philipp Zabel wrote: > Hi Michel, > > Am Donnerstag, den 26.05.2016, 17:59 +0900 schrieb Michel Dänzer: >> On 25.05.2016 22:20, Philipp Zabel wrote: >> > This fixes the stride calculation for pipe formats with a block width >> > larger than one. >> > >> > Signed

Re: [Mesa-dev] [PATCH 01/10] compiler: Move glsl_to_nir to libglsl.la

2016-05-26 Thread Emil Velikov
Hi Jason, On 26 May 2016 at 02:52, Jason Ekstrand wrote: > Right now libglsl.la depends on libnir.la so putting it in libnir.la > adds a dependency on libglsl.la that goes the wrong direction. > --- > src/compiler/Makefile.am |2 + > src/compiler/Makefile.nir.am

Re: [Mesa-dev] [PATCH] st/dri: fix winsys handle stride calculation for block formats

2016-05-26 Thread Philipp Zabel
Am Donnerstag, den 26.05.2016, 12:43 +0100 schrieb Emil Velikov: > Hi gents, > > On 26 May 2016 at 11:28, Philipp Zabel wrote: > > Hi Michel, > > > > Am Donnerstag, den 26.05.2016, 17:59 +0900 schrieb Michel Dänzer: > >> On 25.05.2016 22:20, Philipp Zabel wrote: > >> > This fixes the stride calcu

Re: [Mesa-dev] [PATCH 01/10] compiler: Move glsl_to_nir to libglsl.la

2016-05-26 Thread Rob Herring
On Thu, May 26, 2016 at 6:59 AM, Emil Velikov wrote: > Hi Jason, > > On 26 May 2016 at 02:52, Jason Ekstrand wrote: >> Right now libglsl.la depends on libnir.la so putting it in libnir.la >> adds a dependency on libglsl.la that goes the wrong direction. >> --- >> src/compiler/Makefile.am

Re: [Mesa-dev] [PATCH 1/2] nvc0/ir: avoid generating illegal instructions for compute constbuf loads

2016-05-26 Thread Hans de Goede
Hi, On 26-05-16 04:44, Ilia Mirkin wrote: For user-supplied constbufs, fileIndex is 0. In that case, when we subtract 1, we'll end up loading from constbuf offset -16. This is illegal, and there are asserts to avoid it. Normally we'd just DCE it, but no point in generating the instructions if th

Re: [Mesa-dev] [PATCH 1/2] nvc0/ir: avoid generating illegal instructions for compute constbuf loads

2016-05-26 Thread Ilia Mirkin
On Thu, May 26, 2016 at 8:41 AM, Hans de Goede wrote: > Hi, > > > On 26-05-16 04:44, Ilia Mirkin wrote: >> >> For user-supplied constbufs, fileIndex is 0. In that case, when we >> subtract 1, we'll end up loading from constbuf offset -16. This is >> illegal, and there are asserts to avoid it. Norm

Re: [Mesa-dev] [PATCH v4] glsl: enforce invariant conditions for built-in variables

2016-05-26 Thread Lars Hamre
Ping. On Tue, May 17, 2016 at 10:49 AM, Lars Hamre wrote: > Gentle ping, if nobody has an issues I would appreciate a push. > > Regards, > Lars Hamre > > On Mon, May 9, 2016 at 7:00 PM, Lars Hamre wrote: >> v3/v4: >> - compare varying slot locations rather than names (Ilia Mirkin) >> v2: >> -

Re: [Mesa-dev] [PATCH] gallium/tgsi: use _mesa_roundevenf in micro_rnd

2016-05-26 Thread Lars Hamre
Gentle ping for a gallium developer. If nobody has any issues I would appreciate a push. Regards, Lars Hamre On Thu, May 19, 2016 at 6:16 PM, Matt Turner wrote: > On Thu, May 19, 2016 at 2:34 PM, Lars Hamre wrote: >> Fixes the following piglit tests (for softpipe): >> >> /spec/glsl-1.30/executi

Re: [Mesa-dev] [PATCH 1/2] nvc0/ir: avoid generating illegal instructions for compute constbuf loads

2016-05-26 Thread Hans de Goede
Hi, On 26-05-16 14:43, Ilia Mirkin wrote: On Thu, May 26, 2016 at 8:41 AM, Hans de Goede wrote: Hi, On 26-05-16 04:44, Ilia Mirkin wrote: For user-supplied constbufs, fileIndex is 0. In that case, when we subtract 1, we'll end up loading from constbuf offset -16. This is illegal, and there

Re: [Mesa-dev] [PATCH] gallium/tgsi: use _mesa_roundevenf in micro_rnd

2016-05-26 Thread Brian Paul
Will do. -Brian On 05/26/2016 06:51 AM, Lars Hamre wrote: Gentle ping for a gallium developer. If nobody has any issues I would appreciate a push. Regards, Lars Hamre On Thu, May 19, 2016 at 6:16 PM, Matt Turner wrote: On Thu, May 19, 2016 at 2:34 PM, Lars Hamre wrote: Fixes the following

Re: [Mesa-dev] [PATCH v3] swr: implement clipPlanes/clipVertex/clipDistance/cullDistance

2016-05-26 Thread Rowley, Timothy O
> On May 25, 2016, at 9:16 PM, Ilia Mirkin wrote: > > On Wed, May 25, 2016 at 10:03 PM, Tim Rowley > wrote: >> v2: only load the clip vertex once >> >> v3: fix clip enable logic, add cullDistance >> --- >> docs/GL3.txt | 2 +- >> src/gallium/drivers/swr/swr_context.h

[Mesa-dev] [PATCH v4] swr: implement clipPlanes/clipVertex/clipDistance/cullDistance

2016-05-26 Thread Tim Rowley
v2: only load the clip vertex once v3: fix clip enable logic, add cullDistance v4: remove duplicate fields in vs jit key, fix test of clip fixup needed --- docs/GL3.txt | 2 +- src/gallium/drivers/swr/swr_context.h | 2 ++ src/gallium/drivers/swr/swr_screen.cpp | 3

Re: [Mesa-dev] [PATCH 01/10] compiler: Move glsl_to_nir to libglsl.la

2016-05-26 Thread Emil Velikov
On 26 May 2016 at 13:39, Rob Herring wrote: > On Thu, May 26, 2016 at 6:59 AM, Emil Velikov > wrote: >> Hi Jason, >> >> On 26 May 2016 at 02:52, Jason Ekstrand wrote: >>> Right now libglsl.la depends on libnir.la so putting it in libnir.la >>> adds a dependency on libglsl.la that goes the wrong

[Mesa-dev] [PATCH] mesa: add warnings .out files on glsl/tests .gitignore

2016-05-26 Thread Alejandro Piñeiro
--- src/compiler/glsl/tests/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/glsl/tests/.gitignore b/src/compiler/glsl/tests/.gitignore index 13dcdc4..1c38cd2 100644 --- a/src/compiler/glsl/tests/.gitignore +++ b/src/compiler/glsl/tests/.gitignore @@ -3,3 +3,4 @@ ralloc

[Mesa-dev] [PATCH v3 03/14] radeonsi: Define build_tbuffer_store_dwords earlier to support new users.

2016-05-26 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 138 +++ 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drive

[Mesa-dev] [PATCH v3 08/14] radeonsi: Store inputs to memory when not using a TCS.

2016-05-26 Thread Bas Nieuwenhuizen
We need to copy the VS outputs to memory. I decided to do this using a shader key, as the value depends on other shaders. I also switch the fixed function TCS over to monolithic, as otherwisze many of the user SGPR's need to be passed to the epilog, which increases register pressure, or complexity

[Mesa-dev] [PATCH v3 02/14] radeonsi: Add offchip tessellation parameters.

2016-05-26 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c| 28 - src/gallium/drivers/radeonsi/si_shader.h| 3 ++- src/gallium/drivers/radeonsi/si_state_shaders.c | 9 3 fi

[Mesa-dev] [PATCH v3 05/14] radeonsi: Use correct parameter index for LS_OUT_LAYOUT.

2016-05-26 Thread Bas Nieuwenhuizen
This happens to be in the right position, but that changes when TCS/TES get new parameters. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --gi

Re: [Mesa-dev] [PATCH v4] swr: implement clipPlanes/clipVertex/clipDistance/cullDistance

2016-05-26 Thread Ilia Mirkin
On Thu, May 26, 2016 at 9:11 AM, Tim Rowley wrote: > v2: only load the clip vertex once > > v3: fix clip enable logic, add cullDistance > > v4: remove duplicate fields in vs jit key, fix test of clip fixup needed > --- > docs/GL3.txt | 2 +- > src/gallium/drivers/swr/sw

[Mesa-dev] [PATCH v3 07/14] radeonsi: Add offchip buffer address calculation.

2016-05-26 Thread Bas Nieuwenhuizen
Instead of creating a memory area per patch and per vertex, we put the same attribute of every vertex & patch together. Most loads and stores access the same attribute across all lanes, only for different patches and vertices. For the TCS this results in tightly packed data for 4-component stores.

[Mesa-dev] [PATCH v3 06/14] radeonsi: Add user SGPR for the layout of the offchip buffer.

2016-05-26 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 3 +++ src/gallium/drivers/radeonsi/si_shader.h | 12 ++-- src/gallium/drivers/radeonsi/si_state_draw.c | 9 +++-- 3 files changed, 20 inser

[Mesa-dev] [PATCH v3 04/14] radeonsi: Add buffer load functions.

2016-05-26 Thread Bas Nieuwenhuizen
v2: - Use llvm.admgcn.buffer.load instrinsics for new LLVM. - Code style fixes. v3: - Code style fix. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 114 +++ 1 file changed, 114 insertions(+) diff --git

[Mesa-dev] [PATCH v3 09/14] radeonsi: Use buffer loads and stores for passing data from TCS to TES.

2016-05-26 Thread Bas Nieuwenhuizen
We always try to use 4-component loads, as LLVM does not combine loads and they bypass the L1 cache. We can't use a similar strategy for stores and this is especially notable with the tess factors, as they are often set with separate MOV's per component in the TGSI. We keep storing to LDS and the

[Mesa-dev] [PATCH v3 12/14] radeonsi: Add barrier before writing the tess factors.

2016-05-26 Thread Bas Nieuwenhuizen
The factors may be stored to LDs by another invocation than the invocation for vertex 0. Signed-off-by: Bas Nieuwenhuizen --- src/gallium/drivers/radeonsi/si_shader.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeons

[Mesa-dev] [PATCH v3 00/14] radeonsi: offchip tessellation

2016-05-26 Thread Bas Nieuwenhuizen
Addressed review comments by Marek. As part of that the max number of patches per threadgroup was reduced to 40 from 64. This reduced unigine-heaven performance from 43.1 fps to 42.5 fps (the number varies a little but the magnitude of the difference is pretty constant) However it is likely that

[Mesa-dev] [PATCH v3 10/14] radeonsi: Remove LDS layout user SGPR's from TES.

2016-05-26 Thread Bas Nieuwenhuizen
They are unused. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 4 +--- src/gallium/drivers/radeonsi/si_shader.h | 15 --- src/gallium/drivers/radeonsi/si_state_draw.c | 4 +--- 3 files

[Mesa-dev] [PATCH v3 13/14] radeonsi: Process multiple patches per threadgroup.

2016-05-26 Thread Bas Nieuwenhuizen
Using more than 1 wave per threadgroup does increase performance generally. Not using too many patches per threadgroup also increases performance. Both catalyst and amdgpu-pro seem to use 40 patches as their maximum, but I haven't really seen any performance increase from limiting the number of pa

[Mesa-dev] [PATCH v3 14/14] radeonsi: Allow TES distribution between shader engines.

2016-05-26 Thread Bas Nieuwenhuizen
The R_028B50_VGT_TESS_DISTRIBUTION value is copied from amdgpu-pro. Smaller values in the ACCUM fields seem to decrease the performance advantage from this patch, higher values don't seem to matter. v2: Add distribution mode field enums. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähn

[Mesa-dev] [PATCH v3 11/14] radeonsi: Enable dynamic HS.

2016-05-26 Thread Bas Nieuwenhuizen
This allows running the TES on different CU's than the TCS which results in performance improvements. v2: Only write the control word from one invocation. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c| 19 +++ src

[Mesa-dev] [PATCH v3 01/14] radeonsi: Add buffer for offchip storage between TCS and TES.

2016-05-26 Thread Bas Nieuwenhuizen
The buffer is quite large, but should only be allocated if the application uses tessellation. Most non-games don't. v2: - Use the correct register for SI. - Add define for block size. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.c

[Mesa-dev] [PATCH 2/5] util/indices: formatting, whitespace fixes in u_unfilled_indices.c

2016-05-26 Thread Brian Paul
--- src/gallium/auxiliary/indices/u_unfilled_indices.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/gallium/auxiliary/indices/u_unfilled_indices.c b/src/gallium/auxiliary/indices/u_unfilled_indices.c index fc974f8..fe57fd7 100644 --- a/src/gallium/a

[Mesa-dev] [PATCH 1/5] util/indices: improve comments in u_indices.h

2016-05-26 Thread Brian Paul
--- src/gallium/auxiliary/indices/u_indices.h | 32 --- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/indices/u_indices.h b/src/gallium/auxiliary/indices/u_indices.h index 4483eb8..7f696ab 100644 --- a/src/gallium/auxiliary/indice

[Mesa-dev] [PATCH 4/5] util/indices: implement provoking vertex conversion for adjacency primitives

2016-05-26 Thread Brian Paul
Tested with new piglit gl-3.2-adj-prims test. --- src/gallium/auxiliary/indices/u_indices.c | 52 src/gallium/auxiliary/indices/u_indices_gen.py | 83 +- src/gallium/auxiliary/indices/u_indices_priv.h | 2 +- 3 files changed, 134 insertions(+), 3 dele

[Mesa-dev] [PATCH 3/5] util/indices: assert that the incoming primitive is a triangle type

2016-05-26 Thread Brian Paul
The unfilled index translator/generator functions should only be called when the primitive mode is one of the triangle types. --- src/gallium/auxiliary/indices/u_unfilled_indices.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/indices/u_unfilled_indices.c b/src/ga

[Mesa-dev] [PATCH 5/5] util/indices: implement unfilled (tri->line) conversion for adjacency prims

2016-05-26 Thread Brian Paul
Tested with new piglit gl-3.2-adj-prims test. --- src/gallium/auxiliary/indices/u_unfilled_gen.py| 26 -- src/gallium/auxiliary/indices/u_unfilled_indices.c | 14 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/indices/u_un

[Mesa-dev] [PATCH 1/2] svga: clean up and improve comments in svga_draw_private.h

2016-05-26 Thread Brian Paul
--- src/gallium/drivers/svga/svga_draw_private.h | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/svga/svga_draw_private.h b/src/gallium/drivers/svga/svga_draw_private.h index c821742..48e0b60 100644 --- a/src/gallium/drivers/svga/svga_draw_priv

[Mesa-dev] [PATCH 2/2] svga: fix test for unfilled triangles fallback

2016-05-26 Thread Brian Paul
VGPU10 actually supports line-mode triangles. We failed to make use of that before. --- src/gallium/drivers/svga/svga_draw_arrays.c | 8 -- src/gallium/drivers/svga/svga_draw_elements.c | 3 +-- src/gallium/drivers/svga/svga_draw_private.h | 38 +-- 3 files change

[Mesa-dev] [PATCH 4/5] util/indices, svga: s/unsigned/enum pipe_prim_type/

2016-05-26 Thread Brian Paul
--- src/gallium/auxiliary/indices/u_indices.c | 6 +++--- src/gallium/auxiliary/indices/u_indices.h | 17 + src/gallium/auxiliary/indices/u_unfilled_indices.c | 10 +- src/gallium/drivers/svga/svga_draw_arrays.c| 3 ++- src/gallium/drivers/svga/s

[Mesa-dev] [PATCH 5/5] gallium: change pipe_draw_info::mode to be pipe_prim_type

2016-05-26 Thread Brian Paul
Makes debugging with gdb a little nicer. --- src/gallium/include/pipe/p_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index eacf9bb..396f563 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/

[Mesa-dev] [PATCH 2/5] svga: s/unsigned/enum pipe_resource_usage/ for buffer usage variables

2016-05-26 Thread Brian Paul
--- src/gallium/drivers/svga/svga_resource_buffer.c | 2 +- src/gallium/drivers/svga/svga_screen_cache.c| 2 +- src/gallium/drivers/svga/svga_screen_cache.h| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/svga/svga_resource_buffer.c b/src/gallium/

[Mesa-dev] [PATCH 1/5] svga: s/unsigned/enum pipe_prim_type/ for primitive type variables

2016-05-26 Thread Brian Paul
Proper enum types were only added recently. --- src/gallium/drivers/svga/svga_draw.h | 4 ++-- src/gallium/drivers/svga/svga_draw_arrays.c | 6 +++--- src/gallium/drivers/svga/svga_draw_elements.c | 6 +++--- src/gallium/drivers/svga/svga_draw_private.h | 5 +++-- src/gallium/drivers/s

Re: [Mesa-dev] [PATCH] nir: Use double-precision pow() when bit_size is 64, powf() otherwise

2016-05-26 Thread Emil Velikov
On 19 May 2016 at 10:00, Iago Toral wrote: > I have just noticed that this was never pushed, right? I noticed this > while working on providing double-precision implementation for the other > functions discussed in the thread. > You are correct Iago. Gents, can anyone get some light on the status

[Mesa-dev] [PATCH 3/5] util: s/unsigned/enum pipe_resource_usage/ for buffer usage variables

2016-05-26 Thread Brian Paul
--- src/gallium/auxiliary/util/u_debug.c | 2 +- src/gallium/auxiliary/util/u_debug.h | 2 +- src/gallium/auxiliary/util/u_inlines.h| 6 +++--- src/gallium/auxiliary/util/u_staging.c| 2 +- src/gallium/auxiliary/util/u_staging.h| 2 +- src/gallium/auxiliary/util/u_suballoc.c

Re: [Mesa-dev] [Mesa-stable] [V2 PATCH] meta: Fix the pbo usage in meta for GLES{1, 2} contexts

2016-05-26 Thread Emil Velikov
Hi all, On 2 March 2016 at 03:22, Ian Romanick wrote: > Sorry for the delay. > > Reviewed-by: Ian Romanick > > > On 02/09/2016 03:28 PM, Anuj Phogat wrote: >> OpenGL ES 1.0 doesn't support using GL_STREAM_DRAW and both >> ES 1.0 and 2.0 don't support GL_STREAM_READ in glBufferData(). >> So, hand

Re: [Mesa-dev] [PATCH] egl: Check if API is supported when using eglBindAPI.

2016-05-26 Thread Brian Paul
On 05/24/2016 04:42 PM, Plamena Manolova wrote: According to the EGL specifications before binding an API we must check whether it's supported first. If not eglBindAPI should return EGL_FALSE and generate a EGL_BAD_PARAMETER error. Signed-off-by: Plamena Manolova --- src/egl/main/eglapi.c

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] scons: build osmesa swrast and gallium

2016-05-26 Thread Emil Velikov
On 27 April 2016 at 12:36, Emil Velikov wrote: > On 11 March 2016 at 08:43, Andreas Fänger wrote: >> This patch makes it possible to build classic osmesa/swrast on windows >> again. Although there is a gallium version of osmesa now, the swrast version >> still has more features lacking in llvmpip

Re: [Mesa-dev] [Mesa-stable] [PATCH 4/4] glx: fix error code when there is no context bound

2016-05-26 Thread Emil Velikov
Hi all, On 29 February 2016 at 07:14, Tapani Pälli wrote: > > On 02/22/2016 10:16 PM, Ian Romanick wrote: >> >> There are 17 total occurrences of >> >> grep -r '[(]!gc[)]' src/glx/ >> >> and >> >> grep -r 'gc[[:space:]]*==[[:space:]]*NULL' src/glx/ >> >> None of these check for dummyCon

Re: [Mesa-dev] [PATCH 3/3] radeon/llvm: Use alloca instructions for larger arrays

2016-05-26 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Wed, May 25, 2016 at 2:35 PM, Tom Stellard wrote: > We were storing arrays in vectors, which was leading to some really bad > spill code for large arrays. allocas instructions are a better fit for > arrays and LLVM optimizations are more geare

Re: [Mesa-dev] [Mesa-stable] [PATCH] nv50/ir: fix texture barriers insertion with combined load/store

2016-05-26 Thread Emil Velikov
Hi guys, Double-checking through the list and this patch never landed in master. From a quick read through the log it's not immediately obvious if an alternative did get pushed. Can someone shed some light on the topic ? Thanks Emil ___ mesa-dev mailin

Re: [Mesa-dev] [PATCH 1/2] mesa: Allow to invalidate external textures when (re-)binding

2016-05-26 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, May 25, 2016 at 3:17 PM, Philipp Zabel wrote: > To comply with the requirement from the GL_OES_EGL_image_external > extension that a call to glBindTexture guarantees that all further > sampling will return values that correspond to the values in the > exte

Re: [Mesa-dev] [PATCH 2/2] st/mesa: Invalidate external textures when (re-)binding

2016-05-26 Thread Marek Olšák
On Wed, May 25, 2016 at 3:34 PM, Philipp Zabel wrote: > Am Mittwoch, den 25.05.2016, 09:23 -0400 schrieb Ilia Mirkin: >> Iirc invalidate_resource is to allow backend to discard the contents... > > Thanks, I didn't know that. So this would need a new callback then? > Specifically I want to discard

Re: [Mesa-dev] [Mesa-stable] [PATCH] nv50/ir: fix texture barriers insertion with combined load/store

2016-05-26 Thread Samuel Pitoiset
On 05/26/2016 04:29 PM, Emil Velikov wrote: Hi guys, Double-checking through the list and this patch never landed in master. From a quick read through the log it's not immediately obvious if an alternative did get pushed. Can someone shed some light on the topic ? Hi Emil, Oops! I have jus

Re: [Mesa-dev] [PATCH] nir: Use double-precision pow() when bit_size is 64, powf() otherwise

2016-05-26 Thread Iago Toral
On Thu, 2016-05-26 at 15:13 +0100, Emil Velikov wrote: > On 19 May 2016 at 10:00, Iago Toral wrote: > > I have just noticed that this was never pushed, right? I noticed this > > while working on providing double-precision implementation for the other > > functions discussed in the thread. > > > Yo

Re: [Mesa-dev] [PATCH v3 00/14] radeonsi: offchip tessellation

2016-05-26 Thread Marek Olšák
On Thu, May 26, 2016 at 3:33 PM, Bas Nieuwenhuizen wrote: > Addressed review comments by Marek. > > As part of that the max number of patches per threadgroup was reduced to 40 > from 64. This reduced unigine-heaven performance from 43.1 fps to 42.5 fps > (the number varies a little but the magnitu

Re: [Mesa-dev] [PATCH 2/2] st/mesa: Invalidate external textures when (re-)binding

2016-05-26 Thread Ilia Mirkin
On Thu, May 26, 2016 at 10:31 AM, Marek Olšák wrote: > On Wed, May 25, 2016 at 3:34 PM, Philipp Zabel wrote: >> Am Mittwoch, den 25.05.2016, 09:23 -0400 schrieb Ilia Mirkin: >>> Iirc invalidate_resource is to allow backend to discard the contents... >> >> Thanks, I didn't know that. So this would

Re: [Mesa-dev] [Mesa-stable] [PATCH 7/8] glsl/linker: Don't include interface name for built-in blocks

2016-05-26 Thread Emil Velikov
Hi all, On 18 May 2016 at 00:35, Timothy Arceri wrote: > On Tue, 2016-05-17 at 15:11 -0700, Ian Romanick wrote: >> From: Ian Romanick >> >> Commit 11096ec introduced a regression in some piglit tests (e.g., >> arb_program_interface_query-resource-query). I did not notice this >> regression beca

Re: [Mesa-dev] [PATCH 2/2] st/mesa: Invalidate external textures when (re-)binding

2016-05-26 Thread Marek Olšák
On Thu, May 26, 2016 at 4:36 PM, Ilia Mirkin wrote: > On Thu, May 26, 2016 at 10:31 AM, Marek Olšák wrote: >> On Wed, May 25, 2016 at 3:34 PM, Philipp Zabel >> wrote: >>> Am Mittwoch, den 25.05.2016, 09:23 -0400 schrieb Ilia Mirkin: Iirc invalidate_resource is to allow backend to discard t

Re: [Mesa-dev] [Mesa-stable] [PATCH 2/2] glsl/linker: Include the interface name for input and output blocks

2016-05-26 Thread Emil Velikov
Hi gents, On 14 May 2016 at 04:11, Kenneth Graunke wrote: > On Friday, May 13, 2016 6:42:54 PM PDT Ian Romanick wrote: >> From: Ian Romanick >> >> On my oes_shader_io_blocks branch, this fixes 71 >> dEQP-GLES31.functional.program_interface_query.* tests. >> >> Signed-off-by: Ian Romanick >> Cc:

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] scons: build osmesa swrast and gallium

2016-05-26 Thread Brian Paul
On 05/26/2016 08:23 AM, Emil Velikov wrote: On 27 April 2016 at 12:36, Emil Velikov wrote: On 11 March 2016 at 08:43, Andreas Fänger wrote: This patch makes it possible to build classic osmesa/swrast on windows again. Although there is a gallium version of osmesa now, the swrast version still

Re: [Mesa-dev] [PATCH v3 13/14] radeonsi: Process multiple patches per threadgroup.

2016-05-26 Thread Marek Olšák
Patches 12-13: Reviewed-by: Marek Olšák Marek On Thu, May 26, 2016 at 3:33 PM, Bas Nieuwenhuizen wrote: > Using more than 1 wave per threadgroup does increase performance > generally. Not using too many patches per threadgroup also > increases performance. Both catalyst and amdgpu-pro seem to

Re: [Mesa-dev] [PATCH 3/5] util: s/unsigned/enum pipe_resource_usage/ for buffer usage variables

2016-05-26 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, May 26, 2016 at 4:09 PM, Brian Paul wrote: > --- > src/gallium/auxiliary/util/u_debug.c | 2 +- > src/gallium/auxiliary/util/u_debug.h | 2 +- > src/gallium/auxiliary/util/u_inlines.h| 6 +++--- > src/gallium/auxiliary/util/u_staging.c|

Re: [Mesa-dev] [PATCH 5/5] gallium: change pipe_draw_info::mode to be pipe_prim_type

2016-05-26 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, May 26, 2016 at 4:09 PM, Brian Paul wrote: > Makes debugging with gdb a little nicer. > --- > src/gallium/include/pipe/p_state.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/include/pipe/p_state.h > b/src/gallium/i

Re: [Mesa-dev] [PATCH 2/2] st/mesa: Invalidate external textures when (re-)binding

2016-05-26 Thread Philipp Zabel
Am Donnerstag, den 26.05.2016, 10:36 -0400 schrieb Ilia Mirkin: > On Thu, May 26, 2016 at 10:31 AM, Marek Olšák wrote: > > On Wed, May 25, 2016 at 3:34 PM, Philipp Zabel > > wrote: > >> Am Mittwoch, den 25.05.2016, 09:23 -0400 schrieb Ilia Mirkin: > >>> Iirc invalidate_resource is to allow backe

Re: [Mesa-dev] [PATCH] gallium: detect avx512 cpu features

2016-05-26 Thread Roland Scheidegger
Am 26.05.2016 um 02:10 schrieb Tim Rowley: > --- > src/gallium/auxiliary/util/u_cpu_detect.c | 17 + > src/gallium/auxiliary/util/u_cpu_detect.h | 10 ++ > 2 files changed, 27 insertions(+) > > diff --git a/src/gallium/auxiliary/util/u_cpu_detect.c > b/src/gallium/auxilia

[Mesa-dev] [PATCH] i965/bxt: Add 2x6 variant

2016-05-26 Thread Ben Widawsky
Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Ben Widawsky --- include/pci_ids/i965_pci_ids.h | 2 ++ src/mesa/drivers/dri/i965/brw_device_info.c | 22 ++ 2 files changed, 24 insertions(+) diff --git a/include/pci_ids/i965_pci_ids.h b/include/pci_ids/i965

[Mesa-dev] [PATCH 2/2] tgsi: fix coverity out-of-bounds warning

2016-05-26 Thread Rob Clark
From: Rob Clark CID 1271532 (#1 of 1): Out-of-bounds read (OVERRUN)34. overrun-local: Overrunning array of 2 16-byte elements at element index 2 (byte offset 32) by dereferencing pointer &inst.Dst[i]. Signed-off-by: Rob Clark --- src/gallium/auxiliary/tgsi/tgsi_text.c | 3 +++ 1 file changed,

[Mesa-dev] [PATCH 1/2] tgsi: fix out of bounds access

2016-05-26 Thread Rob Clark
From: Rob Clark Not sure why coverity calls this an out-of-bounds read vs out-of-bounds write. CID 1358920 (#1 of 1): Out-of-bounds read (OVERRUN)9. overrun-local: Overrunning array r of 3 16-byte elements at element index 3 (byte offset 48) using index chan (which evaluates to 3). Signed-off-b

Re: [Mesa-dev] [PATCH 1/2] nvc0/ir: avoid generating illegal instructions for compute constbuf loads

2016-05-26 Thread Samuel Pitoiset
Makes sense. We should also clamp the index for indirect access as part of the robustness, but this can be done later. Reviewed-by: Samuel Pitoiset On 05/26/2016 04:44 AM, Ilia Mirkin wrote: For user-supplied constbufs, fileIndex is 0. In that case, when we subtract 1, we'll end up loading

Re: [Mesa-dev] [PATCH 2/2] tgsi: fix coverity out-of-bounds warning

2016-05-26 Thread Brian Paul
On 05/26/2016 09:25 AM, Rob Clark wrote: From: Rob Clark CID 1271532 (#1 of 1): Out-of-bounds read (OVERRUN)34. overrun-local: Overrunning array of 2 16-byte elements at element index 2 (byte offset 32) by dereferencing pointer &inst.Dst[i]. Signed-off-by: Rob Clark --- src/gallium/auxiliar

Re: [Mesa-dev] [PATCH 4/5] util/indices: implement provoking vertex conversion for adjacency primitives

2016-05-26 Thread Roland Scheidegger
Am 26.05.2016 um 16:06 schrieb Brian Paul: > Tested with new piglit gl-3.2-adj-prims test. > --- > src/gallium/auxiliary/indices/u_indices.c | 52 > src/gallium/auxiliary/indices/u_indices_gen.py | 83 > +- > src/gallium/auxiliary/indices/u_indices_pr

Re: [Mesa-dev] [PATCH 5/5] util/indices: implement unfilled (tri->line) conversion for adjacency prims

2016-05-26 Thread Roland Scheidegger
Am 26.05.2016 um 16:06 schrieb Brian Paul: > Tested with new piglit gl-3.2-adj-prims test. > --- > src/gallium/auxiliary/indices/u_unfilled_gen.py| 26 > -- > src/gallium/auxiliary/indices/u_unfilled_indices.c | 14 > 2 files changed, 38 insertions(+), 2 delet

Re: [Mesa-dev] [PATCH 4/5] util/indices: implement provoking vertex conversion for adjacency primitives

2016-05-26 Thread Brian Paul
On 05/26/2016 09:35 AM, Roland Scheidegger wrote: Am 26.05.2016 um 16:06 schrieb Brian Paul: Tested with new piglit gl-3.2-adj-prims test. --- src/gallium/auxiliary/indices/u_indices.c | 52 src/gallium/auxiliary/indices/u_indices_gen.py | 83 +-

Re: [Mesa-dev] [PATCH 5/5] util/indices: implement unfilled (tri->line) conversion for adjacency prims

2016-05-26 Thread Brian Paul
On 05/26/2016 09:37 AM, Roland Scheidegger wrote: Am 26.05.2016 um 16:06 schrieb Brian Paul: Tested with new piglit gl-3.2-adj-prims test. --- src/gallium/auxiliary/indices/u_unfilled_gen.py| 26 -- src/gallium/auxiliary/indices/u_unfilled_indices.c | 14

Re: [Mesa-dev] [PATCH 5/5] gallium: change pipe_draw_info::mode to be pipe_prim_type

2016-05-26 Thread Roland Scheidegger
Am 26.05.2016 um 16:09 schrieb Brian Paul: > Makes debugging with gdb a little nicer. > --- > src/gallium/include/pipe/p_state.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/include/pipe/p_state.h > b/src/gallium/include/pipe/p_state.h > index eacf9bb..396

Re: [Mesa-dev] [PATCH 4/5] util/indices: implement provoking vertex conversion for adjacency primitives

2016-05-26 Thread Roland Scheidegger
Am 26.05.2016 um 17:39 schrieb Brian Paul: > On 05/26/2016 09:35 AM, Roland Scheidegger wrote: >> Am 26.05.2016 um 16:06 schrieb Brian Paul: >>> Tested with new piglit gl-3.2-adj-prims test. >>> --- >>> src/gallium/auxiliary/indices/u_indices.c | 52 >>> src/gallium/auxilia

Re: [Mesa-dev] [PATCH 2/2] tgsi: fix coverity out-of-bounds warning

2016-05-26 Thread Rob Clark
On Thu, May 26, 2016 at 11:33 AM, Brian Paul wrote: > On 05/26/2016 09:25 AM, Rob Clark wrote: >> >> From: Rob Clark >> >> CID 1271532 (#1 of 1): Out-of-bounds read (OVERRUN)34. overrun-local: >> Overrunning array of 2 16-byte elements at element index 2 (byte offset >> 32) by dereferencing point

Re: [Mesa-dev] [PATCH v4] swr: implement clipPlanes/clipVertex/clipDistance/cullDistance

2016-05-26 Thread Rowley, Timothy O
> On May 26, 2016, at 8:33 AM, Ilia Mirkin wrote: > > On Thu, May 26, 2016 at 9:11 AM, Tim Rowley > wrote: >> v2: only load the clip vertex once >> >> v3: fix clip enable logic, add cullDistance >> >> v4: remove duplicate fields in vs jit key, fix test of clip fixup needed >> --- >> docs/GL3

Re: [Mesa-dev] [PATCH 2/2] nvc0/ir: handle a load's reg result not being used for locked variants

2016-05-26 Thread Samuel Pitoiset
What about the Maxwell logic? LDS expects a GPR at def(0) and in case the dst reg doesn't exist, you move the predicate to def(0). Are you sure you don't need to check if dst(0) is not a predicate in emitLDS()? On 05/26/2016 04:44 AM, Ilia Mirkin wrote: For a load locked, we might not use th

Re: [Mesa-dev] [PATCH 2/2] nvc0/ir: handle a load's reg result not being used for locked variants

2016-05-26 Thread Samuel Pitoiset
On 05/26/2016 05:49 PM, Samuel Pitoiset wrote: What about the Maxwell logic? LDS expects a GPR at def(0) and in case the dst reg doesn't exist, you move the predicate to def(0). Are you sure you don't need to check if dst(0) is not a predicate in emitLDS()? Oh, actually not because we don't

Re: [Mesa-dev] [PATCH 2/2] nvc0/ir: handle a load's reg result not being used for locked variants

2016-05-26 Thread Samuel Pitoiset
On 05/26/2016 05:51 PM, Samuel Pitoiset wrote: On 05/26/2016 05:49 PM, Samuel Pitoiset wrote: What about the Maxwell logic? LDS expects a GPR at def(0) and in case the dst reg doesn't exist, you move the predicate to def(0). Are you sure you don't need to check if dst(0) is not a predicate

Re: [Mesa-dev] [PATCH] i965/bxt: Add 2x6 variant

2016-05-26 Thread Kristian Høgsberg
On Thu, May 26, 2016 at 8:08 AM, Ben Widawsky wrote: > Cc: mesa-sta...@lists.freedesktop.org > Signed-off-by: Ben Widawsky The numbers check out. Reviewed-by: Kristian Høgsberg > --- > include/pci_ids/i965_pci_ids.h | 2 ++ > src/mesa/drivers/dri/i965/brw_device_info.c | 22 +++

Re: [Mesa-dev] [PATCH 00/10] i965, anv: Stop linking the Vulkan driver to libmesa

2016-05-26 Thread Emil Velikov
On 26 May 2016 at 02:52, Jason Ekstrand wrote: > This little series reworks the build a bit so that we can stop linking the > Vulkan driver to libmesa. This lets us substantially cut down on the size > of the final binary. The whole series can be found in a branch here: > > https://cgit.freedesk

Re: [Mesa-dev] [PATCH 10/10] anv: Stop linking against libmesa.la and libdri_test_stubs.la

2016-05-26 Thread Kristian Høgsberg
Update the TODO as well. With that, for the series: Reviewed-by: Kristian Høgsberg On Wed, May 25, 2016 at 6:52 PM, Jason Ekstrand wrote: > This brings the final size of an optimized non-debug build of the Vulkan > driver down to 2.9 MB as opposed to 8.7 MB for the dri driver. > --- > src/inte

Re: [Mesa-dev] [PATCH 2/2] nvc0/ir: handle a load's reg result not being used for locked variants

2016-05-26 Thread Ilia Mirkin
On Thu, May 26, 2016 at 11:51 AM, Samuel Pitoiset wrote: > > > On 05/26/2016 05:49 PM, Samuel Pitoiset wrote: >> >> What about the Maxwell logic? LDS expects a GPR at def(0) and in case >> the dst reg doesn't exist, you move the predicate to def(0). >> >> Are you sure you don't need to check if ds

Re: [Mesa-dev] [PATCH 2/2] svga: fix test for unfilled triangles fallback

2016-05-26 Thread Charmaine Lee
This series looks good to me. Reviewed-by: Charmaine Lee From: Brian Paul Sent: Thursday, May 26, 2016 7:09 AM To: mesa-dev@lists.freedesktop.org Cc: Charmaine Lee; Roland Scheidegger Subject: [PATCH 2/2] svga: fix test for unfilled triangles fallback VG

Re: [Mesa-dev] [Mesa-stable] [V2 PATCH] meta: Fix the pbo usage in meta for GLES{1, 2} contexts

2016-05-26 Thread Anuj Phogat
On Thu, May 26, 2016 at 7:18 AM, Emil Velikov wrote: > Hi all, > > On 2 March 2016 at 03:22, Ian Romanick wrote: >> Sorry for the delay. >> >> Reviewed-by: Ian Romanick >> >> >> On 02/09/2016 03:28 PM, Anuj Phogat wrote: >>> OpenGL ES 1.0 doesn't support using GL_STREAM_DRAW and both >>> ES 1.0

[Mesa-dev] [PATCH 2/2] mesa: add support for GLSL ES 3.20 version string

2016-05-26 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/mesa/main/getstring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index c39a076..6e90511 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -80,6 +80,8 @@ shading_language_ver

  1   2   3   >