[Mesa-dev] [Bug 89616] bufferobj.c:1639:7: error: format not a string literal and no format arguments [-Werror=format-security]

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89616 Fabio Pedretti changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 89642] dEQP-GLES3: dEQP-GLES3.functional.shaders.preprocessor.predefined_macros.line_2_vertex fails because of wrong __LINE__ values

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89642 Bug ID: 89642 Summary: dEQP-GLES3: dEQP-GLES3.functional.shaders.preprocessor.predefined_ macros.line_2_vertex fails because of wrong __LINE__ values Pro

[Mesa-dev] [Bug 89642] dEQP-GLES3: dEQP-GLES3.functional.shaders.preprocessor.predefined_macros.line_2_vertex fails because of wrong __LINE__ values

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89642 Samuel Iglesias changed: What|Removed |Added CC||sigles...@igalia.com -- You are recei

Re: [Mesa-dev] [PATCH 08/23] mesa: implementation of glGetProgramResourceiv

2015-03-18 Thread Tapani Pälli
On 03/16/2015 08:30 PM, Ilia Mirkin wrote: On Fri, Mar 13, 2015 at 4:37 AM, Tapani Pälli wrote: Patch adds required helper functions to shaderapi.h and the actual implementation. The property query functionality can be tested with tests for following functions that are refactored by later pa

Re: [Mesa-dev] [PATCH] SConstruct: Fix PEP 8 issues.

2015-03-18 Thread Jose Fonseca
Hi Vinson, I have mixed feelings about this. I don't really agree with all things mandated with PEP 8. Comments inline. On 17/03/15 06:15, Vinson Lee wrote: Signed-off-by: Vinson Lee --- SConstruct | 66 -- 1 file changed, 34 in

[Mesa-dev] [Bug 79629] [Dri3 bisected] piglit glx_GLX_ARB_create_context_current_with_no_framebuffer fail

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 --- Comment #19 from Axel Davy --- The proposed patch doesn't seem to have been merged to mesa. XiongZhang: can you send it to ml ? -- You are receiving this mail because: You are the assignee for the bug. _

[Mesa-dev] [Bug 89433] GCC 4.2 does not support -Wvla

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89433 José Fonseca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 1/4] mapi: add new _glapi_new_nop_table() and _glapi_set_nop_handler()

2015-03-18 Thread Jose Fonseca
Sorry for not reviewing it earlier. I missed this series. On 13/03/15 19:22, Brian Paul wrote: _glapi_new_nop_table() creates a new dispatch table populated with pointers to no-op functions. _glapi_set_nop_handler() is used to register a callback function which will be called from each of the

Re: [Mesa-dev] [RFC PATCH 0/7] Prune stale components, take 2

2015-03-18 Thread Jose Fonseca
On 14/03/15 22:36, Emil Velikov wrote: Hi all, As a follow up to Jose's initial series dropping st/{egl,vega} and others here is the next round of cleanups, Namely this series - removes st/gbm, winsys/sw/{wayland,fbdev}, all of which no longer used by anyone, - cleans up libEGL (and config

Re: [Mesa-dev] [PATCH 09/23] mesa: enable GL_ARB_program_interface_query extension

2015-03-18 Thread Tapani Pälli
On 03/17/2015 12:22 AM, Ilia Mirkin wrote: On Fri, Mar 13, 2015 at 4:37 AM, Tapani Pälli wrote: (and mark it as DONE in docs/GL3.txt) And add to relnotes? ok, sure Signed-off-by: Tapani Pälli --- docs/GL3.txt | 4 ++-- src/mesa/main/extensions.c | 1 + src/mesa/main/

[Mesa-dev] [Bug 79629] [Dri3 bisected] piglit glx_GLX_ARB_create_context_current_with_no_framebuffer fail

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 --- Comment #20 from Emil Velikov --- (In reply to Axel Davy from comment #19) > The proposed patch doesn't seem to have been merged to mesa. > > XiongZhang: can you send it to ml ? It's already there but people may have missed it. http://patch

[Mesa-dev] [Bug 79629] [Dri3 bisected] piglit glx_GLX_ARB_create_context_current_with_no_framebuffer fail

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 --- Comment #21 from Axel Davy --- The patch is fine, except spacing. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [Bug 89590] Crash in glLinkProgram with shaders with multiple constant arrays

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89590 Tapani Pälli changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|mesa-dev@list

Re: [Mesa-dev] [PATCH 9/9] i965: Use NIR by default for Fragment shaders on SNB+

2015-03-18 Thread Connor Abbott
On Wed, Mar 18, 2015 at 1:56 AM, Matt Turner wrote: > Thanks. Looked through stats and at some of the regressions. > > Some of the areas I noticed we were doing worse: > > We generate two CMPs for discard_if; only one without NIR. I think you > had an idea about solving this. > > SEL peephole inte

[Mesa-dev] GSoC Introduction

2015-03-18 Thread Jagmeet Singh
First of all, I am sorry for writing you too late. Was kind of overwhelmed by the process of GSOC. I have good experience working with C,C++ environments. I use Linux regularly and have experience with cairo graphics library. Beside these I am also have interest in embedded systems and system leve

Re: [Mesa-dev] [PATCH 9/9] i965: Use NIR by default for Fragment shaders on SNB+

2015-03-18 Thread Jason Ekstrand
On Wed, Mar 18, 2015 at 7:22 AM, Connor Abbott wrote: > On Wed, Mar 18, 2015 at 1:56 AM, Matt Turner wrote: >> Thanks. Looked through stats and at some of the regressions. >> >> Some of the areas I noticed we were doing worse: >> >> We generate two CMPs for discard_if; only one without NIR. I thi

Re: [Mesa-dev] [PATCH 9/9] i965: Use NIR by default for Fragment shaders on SNB+

2015-03-18 Thread Jason Ekstrand
On Wed, Mar 18, 2015 at 7:22 AM, Connor Abbott wrote: > On Wed, Mar 18, 2015 at 1:56 AM, Matt Turner wrote: >> Thanks. Looked through stats and at some of the regressions. >> >> Some of the areas I noticed we were doing worse: >> >> We generate two CMPs for discard_if; only one without NIR. I thi

Re: [Mesa-dev] [PATCH 9/9] i965: Use NIR by default for Fragment shaders on SNB+

2015-03-18 Thread Ilia Mirkin
On Wed, Mar 18, 2015 at 11:27 AM, Jason Ekstrand wrote: > On Wed, Mar 18, 2015 at 7:22 AM, Connor Abbott wrote: >> On Wed, Mar 18, 2015 at 1:56 AM, Matt Turner wrote: >>> Thanks. Looked through stats and at some of the regressions. >>> >>> Some of the areas I noticed we were doing worse: >>> >>>

Re: [Mesa-dev] [PATCH 9/9] i965: Use NIR by default for Fragment shaders on SNB+

2015-03-18 Thread Connor Abbott
On Wed, Mar 18, 2015 at 11:27 AM, Jason Ekstrand wrote: > On Wed, Mar 18, 2015 at 7:22 AM, Connor Abbott wrote: >> On Wed, Mar 18, 2015 at 1:56 AM, Matt Turner wrote: >>> Thanks. Looked through stats and at some of the regressions. >>> >>> Some of the areas I noticed we were doing worse: >>> >>>

[Mesa-dev] gallium separate depth and stencil

2015-03-18 Thread Ilia Mirkin
Hello, I've run into a situation where a3xx hardware does not natively support Z32F_S8 (interleaved). However it will happily support Z32F and S8 separately (and at the same time). Haven't looked at how a4xx handles this, but wouldn't be surprised if it were the same. One way to do this is to exp

Re: [Mesa-dev] [PATCH 00/15] GL_AMD_performance_monitor

2015-03-18 Thread Samuel Pitoiset
Bump, is someone want to make a review of this patch set ? Especially the "core" stuff... On 03/09/2015 10:09 PM, Samuel Pitoiset wrote: Hello, A series I have waited too long to re-submit, but I recently refactored the code and fixed some minor issues. This patchset enables GL_AMD_performanc

[Mesa-dev] [PATCH 1/6] scons: Disable MSVC signed/unsigned mismatch warnings.

2015-03-18 Thread Jose Fonseca
From: José Fonseca By default gcc ignores the issue, and as result code that mixes signed/unsigned is so widespread through the code base that it ends up being little more than noise, potentially obscuring more pertinent warnings. Maybe one day we enable the corresponding gcc warnings and cleanu

[Mesa-dev] [PATCH 4/6] glsl: Avoid GLboolean vs bool arithmetic MSVC warnings.

2015-03-18 Thread Jose Fonseca
Note that GLboolean is an alias for unsigned char, which lacks the implicit true/false semantics that C++/C99 bool have. --- src/glsl/linker.cpp | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 0c44677..1abcb32 100644 --- a/

[Mesa-dev] [PATCH 6/6] swrast: Use BITFIELD64_BIT for arrayAttribs.

2015-03-18 Thread Jose Fonseca
As VARYING_SLOT_MAX can be bigger than 32. I'll probably stop building swrast with MSVC in the near future, but this seems a real bug regardless. --- src/mesa/swrast/s_span.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c in

[Mesa-dev] [PATCH 5/6] scons: Don't link program_lexer.l/y twice.

2015-03-18 Thread Jose Fonseca
program/lex.yy.c and program/program_parse.tab.c is already included in the PROGRAM_FILES variable. We still need to specify the dependency relationship though. --- src/mesa/SConscript | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/mesa/SConscript b/src/mesa/S

[Mesa-dev] [PATCH 2/6] scons: Silence MSVC warnings about overflows in constant arithmetic.

2015-03-18 Thread Jose Fonseca
These get triggered even when using the standard C99 INFINITY/NAN constants. --- scons/gallium.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scons/gallium.py b/scons/gallium.py index 9d53848..b4018e7 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -495,8 +495,10 @@ def generate(

[Mesa-dev] [PATCH 3/6] gallivm: Use INFINITY directly.

2015-03-18 Thread Jose Fonseca
Already done below. --- src/gallium/auxiliary/gallivm/lp_bld_arit.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c index cd05f11..0d4eaea 100644 --- a/src/gallium/auxiliary/galli

[Mesa-dev] [Bug 89624] Drivers, Gallium/legacy swrast glDrawPixels differences

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89624 --- Comment #3 from Dan Sebald --- Taking a second look at the Gallium driver PNG, I'm wondering if my original assessment is correct, i.e., that the scaled image in the frame buffer is extending past the bottom in the y-dimension. The edges see

Re: [Mesa-dev] [PATCH 6/6] swrast: Use BITFIELD64_BIT for arrayAttribs.

2015-03-18 Thread Brian Paul
On 03/18/2015 10:34 AM, Jose Fonseca wrote: As VARYING_SLOT_MAX can be bigger than 32. I'll probably stop building swrast with MSVC in the near future, but this seems a real bug regardless. --- src/mesa/swrast/s_span.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me

Re: [Mesa-dev] [PATCH 9/9] i965: Use NIR by default for Fragment shaders on SNB+

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 8:27 AM, Jason Ekstrand wrote: > On Wed, Mar 18, 2015 at 7:22 AM, Connor Abbott wrote: >> On Wed, Mar 18, 2015 at 1:56 AM, Matt Turner wrote: >>> Thanks. Looked through stats and at some of the regressions. >>> >>> Some of the areas I noticed we were doing worse: >>> >>>

Re: [Mesa-dev] gallium separate depth and stencil

2015-03-18 Thread Marek Olšák
Manual interleaving and deinterleaving in the driver seems to be the easiest solution. You just need 2 blits. You can reuse u_blitter for setting up stuff or you can create your own thing. Adding separate Z+S to Gallium and st/mesa would be quite a lot work, and what you want to support is an inte

[Mesa-dev] [Bug 89662] context.c:943: undefined reference to `_glapi_new_nop_table'

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89662 Bug ID: 89662 Summary: context.c:943: undefined reference to `_glapi_new_nop_table' Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All)

[Mesa-dev] [Bug 89662] context.c:943: undefined reference to `_glapi_new_nop_table'

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89662 --- Comment #1 from Brian Paul --- What is your ./configure command line? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug. ___ mesa-dev mai

[Mesa-dev] [Bug 89662] context.c:943: undefined reference to `_glapi_new_nop_table'

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89662 --- Comment #2 from Vinson Lee --- $ ./autogen.sh --with-dri-drivers=i965 --with-gallium-drivers= $ make $ make check -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.

Re: [Mesa-dev] [PATCH 3/6] gallivm: Use INFINITY directly.

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 9:34 AM, Jose Fonseca wrote: > Already done below. > --- > src/gallium/auxiliary/gallivm/lp_bld_arit.c | 9 + > 1 file changed, 1 insertion(+), 8 deletions(-) > > diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c > b/src/gallium/auxiliary/gallivm/lp_bld_ari

Re: [Mesa-dev] [PATCH 00/15] GL_AMD_performance_monitor

2015-03-18 Thread Marek Olšák
The Gallium interface looked good to me (except where I replied). Sorry, I probably won't have time to review the st/mesa patch. Marek On Wed, Mar 18, 2015 at 5:00 PM, Samuel Pitoiset wrote: > Bump, is someone want to make a review of this patch set ? Especially the > "core" stuff... > > > On 03

Re: [Mesa-dev] GSoC Introduction

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 4:36 AM, Jagmeet Singh wrote: > So I would like to ask what should be my next step before submitting a > actual proposal with mesa-dev? Finding something you want to work on is a really important step. :) It also helps the people selecting which proposals to accept a lot

[Mesa-dev] [PATCH] glsl: Use INFINITY instead of std::numeric_limits::infinity().

2015-03-18 Thread Matt Turner
--- src/glsl/builtin_functions.cpp | 4 ++-- src/glsl/s_expression.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index c607572..524b8d6 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/bui

Re: [Mesa-dev] [PATCH] glsl: Use INFINITY instead of std::numeric_limits::infinity().

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 10:18 AM, Matt Turner wrote: > diff --git a/src/glsl/s_expression.cpp b/src/glsl/s_expression.cpp > index 7eaa491..f82e155 100644 > --- a/src/glsl/s_expression.cpp > +++ b/src/glsl/s_expression.cpp > @@ -70,7 +70,7 @@ read_atom(void *ctx, const char *&src, char *&symbol_buf

Re: [Mesa-dev] gallium separate depth and stencil

2015-03-18 Thread Roland Scheidegger
To provide some background why separate attachments aren't supported in gallium: 1) OpenGL always allowed this, however noone seriously expected this to actually be supported. At least gaming hardware pretty much was limited to d24s8. 2) D3D10 also only has one attachment point for both, so there m

Re: [Mesa-dev] gallium separate depth and stencil

2015-03-18 Thread Ilia Mirkin
OK, makes sense. The other place where separate buffers could be reasonable is, unrelatedly, ARB_texture_stencil8. My plan for that was to just let it be though and just disallow any depth attachments next to that s8 attachment. (The implementation got stymied when I realized that nvidia hw doesn't

[Mesa-dev] [PATCH] i965: fix `make check` target

2015-03-18 Thread Mark Janes
4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for i965 gtests. This commit links the tests with libglapi, which contains the missing symbols. --- src/mesa/drivers/dri/i965/Makefile.am | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/

Re: [Mesa-dev] [PATCH 9/9] i965: Use NIR by default for Fragment shaders on SNB+

2015-03-18 Thread Jason Ekstrand
On Wed, Mar 18, 2015 at 9:52 AM, Matt Turner wrote: > On Wed, Mar 18, 2015 at 8:27 AM, Jason Ekstrand wrote: >> On Wed, Mar 18, 2015 at 7:22 AM, Connor Abbott wrote: >>> On Wed, Mar 18, 2015 at 1:56 AM, Matt Turner wrote: Thanks. Looked through stats and at some of the regressions. >>

Re: [Mesa-dev] [PATCH] glsl: Use INFINITY instead of std::numeric_limits::infinity().

2015-03-18 Thread Brian Paul
On 03/18/2015 11:21 AM, Matt Turner wrote: On Wed, Mar 18, 2015 at 10:18 AM, Matt Turner wrote: diff --git a/src/glsl/s_expression.cpp b/src/glsl/s_expression.cpp index 7eaa491..f82e155 100644 --- a/src/glsl/s_expression.cpp +++ b/src/glsl/s_expression.cpp @@ -70,7 +70,7 @@ read_atom(void *ctx,

Re: [Mesa-dev] [PATCH] i965: fix `make check` target

2015-03-18 Thread Brian Paul
On 03/18/2015 11:38 AM, Mark Janes wrote: 4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for i965 gtests. This commit links the tests with libglapi, which contains the missing symbols. --- src/mesa/drivers/dri/i965/Makefile.am | 10 +- 1 file changed, 9 insertions(+),

Re: [Mesa-dev] [PATCH] i965: fix `make check` target

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 10:38 AM, Mark Janes wrote: > 4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for > i965 gtests. This commit links the tests with libglapi, which > contains the missing symbols. I'm not really sure linking to libglapi is the right thing to do. > --- > sr

Re: [Mesa-dev] [PATCH] i965: fix `make check` target

2015-03-18 Thread Mark Janes
Matt Turner writes: > On Wed, Mar 18, 2015 at 10:38 AM, Mark Janes wrote: >> 4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for >> i965 gtests. This commit links the tests with libglapi, which >> contains the missing symbols. > > I'm not really sure linking to libglapi is the r

Re: [Mesa-dev] [PATCH] i965: fix `make check` target

2015-03-18 Thread Mark Janes
Brian Paul writes: > On 03/18/2015 11:38 AM, Mark Janes wrote: >> 4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for >> i965 gtests. This commit links the tests with libglapi, which >> contains the missing symbols. >> --- >> src/mesa/drivers/dri/i965/Makefile.am | 10 +

Re: [Mesa-dev] [PATCH] i965: fix `make check` target

2015-03-18 Thread Brian Paul
On 03/18/2015 12:02 PM, Mark Janes wrote: Brian Paul writes: On 03/18/2015 11:38 AM, Mark Janes wrote: 4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for i965 gtests. This commit links the tests with libglapi, which contains the missing symbols. --- src/mesa/drivers/dri/i

Re: [Mesa-dev] [PATCH] i965: fix `make check` target

2015-03-18 Thread Brian Paul
On 03/18/2015 12:10 PM, Brian Paul wrote: On 03/18/2015 12:02 PM, Mark Janes wrote: Brian Paul writes: On 03/18/2015 11:38 AM, Mark Janes wrote: 4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for i965 gtests. This commit links the tests with libglapi, which contains the mis

[Mesa-dev] [PATCH] dri: add _glapi_set_nop_handler(), _glapi_new_nop_table() to dri_test.c

2015-03-18 Thread Brian Paul
I wasn't aware of these _glapi_ stub functions when I committed 4bdbb588a9d385509f9168e38bfdb76952ba469c. Fixes "make check" Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89662 --- src/mesa/drivers/dri/common/dri_test.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sr

[Mesa-dev] [Bug 89662] context.c:943: undefined reference to `_glapi_new_nop_table'

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89662 --- Comment #3 from Brian Paul --- Vinson, can you test the patch I just posted to mesa-dev: "dri: add _glapi_set_nop_handler(), _glapi_new_nop_table() to dri_test.c" -- You are receiving this mail because: You are the QA Contact for the bug. Y

[Mesa-dev] [PATCH 1/5] glsl: Allow vector logic ops to be generated.

2015-03-18 Thread Matt Turner
They're not accessible from the source language, but optimizations are allowed to generate them. --- src/glsl/ir_validate.cpp | 6 +++--- src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp | 9 +++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff -

[Mesa-dev] [PATCH 2/5] glsl: Recognize mul(b2f(a), b2f(b)) as a logical AND.

2015-03-18 Thread Matt Turner
Transform this into b2f(and(a, b)). total instructions in shared programs: 6190291 -> 6189225 (-0.02%) instructions in affected programs: 267247 -> 266181 (-0.40%) helped:866 --- src/glsl/opt_algebraic.cpp | 4 1 file changed, 4 insertions(+) diff --git a

[Mesa-dev] [PATCH 3/5] glsl: Recognize sat(add(b2f(a), b2f(b))) as a logical OR.

2015-03-18 Thread Matt Turner
Transform this into b2f(or(a, b)). --- src/glsl/opt_algebraic.cpp | 12 1 file changed, 12 insertions(+) diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp index 0d1f3fc..98c852a 100644 --- a/src/glsl/opt_algebraic.cpp +++ b/src/glsl/opt_algebraic.cpp @@ -421,6 +421

[Mesa-dev] [PATCH 4/5] nir: Recognize mul(b2f(a), b2f(b)) as a logical AND.

2015-03-18 Thread Matt Turner
Transform this into b2f(and(a, b)). total instructions in shared programs: 6205448 -> 6204391 (-0.02%) instructions in affected programs: 284030 -> 282973 (-0.37%) helped:903 HURT: 6 --- src/glsl/nir/nir_opt_algebraic.py | 2 ++

[Mesa-dev] [PATCH 5/5] nir: Recognize sat(add(b2f(a), b2f(b))) as a logical OR.

2015-03-18 Thread Matt Turner
Transform this into b2f(or(a, b)). instructions in affected programs: 432 -> 430 (-0.46%) helped:2 --- src/glsl/nir/nir_opt_algebraic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/nir/nir_opt_algebraic.py b/src/glsl/nir/nir_opt_algebraic.py i

Re: [Mesa-dev] [PATCH] dri: add _glapi_set_nop_handler(), _glapi_new_nop_table() to dri_test.c

2015-03-18 Thread Mark Janes
Reviewed-by: Mark Janes Brian Paul writes: > I wasn't aware of these _glapi_ stub functions when I committed > 4bdbb588a9d385509f9168e38bfdb76952ba469c. Fixes "make check" > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89662 > --- > src/mesa/drivers/dri/common/dri_test.c | 11

[Mesa-dev] [Bug 89662] context.c:943: undefined reference to `_glapi_new_nop_table'

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89662 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 3/5] glsl: Recognize sat(add(b2f(a), b2f(b))) as a logical OR.

2015-03-18 Thread Ian Romanick
Did this patch help anything? On 03/18/2015 11:37 AM, Matt Turner wrote: > Transform this into b2f(or(a, b)). > --- > src/glsl/opt_algebraic.cpp | 12 > 1 file changed, 12 insertions(+) > > diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp > index 0d1f3fc..98c852a

Re: [Mesa-dev] [PATCH 1/5] glsl: Allow vector logic ops to be generated.

2015-03-18 Thread Ian Romanick
Patches 1, 2, and 3 are Reviewed-by: Ian Romanick Patches 4 and 5 are Acked-by: Ian Romanick On 03/18/2015 11:37 AM, Matt Turner wrote: > They're not accessible from the source language, but optimizations are > allowed to generate them. > --- > src/glsl/ir_validate.cpp

Re: [Mesa-dev] [PATCH 3/5] glsl: Recognize sat(add(b2f(a), b2f(b))) as a logical OR.

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 11:51 AM, Ian Romanick wrote: > Did this patch help anything? Nope. I guess NIR is able to recognize something here that the GLSL IR can't. Thanks for reviewing! ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://li

Re: [Mesa-dev] [PATCH 4/6] glsl: Avoid GLboolean vs bool arithmetic MSVC warnings.

2015-03-18 Thread Ian Romanick
On 03/18/2015 09:34 AM, Jose Fonseca wrote: > Note that GLboolean is an alias for unsigned char, which lacks the > implicit true/false semantics that C++/C99 bool have. > --- > src/glsl/linker.cpp | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/src/glsl/linker.cpp

Re: [Mesa-dev] Summer of Code ideas (maybe just an idea wishlist?)

2015-03-18 Thread Matt Turner
On Thu, Mar 12, 2015 at 9:46 PM, Matt Turner wrote: > Here are some ideas I think might be reasonable GSoC ideas. > > - GLSL linking in NIR > - Would allow us to stop doing optimizations and other expensive > things on GLSL IR Ian said this should wait until everything is using NIR so that

Re: [Mesa-dev] [PATCH] u_primconvert: add primitive restart support

2015-03-18 Thread Brian Paul
On 03/17/2015 08:13 PM, Dave Airlie wrote: This add primitive restart support to the prim conversion. This involves changing the API for the translate functions as we need to pass the prim restart index and the original number of indices into the translate functions. primitive restart is suppor

[Mesa-dev] [PATCH] nir: Use a list instead of a hash_table for inputs, outputs, and uniforms

2015-03-18 Thread Jason Ekstrand
We never did a single hash table lookup in the entire NIR code base that I found so there was no real benifit to doing it that way. I suppose that for linking, we'll probably want to be able to lookup by name but we can leave building that hash table to the linker. In the mean time this was causi

Re: [Mesa-dev] [PATCH] nir: Use a list instead of a hash_table for inputs, outputs, and uniforms

2015-03-18 Thread Ilia Mirkin
On Wed, Mar 18, 2015 at 3:36 PM, Jason Ekstrand wrote: > diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp > index 047cb51..e3c085a 100644 > --- a/src/glsl/nir/glsl_to_nir.cpp > +++ b/src/glsl/nir/glsl_to_nir.cpp > @@ -98,6 +98,9 @@ private: > /* whether the IR we're ope

Re: [Mesa-dev] [PATCH] nir: Use a list instead of a hash_table for inputs, outputs, and uniforms

2015-03-18 Thread Jason Ekstrand
On Mar 18, 2015 12:39 PM, "Ilia Mirkin" wrote: > > On Wed, Mar 18, 2015 at 3:36 PM, Jason Ekstrand wrote: > > diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp > > index 047cb51..e3c085a 100644 > > --- a/src/glsl/nir/glsl_to_nir.cpp > > +++ b/src/glsl/nir/glsl_to_nir.cpp >

Re: [Mesa-dev] Summer of Code ideas (maybe just an idea wishlist?)

2015-03-18 Thread Aditya Avinash
Hi, I am looking for a GSOC project. I am interested in working on driver. Hardware available: All AMD gpus (+1 APU) NVIDIA k40, GTX780, Quadro 3500, GT755M Intel: Haswell (buying on next pay date) On Wed, Mar 18, 2015 at 2:58 PM, Matt Turner wrote: > On Thu, Mar 12, 2015 at 9:46 PM, Matt Turne

[Mesa-dev] [PATCH] main: Add TEXTURE_CUBE_MAP support in CopyTextureSubImage3D.

2015-03-18 Thread Laura Ekstrand
So it turns out that this doesn't actually fix any bugs or add any features, stictly speaking. However, it does avoid a lot of kludginess. Previously, if you called glCopyTextureSubImage3D(texcube, 0, 0, 0, zoffset = 3, ... it would grab the texture image object for face = 0 in teximage.c instea

[Mesa-dev] [PATCH] glsl: Annotate as_foo functions that the this pointer cannot be NULL

2015-03-18 Thread Ian Romanick
From: Ian Romanick We use the idoim ir_foo *x = y->as_foo(); if (x == NULL) return; all over the place. GCC generates some quite lovely code for this. One such example: 340a5b: 83 7d 18 04 cmpl $0x4,0x18(%rbp) 340a5f: 0f 85 06 04 00 00 jne34

Re: [Mesa-dev] [PATCH] glsl: Annotate as_foo functions that the this pointer cannot be NULL

2015-03-18 Thread Ilia Mirkin
On Wed, Mar 18, 2015 at 4:25 PM, Ian Romanick wrote: > From: Ian Romanick > > We use the idoim > >ir_foo *x = y->as_foo(); >if (x == NULL) > return; > > all over the place. GCC generates some quite lovely code for this. > One such example: > > 340a5b: 83 7d 18 04

[Mesa-dev] [PATCH] docs: Update progress on ARB_direct_state_access.

2015-03-18 Thread Laura Ekstrand
--- docs/GL3.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 5d59341..fcbb213 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -194,10 +194,10 @@ GL 4.5, GLSL 4.50: GL_ARB_derivative_controlDONE (i965, nv50

Re: [Mesa-dev] [PATCH] glsl: Annotate as_foo functions that the this pointer cannot be NULL

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 1:25 PM, Ian Romanick wrote: > From: Ian Romanick > > We use the idoim typo: idiom > >ir_foo *x = y->as_foo(); >if (x == NULL) > return; > > all over the place. GCC generates some quite lovely code for this. > One such example: > > 340a5b: 83 7d 18

[Mesa-dev] [Bug 89662] context.c:943: undefined reference to `_glapi_new_nop_table'

2015-03-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89662 --- Comment #5 from Christoph Haag --- Created attachment 114451 --> https://bugs.freedesktop.org/attachment.cgi?id=114451&action=edit similar error in line 525 I seem to get the same error in make install, with 627991dbf74ce5aee9ce75155fc27a4

Re: [Mesa-dev] [PATCH] glsl: Annotate as_foo functions that the this pointer cannot be NULL

2015-03-18 Thread Ian Romanick
On 03/18/2015 01:29 PM, Ilia Mirkin wrote: > On Wed, Mar 18, 2015 at 4:25 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> We use the idoim >> >>ir_foo *x = y->as_foo(); >>if (x == NULL) >> return; >> >> all over the place. GCC generates some quite lovely code for this. >> One s

Re: [Mesa-dev] [PATCH] docs: Update progress on ARB_direct_state_access.

2015-03-18 Thread Matt Turner
Acked-by: Matt Turner Feel free to push it. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 1/3] mesa: Replace _mesa_round_to_even() with _mesa_roundeven().

2015-03-18 Thread Matt Turner
Eric's initial patch adding constant expression evaluation for ir_unop_round_even used nearbyint. The open-coded _mesa_round_to_even implementation came about without much explanation after a reviewer asked whether nearbyint depended on the application not modifying the rounding mode. Of course (as

[Mesa-dev] [PATCH 2/3] util: Add a roundeven test.

2015-03-18 Thread Matt Turner
Reviewed-by: Carl Worth --- src/util/Makefile.am | 4 +- src/util/roundeven_test.c | 140 ++ 2 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 src/util/roundeven_test.c diff --git a/src/util/Makefile.am b/src/util/Makefile.am

[Mesa-dev] [PATCH 3/3] util: Optimize _mesa_roundeven with SSE 4.1.

2015-03-18 Thread Matt Turner
The SSE 4.1 ROUND instructions let us implement roundeven directly. Otherwise we assume that the rounding mode has not been modified (as we do in the rest of Mesa) and use rint(). glibc uses the ROUND instruction in rint() after a cpuid check. This patch just lets us inline it directly when we're

[Mesa-dev] [PATCH] i965/fs: Ignore type in cmod prop if scan_inst is CMP.

2015-03-18 Thread Matt Turner
total instructions in shared programs: 6263270 -> 6203091 (-0.96%) instructions in affected programs: 2606529 -> 2546350 (-2.31%) helped:14301 GAINED:5 LOST: 3 Revewed-by: Jason Ekstrand [v1] ---

Re: [Mesa-dev] [PATCH 1/9] i965/cmod_propagation: Ignore type in cmod prop if scan_inst is cmp

2015-03-18 Thread Matt Turner
On Tue, Mar 17, 2015 at 7:17 PM, Jason Ekstrand wrote: > From: Matt Turner > > Shader-db results for FS instructions with NIR on HSW: > > total instructions in shared programs: 4186747 -> 4129871 (-1.36%) > instructions in affected programs: 2438094 -> 2381218 (-2.33%) > helped:

Re: [Mesa-dev] [PATCH] main: Add TEXTURE_CUBE_MAP support in CopyTextureSubImage3D.

2015-03-18 Thread Anuj Phogat
On Wed, Mar 18, 2015 at 1:06 PM, Laura Ekstrand wrote: > So it turns out that this doesn't actually fix any bugs or add any features, > stictly speaking. However, it does avoid a lot of kludginess. Previously, if > you called > > glCopyTextureSubImage3D(texcube, 0, 0, 0, zoffset = 3, ... > > it w

Re: [Mesa-dev] [PATCH 2/9] i965/nir: Make our environment variable checking smarter

2015-03-18 Thread Mark Janes
Reviewed-by: Mark Janes Jason Ekstrand writes: > Before, we enabled NIR if you set INTEL_USE_NIR to anything which mean that > INTEL_USE_NIR=false would actually turn on NIR. In preparation for turning > NIR on by default, this commit makes it smarter by allowing the > INTEL_USE_NIR variable t

Re: [Mesa-dev] [PATCH 2/9] i965/nir: Make our environment variable checking smarter

2015-03-18 Thread Jason Ekstrand
On Wed, Mar 18, 2015 at 3:17 PM, Mark Janes wrote: > Reviewed-by: Mark Janes Thanks! Noted. > > Jason Ekstrand writes: > >> Before, we enabled NIR if you set INTEL_USE_NIR to anything which mean that >> INTEL_USE_NIR=false would actually turn on NIR. In preparation for turning >> NIR on by d

Re: [Mesa-dev] [PATCH] i965/fs: Ignore type in cmod prop if scan_inst is CMP.

2015-03-18 Thread Jason Ekstrand
Yeah, that looks better. V2 R-B me. --Jason On Wed, Mar 18, 2015 at 2:56 PM, Matt Turner wrote: > total instructions in shared programs: 6263270 -> 6203091 (-0.96%) > instructions in affected programs: 2606529 -> 2546350 (-2.31%) > helped:14301 > GAINED:

Re: [Mesa-dev] [PATCH] egl: don't fill client apis string forever.

2015-03-18 Thread Dave Airlie
On 17 March 2015 at 01:39, Matt Turner wrote: > On Sun, Mar 15, 2015 at 10:22 PM, Dave Airlie wrote: >> We never reset the string on eglTerminate, so it grows >> for ever on multiple eglInitialise. >> >> Signed-off-by: Dave Airlie >> --- >> src/egl/main/eglapi.c | 1 + >> 1 file changed, 1 inse

Re: [Mesa-dev] [PATCH] egl: don't fill client apis string forever.

2015-03-18 Thread Matt Turner
On Wed, Mar 18, 2015 at 3:27 PM, Dave Airlie wrote: > On 17 March 2015 at 01:39, Matt Turner wrote: >> On Sun, Mar 15, 2015 at 10:22 PM, Dave Airlie wrote: >>> We never reset the string on eglTerminate, so it grows >>> for ever on multiple eglInitialise. >>> >>> Signed-off-by: Dave Airlie >>> -

Re: [Mesa-dev] [PATCH 1/3] mesa: Replace _mesa_round_to_even() with _mesa_roundeven().

2015-03-18 Thread Carl Worth
On Wed, Mar 18 2015, Matt Turner wrote: > This patch implements _mesa_roundeven{f,}, a function similar to the > roundeven function added by a yet unimplemented technical specification > (ISO/IEC TS 18661-1:2014), with a small difference in behavior -- we > don't bother raising the inexact exceptio

[Mesa-dev] [PATCH 03/22] mesa: Keep track of the last looked-up VAO

2015-03-18 Thread Fredrik Höglund
This saves the cost of repeated hash table lookups when the same vertex array object is referenced in a sequence of calls such as: glVertexArrayAttribFormat(vao, ...); glVertexArrayAttribBinding(vao, ...); glEnableVertexArrayAttrib(vao, ...); ... Note that VAO's are container obje

[Mesa-dev] [PATCH 12/22] mesa: Implement VertexArrayAttrib[I|L]Format

2015-03-18 Thread Fredrik Höglund
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 25 + src/mesa/main/tests/dispatch_sanity.cpp| 3 + src/mesa/main/varray.c | 78 ++ src/mesa/main/varray.h | 15 + 4 files changed, 121 insertions(+) d

[Mesa-dev] [PATCH 21/22] mesa: Implement GetVertexArrayIndexed[64]iv

2015-03-18 Thread Fredrik Höglund
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 14 +++ src/mesa/main/tests/dispatch_sanity.cpp| 2 + src/mesa/main/varray.c | 117 + src/mesa/main/varray.h | 10 +++ 4 files changed, 143 insertions(+) diff -

[Mesa-dev] [PATCH 20/22] mesa: Add support for quering GL_VERTEX_ATTRIB_ARRAY_LONG

2015-03-18 Thread Fredrik Höglund
This parameter was added in OpenGL 4.3 and GL_ARB_direct_state_access. --- src/mesa/main/varray.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index bbfe947..ec768f0 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -872

[Mesa-dev] [PATCH 06/22] mesa: Implement VertexArrayElementBuffer

2015-03-18 Thread Fredrik Höglund
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 5 src/mesa/main/arrayobj.c | 34 ++ src/mesa/main/arrayobj.h | 2 ++ src/mesa/main/tests/dispatch_sanity.cpp| 1 + 4 files changed, 42 insertions(+) diff --git

[Mesa-dev] [PATCH 14/22] mesa: Implement VertexArrayAttribBinding

2015-03-18 Thread Fredrik Höglund
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 6 ++ src/mesa/main/tests/dispatch_sanity.cpp| 1 + src/mesa/main/varray.c | 77 ++ src/mesa/main/varray.h | 4 ++ 4 files changed, 66 insertions(+), 22 deletions

[Mesa-dev] [PATCH 18/22] mesa: Add a vao parameter to get_vertex_array_attrib

2015-03-18 Thread Fredrik Höglund
This is needed to implement glGetVertexArrayIndexediv and glGetVertexArrayIndexed64iv. --- src/mesa/main/varray.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 0faf158..13b9c01 100644 --- a/src/mesa

[Mesa-dev] [PATCH 13/22] mesa: Add a vao parameter to vertex_attrib_binding

2015-03-18 Thread Fredrik Höglund
This is needed to implement VertexArrayAttribBinding. --- src/mesa/main/varray.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index cdda6f3..4347a92 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray

[Mesa-dev] [PATCH 08/22] mesa: Implement VertexArrayVertexBuffer

2015-03-18 Thread Fredrik Höglund
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 8 +++ src/mesa/main/tests/dispatch_sanity.cpp| 1 + src/mesa/main/varray.c | 83 ++ src/mesa/main/varray.h | 4 ++ 4 files changed, 71 insertions(+), 25 deletion

[Mesa-dev] [PATCH 05/22] mesa: Implement EnableVertexArrayAttrib

2015-03-18 Thread Fredrik Höglund
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 5 +++ src/mesa/main/tests/dispatch_sanity.cpp| 1 + src/mesa/main/varray.c | 46 -- src/mesa/main/varray.h | 4 +++ 4 files changed, 46 insertions(+), 10 deletio

[Mesa-dev] [PATCH 11/22] mesa: Add a vao parameter to update_array_format

2015-03-18 Thread Fredrik Höglund
This is needed to implement VertexArrayAttrib*Format. --- src/mesa/main/varray.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index a6b66a0..93cc0e3 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray

  1   2   >