[Mesa-dev] [PATCH] glsl_to_tgsi: Fix typo shader_program -> shader

2014-08-04 Thread Michel Dänzer
From: Michel Dänzer This was a regression introduced by commit f4b0ab7afd83c811329211eae8167c9bf238870c ('st/mesa: fix incorrect size of UBO declarations') which caused an assertion failure while compiling shaders of e.g. UE4 demos. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81834 Si

[Mesa-dev] [Bug 79039] [TRACKER] Mesa 10.2 release tracker

2014-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79039 Bug 79039 depends on bug 78575, which changed state. Bug 78575 Summary: [PNV Bisected]Some Piglit/Ogles1conform/Ogles2conform cases fail https://bugs.freedesktop.org/show_bug.cgi?id=78575 What|Removed |Added -

[Mesa-dev] RFC: mesa/st dynamic sampler support in tgsi

2014-08-04 Thread Ilia Mirkin
Hello, I'm in the process of working out the details of adding dynamic sampler support to mesa/st as part of ARB_gpu_shader5. Unfortunately I've run into a bit of a roadblock. One approach I've tried is to load the indirect sampler index into an address register and then use that as the offset. H

Re: [Mesa-dev] [PATCH 1/1] gallivm: Fix build with latest LLVM

2014-08-04 Thread Michel Dänzer
On 05.08.2014 07:50, Jan Vesely wrote: > Signed-off-by: Jan Vesely I came up with exactly the same patches independently, so I pushed both your patches. :) -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast |Mesa and X

[Mesa-dev] [PATCH] gallivm: Update TargetInstrInfo retrieval for LLVM 3.6

2014-08-04 Thread Michel Dänzer
From: Michel Dänzer Fixes build failure since LLVM SVN r214781. Signed-off-by: Michel Dänzer --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_deb

Re: [Mesa-dev] [PATCH 00/13] Fix gl_VertexID on i965

2014-08-04 Thread Ian Romanick
On 08/03/2014 11:07 PM, Kenneth Graunke wrote: > On Sunday, June 22, 2014 03:59:01 AM Marek Olšák wrote: >> That's right. A uniform won't work with ARB_draw_indirect unless >> you lower it to direct draws, which would be very bad if it was >> applied to all drivers. >> >> Radeonsi indeed supports

Re: [Mesa-dev] [PATCH 1/3] i965/eu: Drop redundant brw_set_src0/brw_set_dest from gen6_CONT.

2014-08-04 Thread Matt Turner
These are Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 0/5] OpenGL ES improvements

2014-08-04 Thread Ian Romanick
On 08/04/2014 03:20 PM, Roland Scheidegger wrote: > Actually, this stuff is mandatory not just for GLES but also for OGL 4.3 > (and some more formats still for 4.4). So even more surprising it's not > supported by at least CIK. I guess though it's hacked around by the > binary drivers just like her

Re: [Mesa-dev] [PATCH 00/11] i965: Rework sampler index handling in LIR

2014-08-04 Thread Ian Romanick
Patches 1, 2, and 5 through 11 are Reviewed-by: Ian Romanick I sent a question on 4 that relates to it and 3. On 08/04/2014 01:58 AM, Chris Forbes wrote: > Previously sampler indices were stored in a dedicated field of > backend_instruction. This series reworks them to be passed as the src1 >

Re: [Mesa-dev] [PATCH 04/11] i965/blorp: Put sampler index in src1 of texture ops

2014-08-04 Thread Ian Romanick
Does it still build with patch 3 without patch 4? On 08/04/2014 01:58 AM, Chris Forbes wrote: > Signed-off-by: Chris Forbes > --- > src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit

Re: [Mesa-dev] [PATCH] targets/dri: link with mesautil

2014-08-04 Thread Emil Velikov
On 05/08/14 01:32, Roland Scheidegger wrote: > Am 05.08.2014 01:52, schrieb Emil Velikov: >> On 05/08/14 00:36, srol...@vmware.com wrote: >>> From: Roland Scheidegger >>> >>> Build system so I've no idea what I'm doing but this looks similar to other >>> build fixes... >>> --- >>> src/gallium/tar

Re: [Mesa-dev] [PATCH] util/tests/hash_table: Link against libmesautil instead of libmesa

2014-08-04 Thread Jason Ekstrand
Forgot to mention in the commit message, but this fixes bug #82159 On Mon, Aug 4, 2014 at 5:41 PM, Jason Ekstrand wrote: > Signed-off-by: Jason Ekstrand > --- > src/util/tests/hash_table/Makefile.am | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/src/util/tests/has

[Mesa-dev] [Bug 82159] No rule to make target `../../../../src/mesa/libmesa.la', needed by `collision'.

2014-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=82159 --- Comment #1 from Jason Ekstrand --- This patch should fix it: http://lists.freedesktop.org/archives/mesa-dev/2014-August/064813.html -- You are receiving this mail because: You are the assignee for the bug. _

[Mesa-dev] [PATCH] util/tests/hash_table: Link against libmesautil instead of libmesa

2014-08-04 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/util/tests/hash_table/Makefile.am | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/util/tests/hash_table/Makefile.am b/src/util/tests/hash_table/Makefile.am index 55cc0b7..8fdc951 100644 --- a/src/util/tests/hash_table/Makefile.am +

Re: [Mesa-dev] [PATCH] targets/dri: link with mesautil

2014-08-04 Thread Roland Scheidegger
Am 05.08.2014 01:52, schrieb Emil Velikov: > On 05/08/14 00:36, srol...@vmware.com wrote: >> From: Roland Scheidegger >> >> Build system so I've no idea what I'm doing but this looks similar to other >> build fixes... >> --- >> src/gallium/targets/dri/SConscript | 2 ++ >> 1 file changed, 2 inser

Re: [Mesa-dev] [PATCH] targets/dri: link with mesautil

2014-08-04 Thread Emil Velikov
On 05/08/14 00:52, Emil Velikov wrote: > On 05/08/14 00:36, srol...@vmware.com wrote: >> From: Roland Scheidegger >> >> Build system so I've no idea what I'm doing but this looks similar to other >> build fixes... >> --- >> src/gallium/targets/dri/SConscript | 2 ++ >> 1 file changed, 2 insertion

Re: [Mesa-dev] [PATCH] targets/dri: link with mesautil

2014-08-04 Thread Emil Velikov
On 05/08/14 00:36, srol...@vmware.com wrote: > From: Roland Scheidegger > > Build system so I've no idea what I'm doing but this looks similar to other > build fixes... > --- > src/gallium/targets/dri/SConscript | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/gallium/targets/dri/

Re: [Mesa-dev] [PATCH] RFC: glsl/glcpp: Allow for '#' characters to appear in shader body

2014-08-04 Thread Kenneth Graunke
On Thursday, July 31, 2014 11:22:59 AM Carl Worth wrote: > Strictly speaking, the GLSL specification only allows for the '#' to appear in > a shader in two places: > > 1. To introduce a pre-processing directive > > In this case, the '#' must be the first character on a line after >

Re: [Mesa-dev] [PATCH 3/3] libgl-xlib: drop duplicate mesautil from scons build

2014-08-04 Thread Brian Paul
On 08/04/2014 05:23 PM, Emil Velikov wrote: Signed-off-by: Emil Velikov --- src/gallium/targets/libgl-xlib/SConscript | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/targets/libgl-xlib/SConscript b/src/gallium/targets/libgl-xlib/SConscript index cc39b17..6975188 100644 --- a/s

Re: [Mesa-dev] [PATCH] targets/dri: link with mesautil

2014-08-04 Thread Brian Paul
On 08/04/2014 05:36 PM, srol...@vmware.com wrote: From: Roland Scheidegger Build system so I've no idea what I'm doing but this looks similar to other build fixes... --- src/gallium/targets/dri/SConscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/targets/dri/SConscrip

Re: [Mesa-dev] [PATCH 2/2] targets/omx: automake: link against libmesautil.la

2014-08-04 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Aug 4, 2014 at 2:12 PM, Emil Velikov wrote: > Or the build will fail due to unresolved symbols. > > Signed-off-by: Emil Velikov > --- > src/gallium/targets/omx/Makefile.am | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/gallium/targets/omx/Mak

Re: [Mesa-dev] [PATCH 1/2] targets/xvmc: automake: link against libmesautil.la

2014-08-04 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Aug 4, 2014 at 2:12 PM, Emil Velikov wrote: > Or the build will fail due to unresolved symbols. > > Signed-off-by: Emil Velikov > --- > src/gallium/targets/xvmc/Makefile.am | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/gallium/targets/xvmc/M

Re: [Mesa-dev] [PATCH 2/3] llvmpipe/tests: automake: link against libmesautil.la

2014-08-04 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Aug 4, 2014 at 4:23 PM, Emil Velikov wrote: > Or the build will fail due to unresolved symbols. > > Signed-off-by: Emil Velikov > --- > src/gallium/drivers/llvmpipe/Makefile.am | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --

Re: [Mesa-dev] [PATCH 1/3] gallium/tests: automake: link against libmesautil.la

2014-08-04 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Aug 4, 2014 at 4:23 PM, Emil Velikov wrote: > Or the build will fail due to unresolved symbols. > > Signed-off-by: Emil Velikov > --- > src/gallium/tests/trivial/Makefile.am | 1 + > src/gallium/tests/unit/Makefile.am| 1 + > 2 files changed, 2 inserti

[Mesa-dev] [PATCH] targets/dri: link with mesautil

2014-08-04 Thread sroland
From: Roland Scheidegger Build system so I've no idea what I'm doing but this looks similar to other build fixes... --- src/gallium/targets/dri/SConscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/targets/dri/SConscript b/src/gallium/targets/dri/SConscript index 7c567c3.

[Mesa-dev] [Bug 82159] New: No rule to make target `../../../../src/mesa/libmesa.la', needed by `collision'.

2014-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=82159 Priority: medium Bug ID: 82159 Keywords: regression CC: ja...@jlekstrand.net Assignee: mesa-dev@lists.freedesktop.org Summary: No rule to make target `../../.

[Mesa-dev] [PATCH 1/3] gallium/tests: automake: link against libmesautil.la

2014-08-04 Thread Emil Velikov
Or the build will fail due to unresolved symbols. Signed-off-by: Emil Velikov --- src/gallium/tests/trivial/Makefile.am | 1 + src/gallium/tests/unit/Makefile.am| 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/tests/trivial/Makefile.am b/src/gallium/tests/trivial/Makefile.a

[Mesa-dev] [PATCH 2/3] llvmpipe/tests: automake: link against libmesautil.la

2014-08-04 Thread Emil Velikov
Or the build will fail due to unresolved symbols. Signed-off-by: Emil Velikov --- src/gallium/drivers/llvmpipe/Makefile.am | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/Makefile.am b/src/gallium/drivers/llvmpipe/Makefile.am index 4f

[Mesa-dev] [PATCH 3/3] libgl-xlib: drop duplicate mesautil from scons build

2014-08-04 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/targets/libgl-xlib/SConscript | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/targets/libgl-xlib/SConscript b/src/gallium/targets/libgl-xlib/SConscript index cc39b17..6975188 100644 --- a/src/gallium/targets/libgl-xlib/SConscript +++ b/s

Re: [Mesa-dev] [PATCH 1/6] targets/egl-static: link with libmesautil.la

2014-08-04 Thread Emil Velikov
On 04/08/14 21:38, Brian Paul wrote: > On 08/04/2014 02:21 PM, Emil Velikov wrote: >> On 04/08/14 21:16, Brian Paul wrote: >>> --- >>> src/gallium/targets/egl-static/Makefile.am |5 - >>> 1 file changed, 4 insertions(+), 1 deletion(-) >>> >>> diff --git a/src/gallium/targets/egl-static/M

Re: [Mesa-dev] meta: Disable dithering during glBlitFramebuffer

2014-08-04 Thread Kenneth Graunke
On Monday, August 04, 2014 09:03:23 PM Neil Roberts wrote: > According to the GL spec the only fragment operations that should affect > glBlitFramebuffer are “the pixel ownership test, the scissor test, and sRGB > conversion”. That implies that dithering should not be performed so we need to > disa

[Mesa-dev] [PATCH 1/1] gallivm: Fix build with latest LLVM

2014-08-04 Thread Jan Vesely
Signed-off-by: Jan Vesely --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 413a0c2..b6b52c8 100644 --- a/src/gallium/auxiliary/galli

[Mesa-dev] [PATCH 1/1] targets/clover: link against libmesautil.la

2014-08-04 Thread Jan Vesely
Signed-off-by: Jan Vesely --- src/gallium/targets/opencl/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am index ca047f0..43ba5dd 100644 --- a/src/gallium/targets/opencl/Makefile.am +++ b/src/gallium/ta

[Mesa-dev] [PATCH 2/3] i965/eu: Merge brw_CONT and gen6_CONT.

2014-08-04 Thread Kenneth Graunke
The only difference is setting PopCount on Gen4-5. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu.h | 1 - src/mesa/drivers/dri/i965/brw_eu_emit.c | 22 +- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 6 +- src/mesa/driv

[Mesa-dev] [PATCH 1/3] i965/eu: Drop redundant brw_set_src0/brw_set_dest from gen6_CONT.

2014-08-04 Thread Kenneth Graunke
We shouldn't need to set them, then set them differently. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 446d149..845bcd4 1006

[Mesa-dev] [PATCH 3/3] i965: Set ExecSize to 16 for loop instructions in SIMD16 shaders.

2014-08-04 Thread Kenneth Graunke
Previously, we explicitly set the execution size to BRW_EXECUTE_8 and disabled compression for loop instructions. I can't imagine how this could be correct in SIMD16 mode. Looking at the history, it appears that this code has used BRW_EXECUTE_8 since 2007, when we had a SIMD8 backend that support

Re: [Mesa-dev] Find common patterns in real GLSL shaders

2014-08-04 Thread Ian Romanick
On 08/03/2014 01:59 PM, Monis Javed wrote: > > Hello > I am IVth year B.Tech (Computer Engg.) Student at Jamia Millia Islamia > I am currently part of the *GSoC 2014* program under *CERN SFT > (http://www.google-melange.com/gsoc/proposal/public/google/gsoc2014/monisjaved/5668600916475904)* > I was

[Mesa-dev] [PATCH v2 10/13] i965/fs: make swizzle_result() more generic

2014-08-04 Thread Connor Abbott
v2: fix build failure Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 12 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/me

[Mesa-dev] [PATCH v2 11/13] i965/fs: make gather_channel() more generic

2014-08-04 Thread Connor Abbott
v2: fix build failure Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 7 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCH v2 09/13] i965/fs: don't pass in ir_texture to emit_texture_*

2014-08-04 Thread Connor Abbott
At this point, the only thing it's used for is the opcode. Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 27 -- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 6 +-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 55 +++- 3 f

[Mesa-dev] [PATCH v2 05/13] i965/fs: make rescale_texcoord() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 11 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCH v2 04/13] i965/fs: make emit_mcs_fetch() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 4 ++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 16 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/mesa/drivers/dri/

[Mesa-dev] [PATCH v2 07/13] i965/fs: don't use ir->lod_info.grad.dPd in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 12 - src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 6 ++--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 37 +++- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/s

[Mesa-dev] [PATCH v2 12/13] i965/fs: refactor the texture emission logic into a single function

2014-08-04 Thread Connor Abbott
Before, we had 3 different emit functions for various different gen's, as well as some ancilliary work that was the same across all gen's which was either contained in functions or duplicated across the GLSL IR and Mesa IR backends. Now, we have a single method, emit_texture(), that takes all the i

[Mesa-dev] [PATCH v2 13/13] i965/fs: don't make a fake ir_texture in the Mesa IR frontend

2014-08-04 Thread Connor Abbott
Now that we've made all the texture emit code mostly independent of GLSL IR, this isn't necessary any more. Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 07/13] i965: don't use ir->lod_info.grad.dPd in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 12 - src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 6 ++--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 37 +++- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/s

[Mesa-dev] [PATCH v2 08/13] i965/fs: don't use ir->type in emit_texture_gen4()

2014-08-04 Thread Connor Abbott
We already have the type from the original destination. Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.c

[Mesa-dev] [PATCH v2 03/13] i965/fs: don't use ir->offset in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 5 +++-- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 5 +++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 30 +--- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/m

[Mesa-dev] [PATCH v2 06/13] i965/fs: don't use ir->coordinate in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 15 --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 9 ++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 67 +++- 3 files changed, 49 insertions(+), 42 deletions(-) diff --git a/src/

[Mesa-dev] [PATCH v2 02/13] i965: make brw_texture_offset() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 +++- src/mesa/drivers/dri/i965/brw_shader.cpp | 13 + src/mesa/drivers/dri/i965/brw_shader.h | 3 ++- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 4 +++- 4 files changed, 13 inse

[Mesa-dev] [PATCH v2 01/13] i965/fs: don't use ir->shadow_comparitor in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 4 +--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 8 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp inde

Re: [Mesa-dev] [PATCH 0/5] OpenGL ES improvements

2014-08-04 Thread Roland Scheidegger
Actually, this stuff is mandatory not just for GLES but also for OGL 4.3 (and some more formats still for 4.4). So even more surprising it's not supported by at least CIK. I guess though it's hacked around by the binary drivers just like here... Roland Am 05.08.2014 00:07, schrieb Roland Scheideg

[Mesa-dev] [PATCH v2 00/13] i965/fs: refactor the texture emission code

2014-08-04 Thread Connor Abbott
I've been working on a new IR for Mesa, which hopefully I'll be able to share patches for soon, and one of the first things I want to use it for is the i965 fs backend, so we can handle converting to SSA in the new IR and then combine that with Matt's SSA work. To do this, I have to write a new pa

Re: [Mesa-dev] [PATCH 0/5] OpenGL ES improvements

2014-08-04 Thread Roland Scheidegger
Fair enough. Whoever wants to see it supported for his hardware can add support for it natively later... Roland Am 04.08.2014 22:33, schrieb Marek Olšák: > Like Alex said. I don't plan to add gallium support if our hardware > cannot do it. > > Marek > > On Mon, Aug 4, 2014 at 5:54 PM, Roland S

Re: [Mesa-dev] Find common patterns in real GLSL shaders

2014-08-04 Thread Timothy Arceri
On Mon, 2014-08-04 at 02:29 +0530, Monis Javed wrote: > > Hello > I am IVth year B.Tech (Computer Engg.) Student at Jamia Millia Islamia > I am currently part of the GSoC 2014 program under CERN SFT > (http://www.google-melange.com/gsoc/proposal/public/google/gsoc2014/monisjaved/5668600916475904)

Re: [Mesa-dev] [PATCH 1/5] mesa: add helper _mesa_is_format_etc2

2014-08-04 Thread Ian Romanick
On 08/03/2014 05:40 AM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/mesa/main/formats.c | 25 + > src/mesa/main/formats.h | 3 +++ > 2 files changed, 28 insertions(+) > > diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c > index 1f20a9a..b830dbc 10

[Mesa-dev] [PATCH 08/13] i965/fs: don't use ir->type in emit_texture_gen4()

2014-08-04 Thread Connor Abbott
We already have the type from the original destination. Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.c

[Mesa-dev] [PATCH 09/13] i965/fs: don't pass in ir_texture to emit_texture_*

2014-08-04 Thread Connor Abbott
At this point, the only thing it's used for is the opcode. Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 27 -- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 6 +-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 55 +++- 3 f

[Mesa-dev] [PATCH 12/13] i965/fs: refactor the texture emission logic into a single function

2014-08-04 Thread Connor Abbott
Before, we had 3 different emit functions for various different gen's, as well as some ancilliary work that was the same across all gen's which was either contained in functions or duplicated across the GLSL IR and Mesa IR backends. Now, we have a single method, emit_texture(), that takes all the i

[Mesa-dev] [PATCH 00/13] i965/fs: refactor the texture emission code

2014-08-04 Thread Connor Abbott
I've been working on a new IR for Mesa, which hopefully I'll be able to share patches for soon, and one of the first things I want to use it for is the i965 fs backend, so we can handle converting to SSA in the new IR and then combine that with Matt's SSA work. To do this, I have to write a new pas

[Mesa-dev] [PATCH 04/13] i965/fs: make emit_mcs_fetch() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 4 ++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 16 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/mesa/drivers/dri/

[Mesa-dev] [PATCH 13/13] i965/fs: don't make a fake ir_texture in the Mesa IR frontend

2014-08-04 Thread Connor Abbott
Now that we've made all the texture emit code mostly independent of GLSL IR, this isn't necessary any more. Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 06/13] i965/fs: don't use ir->coordinate in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 15 --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 9 ++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 67 +++- 3 files changed, 49 insertions(+), 42 deletions(-) diff --git a/src/

[Mesa-dev] [PATCH 02/13] i965: make brw_texture_offset() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 +++- src/mesa/drivers/dri/i965/brw_shader.cpp | 13 + src/mesa/drivers/dri/i965/brw_shader.h | 3 ++- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 4 +++- 4 files changed, 13 inse

[Mesa-dev] [PATCH 03/13] i965/fs: don't use ir->offset in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 5 +++-- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 5 +++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 30 +--- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/m

[Mesa-dev] [PATCH 07/13] i965: don't use ir->lod_info.grad.dPd in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 12 - src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 6 ++--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 37 +++- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/s

[Mesa-dev] [PATCH 10/13] i965/fs: make swizzle_result() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 10 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCH 11/13] i965/fs: make gather_channel() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index d3c2e5f..b0f2

[Mesa-dev] [PATCH 01/13] i965/fs: don't use ir->shadow_comparitor in emit_texture_*

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 4 +--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 8 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp inde

[Mesa-dev] [PATCH 05/13] i965/fs: make rescale_texcoord() more generic

2014-08-04 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 11 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCH 2/2] targets/omx: automake: link against libmesautil.la

2014-08-04 Thread Emil Velikov
Or the build will fail due to unresolved symbols. Signed-off-by: Emil Velikov --- src/gallium/targets/omx/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/omx/Makefile.am b/src/gallium/targets/omx/Makefile.am index 3840143..4045548 100644 --- a/src/gallium/tar

[Mesa-dev] [PATCH 1/2] targets/xvmc: automake: link against libmesautil.la

2014-08-04 Thread Emil Velikov
Or the build will fail due to unresolved symbols. Signed-off-by: Emil Velikov --- src/gallium/targets/xvmc/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/xvmc/Makefile.am b/src/gallium/targets/xvmc/Makefile.am index 329a1d4..884bccf 100644 --- a/src/gallium/

Re: [Mesa-dev] [PATCH 3/6] targets:libgl-gdi: link with mesautil

2014-08-04 Thread Jason Ekstrand
For some reason, I'm not seeing patch 2. 3, 4, 5, and 6 look fine to me. I haven't tested them, but they seem consistent with what I did in other places. On Mon, Aug 4, 2014 at 1:16 PM, Brian Paul wrote: > --- > src/gallium/targets/libgl-gdi/SConscript |3 +++ > 1 file changed, 3 insertio

Re: [Mesa-dev] [PATCH 1/6] targets/egl-static: link with libmesautil.la

2014-08-04 Thread Brian Paul
On 08/04/2014 02:21 PM, Emil Velikov wrote: On 04/08/14 21:16, Brian Paul wrote: --- src/gallium/targets/egl-static/Makefile.am |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/targets/egl-static/Makefile.am b/src/gallium/targets/egl-static/Makefile.am i

Re: [Mesa-dev] [PATCH 0/5] OpenGL ES improvements

2014-08-04 Thread Marek Olšák
Like Alex said. I don't plan to add gallium support if our hardware cannot do it. Marek On Mon, Aug 4, 2014 at 5:54 PM, Roland Scheidegger wrote: > Am 03.08.2014 14:40, schrieb Marek Olšák: >> Hi everyone, >> >> This series adds: >> - Support for ETC2 texture formats to all gallium drivers. This

Re: [Mesa-dev] [PATCH] mesa/x86: put code in braces to silence declarations after code warning

2014-08-04 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] egl: Fix OpenGL ES version checks in _eglParseContextAttribList()

2014-08-04 Thread Anuj Phogat
On Fri, Aug 1, 2014 at 4:12 PM, Ian Romanick wrote: > On 06/18/2014 05:49 PM, Anuj Phogat wrote: >> Fixes gles3 Khronos CTS test: >> egl_create_context.egl_create_context >> >> Cc: >> Signed-off-by: Anuj Phogat >> --- >> src/egl/main/eglcontext.c | 11 --- >> 1 file changed, 8 insertion

[Mesa-dev] [PATCH] mesa/x86: put code in braces to silence declarations after code warning

2014-08-04 Thread Brian Paul
--- src/mesa/x86/common_x86.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c index b401c35..2a936a4 100644 --- a/src/mesa/x86/common_x86.c +++ b/src/mesa/x86/common_x86.c @@ -343,16 +343,18 @@ _mesa_get_x

Re: [Mesa-dev] [PATCH 1/6] targets/egl-static: link with libmesautil.la

2014-08-04 Thread Emil Velikov
On 04/08/14 21:16, Brian Paul wrote: > --- > src/gallium/targets/egl-static/Makefile.am |5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/targets/egl-static/Makefile.am > b/src/gallium/targets/egl-static/Makefile.am > index 84f3338..ff053e2 100644 > ---

[Mesa-dev] [PATCH 2/6] targets/egl-static: link with libmesautil.la

2014-08-04 Thread Brian Paul
--- src/gallium/targets/egl-static/SConscript |1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/egl-static/SConscript b/src/gallium/targets/egl-static/SConscript index 33db8e9..e423d5d 100644 --- a/src/gallium/targets/egl-static/SConscript +++ b/src/gallium/targets/egl-st

[Mesa-dev] [PATCH 6/6] targets/graw-gdi: link with mesautil, not mesautils

2014-08-04 Thread Brian Paul
--- src/gallium/targets/graw-gdi/SConscript |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/targets/graw-gdi/SConscript b/src/gallium/targets/graw-gdi/SConscript index dc7b7f1..f8db6e6 100644 --- a/src/gallium/targets/graw-gdi/SConscript +++ b/src/gallium/target

[Mesa-dev] [PATCH 4/6] osmesa: link with mesautil

2014-08-04 Thread Brian Paul
--- src/mesa/drivers/osmesa/SConscript |1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/osmesa/SConscript b/src/mesa/drivers/osmesa/SConscript index cbff594..caa14d3 100644 --- a/src/mesa/drivers/osmesa/SConscript +++ b/src/mesa/drivers/osmesa/SConscript @@ -10,6 +10,7 @@ e

[Mesa-dev] [PATCH 1/6] targets/egl-static: link with libmesautil.la

2014-08-04 Thread Brian Paul
--- src/gallium/targets/egl-static/Makefile.am |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/targets/egl-static/Makefile.am b/src/gallium/targets/egl-static/Makefile.am index 84f3338..ff053e2 100644 --- a/src/gallium/targets/egl-static/Makefile.am +++ b/sr

[Mesa-dev] [PATCH 5/6] wmesa: link with mesautil

2014-08-04 Thread Brian Paul
--- src/mesa/drivers/windows/gdi/SConscript |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/windows/gdi/SConscript b/src/mesa/drivers/windows/gdi/SConscript index 10a7eea..1f4d7e1 100644 --- a/src/mesa/drivers/windows/gdi/SConscript +++ b/src/mesa/drivers/windows/gdi/SCo

[Mesa-dev] [PATCH 3/6] targets:libgl-gdi: link with mesautil

2014-08-04 Thread Brian Paul
--- src/gallium/targets/libgl-gdi/SConscript |3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/targets/libgl-gdi/SConscript b/src/gallium/targets/libgl-gdi/SConscript index f8393da..594f34d 100644 --- a/src/gallium/targets/libgl-gdi/SConscript +++ b/src/gallium/targets/libgl-g

Re: [Mesa-dev] [PATCH] src/Makefile.am: Move gtest before util

2014-08-04 Thread Brian Paul
On 08/04/2014 01:27 PM, Jason Ekstrand wrote: Since the ralloc test in util/tests needs gtest, we need to make sure that the gtest subdir is loaded first. This fixes bug #82148. Signed-off-by: Jason Ekstrand --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[Mesa-dev] meta: Disable dithering during glBlitFramebuffer

2014-08-04 Thread Neil Roberts
According to the GL spec the only fragment operations that should affect glBlitFramebuffer are “the pixel ownership test, the scissor test, and sRGB conversion”. That implies that dithering should not be performed so we need to disable it when implementing the blit with a render. Before commit 05b

Re: [Mesa-dev] [PATCH] meta: Remove dither bit from blit paths that do not need it

2014-08-04 Thread Neil Roberts
I'm not sure about either of these patches. It looks like according to the GL 4.4 spec dithering is not supposed to affect glBlitFramebuffer: “When values are written to the draw buffers, blit operations bypass most of the fragment pipeline. The only fragment operations which affect a blit are t

Re: [Mesa-dev] [PATCH] util: include c99_compat.h in format_srgb.h to get 'inline' definition

2014-08-04 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Aug 4, 2014 at 12:38 PM, Brian Paul wrote: > --- > src/util/format_srgb.h |1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/util/format_srgb.h b/src/util/format_srgb.h > index 17ba283..4a8d73f 100644 > --- a/src/util/format_srgb.h > +++ b/src/

Re: [Mesa-dev] [PATCH] util: include c99_compat.h in hash_table.h to get 'inline' definition

2014-08-04 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Aug 4, 2014 at 12:35 PM, Brian Paul wrote: > --- > src/util/hash_table.h |1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/util/hash_table.h b/src/util/hash_table.h > index 9b67f05..d6b6ebf 100644 > --- a/src/util/hash_table.h > +++ b/src/util

[Mesa-dev] [PATCH] util: include c99_compat.h in format_srgb.h to get 'inline' definition

2014-08-04 Thread Brian Paul
--- src/util/format_srgb.h |1 + 1 file changed, 1 insertion(+) diff --git a/src/util/format_srgb.h b/src/util/format_srgb.h index 17ba283..4a8d73f 100644 --- a/src/util/format_srgb.h +++ b/src/util/format_srgb.h @@ -39,6 +39,7 @@ #include #include +#include "c99_compat.h" extern con

Re: [Mesa-dev] [PATCH] gallium: Add libmesautil dependency to gdm and xa targets

2014-08-04 Thread Brian Paul
On 08/04/2014 01:35 PM, Jason Ekstrand wrote: Signed-off-by: Jason Ekstrand --- src/gallium/targets/gbm/Makefile.am | 1 + src/gallium/targets/xa/Makefile.am | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/targets/gbm/Makefile.am b/src/gallium/targets/gbm/Makefile.am inde

[Mesa-dev] [PATCH] gallium: Add libmesautil dependency to gdm and xa targets

2014-08-04 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/gallium/targets/gbm/Makefile.am | 1 + src/gallium/targets/xa/Makefile.am | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/targets/gbm/Makefile.am b/src/gallium/targets/gbm/Makefile.am index 2345ce3..a5f7070 100644 --- a/src/gallium/targets

[Mesa-dev] [PATCH] util: include c99_compat.h in hash_table.h to get 'inline' definition

2014-08-04 Thread Brian Paul
--- src/util/hash_table.h |1 + 1 file changed, 1 insertion(+) diff --git a/src/util/hash_table.h b/src/util/hash_table.h index 9b67f05..d6b6ebf 100644 --- a/src/util/hash_table.h +++ b/src/util/hash_table.h @@ -31,6 +31,7 @@ #include #include #include +#include "c99_compat.h" #include

[Mesa-dev] [PATCH] src/Makefile.am: Move gtest before util

2014-08-04 Thread Jason Ekstrand
Since the ralloc test in util/tests needs gtest, we need to make sure that the gtest subdir is loaded first. This fixes bug #82148. Signed-off-by: Jason Ekstrand --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 2634c

Re: [Mesa-dev] [PATCH 00/10] [RFC] Probably useless algebraic optimizations

2014-08-04 Thread Eric Anholt
thomashellan...@gmail.com writes: > From: Thomas Helland > > When writing that A || (A && B) patch some > days ago I also wrote some other patches > that have no impact on my collection of shaders. > (shader-db + Some TF2 and Portal-shaders). > No reduction in instruction count, and no > signific

[Mesa-dev] [PATCH 0/4] BDW viewport extents + misc

2014-08-04 Thread Ben Widawsky
The patch commit messages and comments within the diffs explain the intricacies of viewport extents and clipping. So rather, here is the data for these patches. All of the following is for a Broadwell system (which introduced viewport extents). EGYPT PERF == No change WARSOW PERF

[Mesa-dev] [PATCH 2/4] i965: Viewport extents on GEN8

2014-08-04 Thread Ben Widawsky
Viewport extents are a 3rd rectangle that defines which pixels get discarded as part of the rasterization process. This can potentially improve performance by reducing cache usage, and freeing up PS cycles. It also permits the use of guardband clipping in all cases (see later patch). The actual pix

[Mesa-dev] [PATCH 3/4] i965/guardband: Enable for all viewport dimensions (GEN8+)

2014-08-04 Thread Ben Widawsky
The goal of guardband clipping is to try to avoid 3d clipping because it is an expensive operation. When guardband clipping is disabled, all geometry that intersects the viewport is to the FF 3d clipper. Objects which are entirely enclosed within the viewport are said to be "trivially accepted" whi

[Mesa-dev] [PATCH 4/4] i965/clip: Removing scissor atom

2014-08-04 Thread Ben Widawsky
On GEN8, a change in scissor state does not effect anything for the clipper/sf hardware state. The hardware will always do the right thing once the viewport extents are programmed. We can therefore remove the unecessary state emission. Ken originally spotted this. --- src/mesa/drivers/dri/i965/ge

  1   2   >