Re: [Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-07-20 Thread Iago Toral
On Mon, 2015-07-20 at 10:56 -0700, Anuj Phogat wrote: > On Mon, Jul 20, 2015 at 5:10 AM, Iago Toral wrote: > > On Fri, 2015-06-19 at 13:40 -0700, Anuj Phogat wrote: > >> On Tue, Jun 16, 2015 at 9:21 PM, Jason Ekstrand > >> wrote: > >> > > >> > On Jun 16, 2015 11:15, "Anuj Phogat" wrote: > >> >>

Re: [Mesa-dev] [PATCH 16/20] program_resource: add subroutine support (v2)

2015-07-20 Thread Ilia Mirkin
On Tue, Jul 21, 2015 at 1:19 AM, Dave Airlie wrote: > @@ -366,18 +411,25 @@ _mesa_GetProgramResourceLocation(GLuint program, GLenum > programInterface, > case GL_PROGRAM_OUTPUT: >break; > > + case GL_VERTEX_SUBROUTINE_UNIFORM: > + case GL_FRAGMENT_SUBROUTINE_UNIFORM: > + if (

Re: [Mesa-dev] [PATCH 05/20] glsl: Add extension plumbing and define for ARB_shader_subroutine

2015-07-20 Thread Ilia Mirkin
I could be missing it, but does anything restrict the availability of this define to core contexts? I believe you have comparable issues elsewhere in the change (where you only look at the extension being enabled vs also looking at the API). On Tue, Jul 21, 2015 at 1:19 AM, Dave Airlie wrote: > F

Re: [Mesa-dev] [PATCH 09/20] mesa: add inline conversion functions for ARB_shader_subroutine

2015-07-20 Thread Ilia Mirkin
On Tue, Jul 21, 2015 at 1:19 AM, Dave Airlie wrote: > From: Dave Airlie > > This handles converting the shader stages to the internal > prefix along with the program resource interfaces. > > Reviewed-by: Chris Forbes > Signed-off-by: Dave Airlie > --- > src/mesa/main/shaderobj.h | 84 > ++

Re: [Mesa-dev] [PATCH 02/20] glapi: Add ARB_shader_subroutine functions and enums (v2)

2015-07-20 Thread Ilia Mirkin
You're adding this extension as core-only, so the functions should only be accessible in core contexts. I believe that Ian added some magical way to get the dispatch logic to handle this. On Tue, Jul 21, 2015 at 1:19 AM, Dave Airlie wrote: > From: Chris Forbes > > v2: fix output="true" and LENGT

[Mesa-dev] [PATCH 20/20] st/mesa: enable shader subroutine

2015-07-20 Thread Dave Airlie
From: Dave Airlie since this touches drivers, only enable it on gallium for now for drivers reporting GLSL 1.30 or above. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa

[Mesa-dev] [PATCH 18/20] mesa: fill out the ARB_shader_subroutine APIs

2015-07-20 Thread Dave Airlie
From: Dave Airlie This fleshes out the APIs, using the program resource APIs where they should match. It also sets the default values to valid subroutines. Signed-off-by: Dave Airlie --- src/mesa/main/shaderapi.c | 450 +- src/mesa/main/shaderapi.h

[Mesa-dev] [PATCH 16/20] program_resource: add subroutine support (v2)

2015-07-20 Thread Dave Airlie
From: Dave Airlie This fleshes out the ARB_program_query support for the APIs that ARB_shader_subroutine introduces, leaving some TODOs for later addition. v2: reworked for lots of the ARB_program_interface_query entry points and tests Signed-off-by: Dave Airlie --- src/mesa/main/program_reso

[Mesa-dev] [PATCH 17/20] program: add subroutine uniform support (v1.1)

2015-07-20 Thread Dave Airlie
From: Dave Airlie Add support for the subroutine uniform type ir->mesa.cpp v1.1: add subroutine to int to switch Signed-off-by: Dave Airlie --- src/mesa/program/ir_to_mesa.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.

[Mesa-dev] [PATCH 14/20] mesa/mtypes: add gl_subroutine_function and uniform storage to shader (v2)

2015-07-20 Thread Dave Airlie
From: Dave Airlie This adds the necessary storage for subroutine info to gl_shader. v2: add comments, rename one member Signed-off-by: Dave Airlie --- src/mesa/main/mtypes.h | 28 1 file changed, 28 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main

[Mesa-dev] [PATCH 19/20] st/mesa: add subroutine bits (v1.1)

2015-07-20 Thread Dave Airlie
From: Dave Airlie Just add support for the subroutine type to the glsl->tgsi convertor. v1.1: add subroutine to int support. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_

[Mesa-dev] [PATCH 03/20] mesa: Add extension tracking for arb_shader_subroutine (v2)

2015-07-20 Thread Dave Airlie
From: Chris Forbes v2: [airlied]: merge version check update. Reviewed-by: Tapani Pälli Reviewed-by: Kenneth Graunke Signed-off-by: Chris Forbes Signed-off-by: Dave Airlie --- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + src/mesa/main/version.c| 2 +- 3 files chan

[Mesa-dev] [PATCH 15/20] glsl: add uniform and program resource support (v2)

2015-07-20 Thread Dave Airlie
From: Dave Airlie This adds linker support for subroutine uniforms, they have some subtle differences from real uniforms, we also hide them and they are given internal uniform names. This also adds the subroutine locations and subroutine uniforms to the program resource tracking for later use.

[Mesa-dev] [PATCH 09/20] mesa: add inline conversion functions for ARB_shader_subroutine

2015-07-20 Thread Dave Airlie
From: Dave Airlie This handles converting the shader stages to the internal prefix along with the program resource interfaces. Reviewed-by: Chris Forbes Signed-off-by: Dave Airlie --- src/mesa/main/shaderobj.h | 84 +++ 1 file changed, 84 insertions

[Mesa-dev] [PATCH 08/20] glsl: don't eliminate subroutine types.

2015-07-20 Thread Dave Airlie
From: Dave Airlie This stops dead code from removing subroutines types, we need these for the queries to work properly. Signed-off-by: Dave Airlie --- src/glsl/opt_dead_code.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glsl/opt_dead_code.cpp b/src/glsl/opt_dead_code.cpp index

[Mesa-dev] [PATCH 11/20] glsl/ir: allow ir_call to handle subroutine calling

2015-07-20 Thread Dave Airlie
From: Dave Airlie This adds a ir_variable which contains the subroutine uniform and an array rvalue for the deref of that uniform, these are stored in the ir_call and lowered later. Reviewed-by: Chris Forbes Signed-off-by: Dave Airlie --- src/glsl/ir.h | 21 - 1 file chang

[Mesa-dev] [PATCH 12/20] glsl: add ast/parser support for subroutine parsing storage (v3.2)

2015-07-20 Thread Dave Airlie
From: Dave Airlie This is the guts of the GLSL parser and AST support for shader subroutines. The code creates a subroutine type in the parser, and uses that there to validate the identifiers. The parser also distinguishes between subroutine types/function prototypes /uniforms and subroutine def

[Mesa-dev] [PATCH 05/20] glsl: Add extension plumbing and define for ARB_shader_subroutine

2015-07-20 Thread Dave Airlie
From: Chris Forbes Reviewed-by: Tapani Pälli Reviewed-by: Kenneth Graunke Signed-off-by: Chris Forbes Signed-off-by: Dave Airlie --- src/glsl/glcpp/glcpp-parse.y| 3 +++ src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h | 2 ++ src/glsl/standalone_scaffol

[Mesa-dev] [PATCH 04/20] mesa: Add glGet support for ARB_shader_subroutine implementation limits

2015-07-20 Thread Dave Airlie
From: Chris Forbes Reviewed-by: Tapani Pälli Reviewed-by: Kenneth Graunke Signed-off-by: Chris Forbes Signed-off-by: Dave Airlie --- src/mesa/main/config.h | 6 ++ src/mesa/main/get.c | 1 + src/mesa/main/get_hash_params.py | 4 src/mesa/main/tests

[Mesa-dev] [PATCH 01/20] mesa: Add stubs for ARB_shader_subroutine entrypoints

2015-07-20 Thread Dave Airlie
From: Chris Forbes Reviewed-by: Tapani Pälli Reviewed-by: Kenneth Graunke Signed-off-by: Chris Forbes Signed-off-by: Dave Airlie --- src/mesa/main/shaderapi.c | 63 +++ src/mesa/main/shaderapi.h | 35 ++ 2 files changed, 98

[Mesa-dev] [PATCH 10/20] glsl/ir: add subroutine information storage to ir_function (v1.1)

2015-07-20 Thread Dave Airlie
From: Dave Airlie We need to store two sets of info into the ir_function, if this is a function definition with a subroutine list (subroutine_def) or if it a subroutine prototype. v1.1: add some more documentation. Reviewed-by: Chris Forbes Signed-off-by: Dave Airlie --- src/glsl/ir.cpp

[Mesa-dev] ARB_shader_subroutine - now explicit!

2015-07-20 Thread Dave Airlie
So I revisited ARB_shader_subroutine again today, and noticed it was lacking wrt ARB_explicit_uniform_location thanks to some piglits from Igalia/Intel. So I've added support for that, cleaned up some things, like calculating the compatible shaders for a uniform at link time, stopped the dead code

[Mesa-dev] [PATCH 07/20] glsl/types: add new subroutine type (v3.1)

2015-07-20 Thread Dave Airlie
From: Dave Airlie This type will be used to store the name of subroutine types as in subroutine void myfunc(void); will store myfunc into a subroutine type. This is required to the parser can identify a subroutine type in a uniform decleration as a valid type, and also for looking up the type l

[Mesa-dev] [PATCH 02/20] glapi: Add ARB_shader_subroutine functions and enums (v2)

2015-07-20 Thread Dave Airlie
From: Chris Forbes v2: fix output="true" and LENGTH typo Reviewed-by: Tapani Pälli Reviewed-by: Kenneth Graunke Signed-off-by: Chris Forbes Signed-off-by: Dave Airlie --- src/mapi/glapi/gen/ARB_shader_subroutine.xml | 84 src/mapi/glapi/gen/Makefile.am

[Mesa-dev] [PATCH 06/20] glsl: Make `subroutine` a reserved keyword

2015-07-20 Thread Dave Airlie
From: Chris Forbes Reviewed-by: Tapani Pälli Reviewed-by: Kenneth Graunke Signed-off-by: Chris Forbes Signed-off-by: Dave Airlie --- src/glsl/glsl_lexer.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll index 845deeb..22055

[Mesa-dev] [PATCH 13/20] glsl/ir: add subroutine lowering pass (v2.3)

2015-07-20 Thread Dave Airlie
From: Dave Airlie This lowers the enhanced ir_call using the lookaside table of subroutines into an if ladder. This initially was done at the AST level but it caused some ordering issues so a separate pass was required. v2: clone return value derefs. v2.1: update for subroutine->int convert. v2.

[Mesa-dev] [PATCH] st/mesa: Silence GCC unused-variable warning.

2015-07-20 Thread Vinson Lee
Silence a release build warning. st_glsl_to_tgsi.cpp: In function 'pipe_error st_translate_program(gl_context*, uint, ureg_program*, glsl_to_tgsi_visitor*, const gl_program*, GLuint, const GLuint*, const GLuint*, const ubyte*, const ubyte*, const GLuint*, const GLuint*, GLuint, const GLuint*, c

Re: [Mesa-dev] [PATCH 19/19] st/mesa: enable shader subroutine

2015-07-20 Thread Dave Airlie
On 21 July 2015 at 08:50, Marek Olšák wrote: > If the extension is core only, we can rip out the checks, but the > checks that test ctx->API == API_OPEGL_CORE should stay (if they are > missing, they should be added). > I've reconsidered this, and I'm sticking with my original plan, NIR and the i

Re: [Mesa-dev] [PATCH 1/2] mesa: Detect and provide macros for function attributes pure and const.

2015-07-20 Thread Vinson Lee
On Tue, Jul 14, 2015 at 11:45 AM, Eric Anholt wrote: > These are really useful hints to the compiler in the absence of link-time > optimization, and I'm going to use them in VC4. > > I've made the const attribute be ATTRIBUTE_CONST unlike other function > attributes, because we have other things i

[Mesa-dev] [PATCH] scons: Add additional GCC function attribute macros.

2015-07-20 Thread Vinson Lee
Match the attributes currently checked in configure.ac. Signed-off-by: Vinson Lee --- scons/gallium.py | 5 + 1 file changed, 5 insertions(+) diff --git a/scons/gallium.py b/scons/gallium.py index 51b84d7..af30c09 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -380,11 +380,16 @@ de

[Mesa-dev] [Bug 91254] (regresion) video using VA-API on Intel slow and freeze system with mesa 10.6 or 10.6.1

2015-07-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91254 --- Comment #7 from Jordan Justen --- (In reply to Tomasz C. from comment #0) > * config and/or log files etc. > GLX Renderer: Mesa DRI Intel Ironlake Mobile GLX Version: 2.1 Mesa 10.6.0 > > The problem is on Intel Core i5 M 450 - first generati

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Roland Scheidegger
Am 21.07.2015 um 02:10 schrieb Ilia Mirkin: > On Mon, Jul 20, 2015 at 7:53 PM, Roland Scheidegger > wrote: >> Am 20.07.2015 um 22:46 schrieb Ilia Mirkin: >>> On Mon, Jul 20, 2015 at 3:53 PM, Brian Paul wrote: On 07/20/2015 01:19 PM, Ilia Mirkin wrote: > On Mon, Jul 20, 2015 at 2:44

[Mesa-dev] [PATCH] gallium: replace INLINE with inline

2015-07-20 Thread Ilia Mirkin
Generated by running: git grep -l INLINE src/gallium/ | xargs sed -i 's/\bINLINE\b/inline/g' git grep -l INLINE src/mesa/state_tracker/ | xargs sed -i 's/\bINLINE\b/inline/g' git checkout src/gallium/state_trackers/clover/Doxyfile and manual edits to src/gallium/include/pipe/p_compiler.h src/gall

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Ilia Mirkin
On Mon, Jul 20, 2015 at 7:53 PM, Roland Scheidegger wrote: > Am 20.07.2015 um 22:46 schrieb Ilia Mirkin: >> On Mon, Jul 20, 2015 at 3:53 PM, Brian Paul wrote: >>> On 07/20/2015 01:19 PM, Ilia Mirkin wrote: >>> On Mon, Jul 20, 2015 at 2:44 PM, Ilia Mirkin wrote: > > Hi Brian, > >

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Roland Scheidegger
Am 20.07.2015 um 22:46 schrieb Ilia Mirkin: > On Mon, Jul 20, 2015 at 3:53 PM, Brian Paul wrote: >> On 07/20/2015 01:19 PM, Ilia Mirkin wrote: >> >>> On Mon, Jul 20, 2015 at 2:44 PM, Ilia Mirkin wrote: Hi Brian, You marked off ARB_copy_image (and ARB_clear_texture) as in-progr

Re: [Mesa-dev] [PATCH 0/5] [RFC] Value range propagation for NIR

2015-07-20 Thread Connor Abbott
On Tue, Jul 14, 2015 at 3:08 PM, Thomas Helland wrote: > The deadline for GSoC is aproaching a bit faster than I'm > comfortable with, so I need to get this out on the list > for some review-action. It's not yet complete, but I think > it's getting there. At least it should be possible to infer >

[Mesa-dev] [PATCH 1/7] configure.ac: null, android, gdi are not valid egl-platforms

2015-07-20 Thread Thomas Helland
Hi Emil, I looked at the whole series, but didn't really feel qualified to review the whole bunch. I've sent reviews on the patches I felt I had a good take on. If you don't get anyone else to review the remainder then shout out and I'll give it a shot. - Thomas 2015-07-17 22:57 GMT+02:00 Emil V

Re: [Mesa-dev] [PATCH 19/19] st/mesa: enable shader subroutine

2015-07-20 Thread Marek Olšák
If the extension is core only, we can rip out the checks, but the checks that test ctx->API == API_OPEGL_CORE should stay (if they are missing, they should be added). Marek On Thu, Jul 9, 2015 at 3:27 PM, Roland Scheidegger wrote: > Should expose that only if hw has glsl 130 support? > > Roland

[Mesa-dev] [PATCH 5/7] egl/wayland: use designated initializers

2015-07-20 Thread Thomas Helland
This patch is: Reviewed-by: Thomas Helland 2015-07-10 19:49 GMT+02:00 Emil Velikov : > Signed-off-by: Emil Velikov > --- > src/egl/drivers/dri2/platform_wayland.c | 26 +- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff --git a/src/egl/drivers/dri2/platform

Re: [Mesa-dev] [PATCH 15/19] program_resource: add subroutine support

2015-07-20 Thread Marek Olšák
On Thu, Jul 9, 2015 at 9:17 AM, Dave Airlie wrote: > From: Dave Airlie > > This fleshes out the ARB_program_query support for the > APIs that ARB_shader_subroutine introduces, leaving > some TODOs for later addition. > > Signed-off-by: Dave Airlie > --- > src/mesa/main/shader_query.cpp | 46 >

Re: [Mesa-dev] [PATCH 14/19] glsl: add uniform and program resource support

2015-07-20 Thread Marek Olšák
On Thu, Jul 9, 2015 at 9:17 AM, Dave Airlie wrote: > From: Dave Airlie > > This adds linker support for subroutine uniforms, they > have some subtle differences from real uniforms, we also hide > them and they are given internal uniform names. > > This also adds the subroutine locations and subro

[Mesa-dev] [PATCH 2/7] egl: consolidate ifdef HAVE_LIBDRM blocks

2015-07-20 Thread Thomas Helland
This looks a lot better. The patch is: Reviewed-by: Thomas Helland 2015-07-10 19:49 GMT+02:00 Emil Velikov : > Move the code around rather than having it scattered. No functional > change. > > Signed-off-by: Emil Velikov > --- > src/egl/drivers/dri2/egl_dri2.c | 210 > +++

[Mesa-dev] [PATCH 1/7] configure.ac: null, android, gdi are not valid egl-platforms

2015-07-20 Thread Thomas Helland
2015-07-10 19:48 GMT+02:00 Emil Velikov : > ... and update the documentation to reflect reality. > null and gdi are gone, and surfaceless is a recent addition. > > Signed-off-by: Emil Velikov > --- > configure.ac | 3 --- > docs/egl.html | 6 +++--- > 2 files changed, 3 insertions(+), 6 deletion

Re: [Mesa-dev] [PATCH rebased] nouveau: use bool instead of boolean

2015-07-20 Thread Ilia Mirkin
[resend without the patch to not anger the mailing list] On Mon, Jul 20, 2015 at 5:25 PM, Ilia Mirkin wrote: > In many places you end up changing comments where I think the full > "boolean" word makes more sense. e.g. > > - /* Deal with AND 1.0 here since nv50 can't fold into boolean float */ >

Re: [Mesa-dev] [PATCH] i965/vec4: Fix liveness analysis with BRW_OPCODE_SEL

2015-07-20 Thread Kenneth Graunke
On Monday, July 20, 2015 03:14:14 PM Iago Toral Quiroga wrote: > We only consider a vgrf defined by a given block if the block writes to it > unconditionally. So far we have been checking this by testing that the > instruction is not predicated, however, in the case of BRW_OPCODE_SEL, > the predica

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Ilia Mirkin
On Mon, Jul 20, 2015 at 3:53 PM, Brian Paul wrote: > On 07/20/2015 01:19 PM, Ilia Mirkin wrote: > >> On Mon, Jul 20, 2015 at 2:44 PM, Ilia Mirkin wrote: >>> >>> Hi Brian, >>> >>> You marked off ARB_copy_image (and ARB_clear_texture) as in-progress >>> by VMware some months ago -- has there been a

Re: [Mesa-dev] [PATCH 1/3] gallivm: Don't use raw_debug_ostream for dissasembling

2015-07-20 Thread Jose Fonseca
On 20/07/15 18:35, Tom Stellard wrote: All LLVM API calls that require an ostream object have been removed from the disassemble() function, so we don't need to use this class to wrap _debug_printf() we can just call this function directly. --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 27

Re: [Mesa-dev] [PATCH 1/5] utils: automake: remove uncommon $()

2015-07-20 Thread Chad Versace
On Fri 17 Jul 2015, Emil Velikov wrote: > On 17 July 2015 at 19:11, Ilia Mirkin wrote: > > On Fri, Jul 17, 2015 at 2:11 PM, Eric Anholt wrote: > >> Matt Turner writes: > >> > >>> On Fri, Jul 17, 2015 at 10:17 AM, Emil Velikov > >>> wrote: > Cc: Eric Anholt > Signed-off-by: Emil Veli

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Roland Scheidegger
Theoretically resource_copy_region should be the right function for that. Both ARB_copy_image and d3d10 ResourceCopyRegion define this as essentially the equivalent of memcpy. I guess the difficulty is that GL's view classes are a bit different compared to d3d10 typeless groups - d3d10 doesn't allo

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Brian Paul
On 07/20/2015 01:19 PM, Ilia Mirkin wrote: On Mon, Jul 20, 2015 at 2:44 PM, Ilia Mirkin wrote: Hi Brian, You marked off ARB_copy_image (and ARB_clear_texture) as in-progress by VMware some months ago -- has there been any movement on that? It appears that Bioshock Infinite requires ARB_copy_im

Re: [Mesa-dev] [PATCH 1/6] mesa: move check for no-op glFrontFace call earlier

2015-07-20 Thread Brian Paul
On 07/20/2015 12:27 PM, Ian Romanick wrote: Patches 1, 2, and 3 are Reviewed-by: Ian Romanick The other patches look correct too, but the whole series is optimizations, so do you have any before / after performance data? No, I don't. I happened across these while looking at apitraces of Go

Re: [Mesa-dev] [PATCH 3/3] gallivm: Initialize LLVM Modules's DataLayout to an empty string.

2015-07-20 Thread Roland Scheidegger
Am 20.07.2015 um 19:35 schrieb Tom Stellard: > This fixes crashes in some piglit tests on radeonsi that use the draw > module, and llvmpipe is likely completely broken without this on LLVM > 3.8. Yes, see https://llvm.org/bugs/show_bug.cgi?id=24172 > > This is just a temporary solution. The cor

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Ilia Mirkin
On Mon, Jul 20, 2015 at 2:44 PM, Ilia Mirkin wrote: > Hi Brian, > > You marked off ARB_copy_image (and ARB_clear_texture) as in-progress > by VMware some months ago -- has there been any movement on that? It > appears that Bioshock Infinite requires ARB_copy_image so might be > nice to get that ad

Re: [Mesa-dev] [PATCH 3/6] mesa: move check for no-op glShadeModel call earlier

2015-07-20 Thread Eric Anholt
Brian Paul writes: > --- > src/mesa/main/light.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c > index 4021dbe..f215c93 100644 > --- a/src/mesa/main/light.c > +++ b/src/mesa/main/light.c > @@ -44,14 +44,14 @@ _mesa_Sh

Re: [Mesa-dev] [PATCH] swrast: remove unneeded & operators in _swrast_choose_texture_sample_func()

2015-07-20 Thread Eric Anholt
Brian Paul writes: > --- > src/mesa/swrast/s_texfilter.c | 56 > +-- > 1 file changed, 28 insertions(+), 28 deletions(-) > > diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c > index abc1727..cd6395f 100644 > --- a/src/mesa/swrast

[Mesa-dev] ARB_copy_image support in Gallium

2015-07-20 Thread Ilia Mirkin
Hi Brian, You marked off ARB_copy_image (and ARB_clear_texture) as in-progress by VMware some months ago -- has there been any movement on that? It appears that Bioshock Infinite requires ARB_copy_image so might be nice to get that added in. The complication in implementing ARB_copy_image was tha

Re: [Mesa-dev] [PATCH 06/18] i965: Pass the map-mode along to intel_mipmap_tree_map_raw()

2015-07-20 Thread Ian Romanick
On 07/06/2015 03:33 AM, Chris Wilson wrote: > Since we can distinguish when mapping between READ and WRITE, we can > pass along the map mode to avoid stalls and flushes where possible. > > Signed-off-by: Chris Wilson > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 28 > ++---

Re: [Mesa-dev] [PATCH] swrast: remove unneeded & operators in _swrast_choose_texture_sample_func()

2015-07-20 Thread Anuj Phogat
On Mon, Jul 20, 2015 at 11:28 AM, Brian Paul wrote: > --- > src/mesa/swrast/s_texfilter.c | 56 > +-- > 1 file changed, 28 insertions(+), 28 deletions(-) > > diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c > index abc1727..cd6395

Re: [Mesa-dev] [PATCH 04/11] dri_interface: drop __NOT_HAVE_DRM_H magic

2015-07-20 Thread Ian Romanick
On 07/09/2015 01:12 PM, Emil Velikov wrote: > On 9 July 2015 at 18:50, Ian Romanick wrote: >> On 07/08/2015 10:07 AM, Emil Velikov wrote: >>> Signed-off-by: Emil Velikov >>> --- >>> include/GL/internal/dri_interface.h | 11 --- >>> 1 file changed, 11 deletions(-) >>> >>> diff --git a/inc

Re: [Mesa-dev] [PATCH 4/6] mesa: optimize _math_matrix_set_identity() and return a bool result

2015-07-20 Thread Ian Romanick
On 07/17/2015 05:48 PM, Brian Paul wrote: > Skip memcpy() calls, etc. if the matrix is already the identity. Return > true/false to indicate if we're really changing the matrix or not. > --- > src/mesa/math/m_matrix.c | 23 +++ > src/mesa/math/m_matrix.h | 2 +- > 2 files cha

[Mesa-dev] [Bug 83631] /usr/include/GL/glxext.h:480:143: error: 'GLintptr' has not been declared

2015-07-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83631 Ian Romanick changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #9 from Ian Romanick

[Mesa-dev] [PATCH] swrast: remove unneeded & operators in _swrast_choose_texture_sample_func()

2015-07-20 Thread Brian Paul
--- src/mesa/swrast/s_texfilter.c | 56 +-- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index abc1727..cd6395f 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/

Re: [Mesa-dev] [PATCH 1/6] mesa: move check for no-op glFrontFace call earlier

2015-07-20 Thread Ian Romanick
Patches 1, 2, and 3 are Reviewed-by: Ian Romanick The other patches look correct too, but the whole series is optimizations, so do you have any before / after performance data? On 07/17/2015 05:48 PM, Brian Paul wrote: > If the new mode matches the current mode, there can be no error. > --- >

Re: [Mesa-dev] [PATCH 6/6] mesa: check for identity matrix in _mesa_LoadMatrixf()

2015-07-20 Thread Anuj Phogat
On Fri, Jul 17, 2015 at 5:48 PM, Brian Paul wrote: > Google Earth often calls glLoadMatrixf() with an identity matrix instead > of glLoadIdentity() to set the modelview and texture matrices. In many > cases, the matrix is already the identity so the calls are redundant. > > By being a bit smarter

Re: [Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-07-20 Thread Anuj Phogat
On Mon, Jul 20, 2015 at 5:10 AM, Iago Toral wrote: > On Fri, 2015-06-19 at 13:40 -0700, Anuj Phogat wrote: >> On Tue, Jun 16, 2015 at 9:21 PM, Jason Ekstrand wrote: >> > >> > On Jun 16, 2015 11:15, "Anuj Phogat" wrote: >> >> >> >> Without this patch, piglit test fbo_integer_readpixels_sint_uint

[Mesa-dev] [PATCH 3/3] gallivm: Initialize LLVM Modules's DataLayout to an empty string.

2015-07-20 Thread Tom Stellard
This fixes crashes in some piglit tests on radeonsi that use the draw module, and llvmpipe is likely completely broken without this on LLVM 3.8. This is just a temporary solution. The correct solution will require creating a TargetMachine during gallivm initialization and pulling the DataLayout f

[Mesa-dev] [PATCH 2/3] gallivm: Add ifdefs so raw_debug_stream is only defined when used

2015-07-20 Thread Tom Stellard
Its only use is to implement a custom version of LLVMDumpValue on some Windows and embedded platforms. --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_deb

[Mesa-dev] [PATCH 1/3] gallivm: Don't use raw_debug_ostream for dissasembling

2015-07-20 Thread Tom Stellard
All LLVM API calls that require an ostream object have been removed from the disassemble() function, so we don't need to use this class to wrap _debug_printf() we can just call this function directly. --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 27 +- 1 file change

Re: [Mesa-dev] [PATCH] nouveau: use bool instead of boolean

2015-07-20 Thread Emil Velikov
On 18/07/15 16:02, samuel.pitoiset wrote: > > > On 17/07/2015 23:08, Ilia Mirkin wrote: >> On Fri, Jul 17, 2015 at 5:02 PM, Emil Velikov >> wrote: >>> On 16/07/15 22:39, Samuel Pitoiset wrote: Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/codegen/nv50_ir.h

Re: [Mesa-dev] Register spilling issues in the NIR->vec4 backend

2015-07-20 Thread Ben Widawsky
On Mon, Jul 20, 2015 at 03:35:26PM +0200, Iago Toral wrote: > Hi, > On Thu, 2015-07-16 at 08:15 -0700, Jason Ekstrand wrote: > > > > On Jul 15, 2015 11:20 PM, "Iago Toral" wrote: > > > > > > On Wed, 2015-07-15 at 11:02 -0700, Connor Abbott wrote: > > > > On Wed, Jul 15, 2015 at 7:49 AM, Iago Tora

Re: [Mesa-dev] [PATCH] mesa: automake: replace $(RM) with rm -f

2015-07-20 Thread Daniel Stone
Hi, On 20 July 2015 at 17:40, Emil Velikov wrote: > On 18 July 2015 at 23:13, Jonathan Gray wrote: >> $(RM) is set to 'rm -f' by GNU make, this is not true of other versions >> of make and RM is not one of the macros required by POSIX. >> > Slightly unfortunate but I think we can live with it. W

Re: [Mesa-dev] [Mesa-stable] [PATCH 16/18] i965: Prevent coordinate overflow in intel_emit_linear_blit

2015-07-20 Thread Anuj Phogat
On Sat, Jul 18, 2015 at 1:24 AM, Chris Wilson wrote: > On Fri, Jul 17, 2015 at 05:12:54PM -0700, Anuj Phogat wrote: >> On Mon, Jul 6, 2015 at 3:33 AM, Chris Wilson >> wrote: >> > + do { >> > + /* The pitch given to the GPU must be DWORD aligned, and >> > + * we want width to match p

[Mesa-dev] [Bug 83631] /usr/include/GL/glxext.h:480:143: error: 'GLintptr' has not been declared

2015-07-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83631 --- Comment #8 from Emil Velikov --- With all due respect guys, should one take a closer look and remove the need for GL_GLEXT_LEGACY and its friends GL_GLEXT_PROTOTYPES/GLX_GLXEXT_PROTOTYPES. Iirc those were added as a workaround for ABI non-co

Re: [Mesa-dev] [PATCH] mesa: automake: replace $(RM) with rm -f

2015-07-20 Thread Emil Velikov
On 18 July 2015 at 23:13, Jonathan Gray wrote: > $(RM) is set to 'rm -f' by GNU make, this is not true of other versions > of make and RM is not one of the macros required by POSIX. > Slightly unfortunate but I think we can live with it. Would like to see if Matt/other have objections against this

[Mesa-dev] [Bug 91387] Mesa 10.6.1 implementation error: invalid target in _swrast_choose_texture_sample_func

2015-07-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91387 --- Comment #1 from Brian Paul --- Can you debug this a bit to see where this is happening and what the texture target is? I don't see how this would directly lead to a segfault in Mesa. After the error message we select the null_sample_func()

[Mesa-dev] [PATCHv2 09/14] i965: Reserve enough parameter entries for all image uniforms used in the program.

2015-07-20 Thread Francisco Jerez
v2: Add CS support. --- src/mesa/drivers/dri/i965/brw_cs.cpp | 3 ++- src/mesa/drivers/dri/i965/brw_gs.c | 1 + src/mesa/drivers/dri/i965/brw_vs.c | 3 ++- src/mesa/drivers/dri/i965/brw_wm.c | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw

[Mesa-dev] [PATCHv2 10/14] i965: Hook up image state upload.

2015-07-20 Thread Francisco Jerez
v2: Add CS support. Move the image_params array back to brw_stage_prog_data. --- src/mesa/drivers/dri/i965/brw_context.h | 10 +++- src/mesa/drivers/dri/i965/brw_gs_surface_state.c | 25 src/mesa/drivers/dri/i965/brw_state.h| 4 ++ src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCHv2 08/14] i965: Define and initialize image parameter structure.

2015-07-20 Thread Francisco Jerez
This will be used to pass image meta-data to the shader when we cannot use typed surface reads and writes. All entries except surface_idx and size are otherwise unused and will get eliminated by the uniform packing pass. size will be used for bounds checking with some image formats and will be us

Re: [Mesa-dev] [PATCH] svga: scons: remove unused HAVE_SYS_TYPES_H define

2015-07-20 Thread Brian Paul
On 07/17/2015 02:14 PM, Emil Velikov wrote: On 17 July 2015 at 20:22, Brian Paul wrote: Can you elaborate in the commit message why this is being done or why the HAVE_SYS_TYPES_H definition is not needed? That saves me time having to research the issue myself. I'm not sure I can elaborate mo

Re: [Mesa-dev] [PATCH excerpt] mesa: Rename _mesa_lookup_enum_by_nr() to _mesa_enum_to_string().

2015-07-20 Thread Brian Paul
Looks OK to me. Thanks for doing this. Reviewed-by: Brian Paul On 07/18/2015 02:36 AM, Kenneth Graunke wrote: Generated by sed; no manual changes. Signed-off-by: Kenneth Graunke --- We talked about doing this back in 2013, but the patches never quite materialized. Here's the obvious sed j

Re: [Mesa-dev] [PATCH] i965/fs: Remove redundant hand-unrolled first iteration of loop.

2015-07-20 Thread Francisco Jerez
Francisco Jerez writes: > This seems rather silly and would lead to memory corruption if the > size of a VGRF was allowed to be zero. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.

[Mesa-dev] [PATCH] i965/fs: Remove redundant hand-unrolled first iteration of loop.

2015-07-20 Thread Francisco Jerez
This seems rather silly and would lead to memory corruption if the size of a VGRF was allowed to be zero. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs

Re: [Mesa-dev] [Nouveau] [PATCH] nv50: adjust min/max lod by base level on G80

2015-07-20 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 07/20/2015 09:26 AM, Ilia Mirkin wrote: Make the assumption that there's a 1:1 TIC <-> TSC connection, and increase min/max lod by the relevant texture's base level. Also if there's no mipfilter, we have to enable it while forcing min/max lod to the base level.

Re: [Mesa-dev] Register spilling issues in the NIR->vec4 backend

2015-07-20 Thread Iago Toral
Hi, On Thu, 2015-07-16 at 08:15 -0700, Jason Ekstrand wrote: > > On Jul 15, 2015 11:20 PM, "Iago Toral" wrote: > > > > On Wed, 2015-07-15 at 11:02 -0700, Connor Abbott wrote: > > > On Wed, Jul 15, 2015 at 7:49 AM, Iago Toral > wrote: > > > > Hi, > > > > > > > > when we sent the patches for the n

Re: [Mesa-dev] [PATCH] i965/vec4: Fix liveness analysis with BRW_OPCODE_SEL

2015-07-20 Thread Francisco Jerez
Iago Toral Quiroga writes: > We only consider a vgrf defined by a given block if the block writes to it > unconditionally. So far we have been checking this by testing that the > instruction is not predicated, however, in the case of BRW_OPCODE_SEL, > the predication is used to select the value t

[Mesa-dev] [PATCH] i965/vec4: Fix liveness analysis with BRW_OPCODE_SEL

2015-07-20 Thread Iago Toral Quiroga
We only consider a vgrf defined by a given block if the block writes to it unconditionally. So far we have been checking this by testing that the instruction is not predicated, however, in the case of BRW_OPCODE_SEL, the predication is used to select the value to write, not to decide if the write i

Re: [Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-07-20 Thread Iago Toral
On Fri, 2015-06-19 at 13:40 -0700, Anuj Phogat wrote: > On Tue, Jun 16, 2015 at 9:21 PM, Jason Ekstrand wrote: > > > > On Jun 16, 2015 11:15, "Anuj Phogat" wrote: > >> > >> Without this patch, piglit test fbo_integer_readpixels_sint_uint fails, > >> when > >> forced to use the meta pbo path. > >>

Re: [Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-07-20 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > Cc: > --- > src/mesa/main/readpix.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c > index caa2648..a9416ef 100644 > --- a/src/mesa/main/readpix.c >

Re: [Mesa-dev] [PATCH 04/14] mesa: Add a mesa utility function _mesa_need_signed_unsigned_int_conversion()

2015-07-20 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > This utility function is used in a later patch. > > Signed-off-by: Anuj Phogat > Cc: > --- > src/mesa/main/readpix.c | 32 ++-- > src/mesa/main/readpix.h | 4 > 2 files changed, 22 insertions(+), 14 deleti

Re: [Mesa-dev] [PATCH 01/14] mesa: Turn get_readpixels_transfer_ops() in to a global function

2015-07-20 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > This utility function is utilized in a later patch. > > Signed-off-by: Anuj Phogat > Cc: > --- > Jenkins showed no piglit regressions with this series. > > src/mesa/main/readpix.c | 14 -- > src/mesa/main/readpix.h | 6 ++

Re: [Mesa-dev] [PATCH v2 02/14] meta: Fix transfer operations check in meta pbo path for readpixels

2015-07-20 Thread Iago Toral
On Fri, 2015-07-17 at 10:36 -0700, Anuj Phogat wrote: > Iago, Jason: Patches 2 and 5 in this series depend on patches 1 and 4 > respectively, Since you guys reviewed 2 and 5, would you also like to > review 1, 4 and/or other patches in this series? > > Thanks > -Anuj Sure, I'll have a look at the

[Mesa-dev] [PATCH] nv50: adjust min/max lod by base level on G80

2015-07-20 Thread Ilia Mirkin
Make the assumption that there's a 1:1 TIC <-> TSC connection, and increase min/max lod by the relevant texture's base level. Also if there's no mipfilter, we have to enable it while forcing min/max lod to the base level. This fixes many, but not all, tex-miplevel-selection tests on G80. Signed-o