Re: [Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Eric Anholt
Thomas Helland thomashellan...@gmail.com writes: 2015-02-02 19:18 GMT+01:00 Jason Ekstrand ja...@jlekstrand.net: Hi all, I wanted to send out a quick message about naming conventions for mesa entrypoints and dd table fallbacks. There has been some confusion and disagreement about this with

Re: [Mesa-dev] [PATCH] DD: Refactor BlitFramebuffer.

2015-02-02 Thread Brian Paul
On 02/02/2015 12:49 PM, Laura Ekstrand wrote: After a very thorough search, I did find two lines in i965/intel_fbo.c that had ctx-DrawBuffer when they were supposed to have drawFb. Here's the new commit:

[Mesa-dev] [PATCH 1/2] gallium/ureg: Move ureg_dst_register() to the header.

2015-02-02 Thread Eric Anholt
I wanted to use it for nir-to-tgsi. The equivalent ureg_src_register() is also located here. --- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 28 src/gallium/auxiliary/tgsi/tgsi_ureg.h | 25 + 2 files changed, 25 insertions(+), 28 deletions(-)

Re: [Mesa-dev] [PATCH 2/2] gallium/ureg: Add missing some missing opcodes opcode_tmp.h

2015-02-02 Thread Roland Scheidegger
Am 02.02.2015 um 20:39 schrieb Eric Anholt: I wanted all of these for NIR-to-TGSI. --- src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h b/src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h index

Re: [Mesa-dev] [PATCH 2/6] main: Added entry point for glTransformFeedbackBufferBase

2015-02-02 Thread Laura Ekstrand
Oops, what I meant to say was Make the bufferobj lookup function static. The lookup transform feedback function doesn't have to be static. On Mon, Feb 2, 2015 at 6:09 AM, Ilia Mirkin imir...@alum.mit.edu wrote: On Mon, Feb 2, 2015 at 6:00 AM, Martin Peres martin.pe...@linux.intel.com wrote:

Re: [Mesa-dev] [PATCH 3/6] main: Added entry point for glTransformFeedbackBufferRange

2015-02-02 Thread Laura Ekstrand
On Mon, Feb 2, 2015 at 3:30 AM, Martin Peres martin.pe...@linux.intel.com wrote: v2: review from Laura Ekstrand - use the refactored code to lookup the objects - improve some error messages - factor out the gl method name computation - better handle the spec differences between the DSA and

Re: [Mesa-dev] [PATCH 1/6] main: Added entry point for glCreateTransformFeedbacks

2015-02-02 Thread Laura Ekstrand
On Mon, Feb 2, 2015 at 2:58 AM, Martin Peres martin.pe...@linux.intel.com wrote: v2: Review from Laura Ekstrand - generate the name of the gl method once - shorten some lines to stay in the 78 chars limit v3: Review from Fredrik Höglund fred...@kde.org - rename gl_mthd_name to func - set

[Mesa-dev] [PATCH 2/2] gallium/ureg: Add missing some missing opcodes opcode_tmp.h

2015-02-02 Thread Eric Anholt
I wanted all of these for NIR-to-TGSI. --- src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h b/src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h index 147d989..d8752ce 100644 ---

Re: [Mesa-dev] [PATCH] Revert fs-discard-exit-3: New test for another bug in handling 1.30's discard rule.

2015-02-02 Thread Francisco Jerez
Eric Anholt e...@anholt.net writes: Francisco Jerez curroje...@riseup.net writes: This reverts commit 3fad0868f023f1d726e230968a4df3327de38823. This test doesn't make any sense to me, it begins quoting the GLSL 1.30 spec on the interaction of the discard keyword with control flow: [...]

Re: [Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Thomas Helland
2015-02-02 19:18 GMT+01:00 Jason Ekstrand ja...@jlekstrand.net: Hi all, I wanted to send out a quick message about naming conventions for mesa entrypoints and dd table fallbacks. There has been some confusion and disagreement about this with some of the stuff Laura has been doing to

Re: [Mesa-dev] [PATCH] DD: Refactor BlitFramebuffer.

2015-02-02 Thread Laura Ekstrand
After a very thorough search, I did find two lines in i965/intel_fbo.c that had ctx-DrawBuffer when they were supposed to have drawFb. Here's the new commit: http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-framebuffersid=d9d7e65cd6a0fe2c864803a77e34d0f52e8609b6 .

Re: [Mesa-dev] [PATCH 2/2] gallium/ureg: Add missing some missing opcodes opcode_tmp.h

2015-02-02 Thread Eric Anholt
Roland Scheidegger srol...@vmware.com writes: Am 02.02.2015 um 20:39 schrieb Eric Anholt: I wanted all of these for NIR-to-TGSI. --- src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h

Re: [Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Brian Paul
On 02/02/2015 12:22 PM, Eric Anholt wrote: Jason Ekstrand ja...@jlekstrand.net writes: Hi all, I wanted to send out a quick message about naming conventions for mesa entrypoints and dd table fallbacks. There has been some confusion and disagreement about this with some of the stuff Laura has

Re: [Mesa-dev] [PATCH 3/9] nir: Add lowering of POW instructions if the lower flag is set.

2015-02-02 Thread Eric Anholt
Erik Faye-Lund kusmab...@gmail.com writes: On Sun, Feb 1, 2015 at 10:17 PM, Eric Anholt e...@anholt.net wrote: This could be done in a separate pass like we do in GLSL IR, but it seems to me like having the definitions of the transformations in the two directions next to each other makes a

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

2015-02-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 fangxun xunx.f...@intel.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 2/9] nir: Conditionalize the POW reconstruction on shader compiler options.

2015-02-02 Thread Connor Abbott
A few comments here... 1. We should really split this up into a patch that adds nir_shader_compiler_options (which would be empty at this point) and the nir_algebraic infrastructure for conditionalizing transforms (actually, maybe we should split these up into two patches) and a patch which adds

[Mesa-dev] [PATCH 1/3] nir: Add a nir_shader_compiler_options struct pointed to by the shaders.

2015-02-02 Thread Eric Anholt
This will be used to give the optimization passes a chance to customize behavior for the particular target device. --- I had things as one giant patch before because I thought you couldn't have a struct with no members, and having a temporary version with a dummy member seemed ugly. Turns out

[Mesa-dev] [PATCH 2/3] nir: Add an optional expression controlling nir_algebraic xforms.

2015-02-02 Thread Eric Anholt
This will be used so that we can customize the transforms for the target GPU, so we don't un-lower expressions that had already been lowered (or introduce new lowering transformations that not all GPUs want) --- src/glsl/nir/nir_algebraic.py | 44 --- 1

Re: [Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Ian Romanick
On 02/02/2015 07:18 PM, Jason Ekstrand wrote: 1) The entrypoint itself (currently _mesa_EntryPoint) 2) the internal entrypoint (Laura chose _mesa_entry_point) 3) the software fallback for the DD table entry (Laura chose _mesa_TableEntry_sw) I already objected to _mesa_TableEntry_sw because

[Mesa-dev] [Bug 88880] glxextensions.c: buffer overflow and incorrect zeroing

2015-02-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=0 --- Comment #1 from Matt Turner matts...@gmail.com --- Would be nice to explain why you decided the bug was invalid. -- 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] nir: Add an ALU op builder kind of like ir_builder.h

2015-02-02 Thread Eric Anholt
Connor Abbott cwabbo...@gmail.com writes: I mentioned this on IRC, but it would be good to add the ability to append the sequence of instructions before/after an instruction as well as at the beginning or end of a basic block. We would need to store the current basic block, the current

Re: [Mesa-dev] [PATCH 2/9] nir: Conditionalize the POW reconstruction on shader compiler options.

2015-02-02 Thread Eric Anholt
Connor Abbott cwabbo...@gmail.com writes: A few comments here... 1. We should really split this up into a patch that adds nir_shader_compiler_options (which would be empty at this point) and the nir_algebraic infrastructure for conditionalizing transforms (actually, maybe we should split

[Mesa-dev] [PATCH] gallium/util: Don't use __builtin_clrsb in util_last_bit().

2015-02-02 Thread Matt Turner
Unclear circumstances lead to undefined symbols on x86. Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=536916 --- src/gallium/auxiliary/util/u_math.h | 4 1 file changed, 4 deletions(-) diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index

[Mesa-dev] [PATCH] glsl/list: Note that exec_lists may not be realloc'd.

2015-02-02 Thread Matt Turner
--- src/glsl/list.h | 4 1 file changed, 4 insertions(+) diff --git a/src/glsl/list.h b/src/glsl/list.h index 85368a4..6f1a57b 100644 --- a/src/glsl/list.h +++ b/src/glsl/list.h @@ -51,6 +51,10 @@ * Therefore, if \c head-next is \c NULL or \c tail_prev-prev is \c NULL, * the list is

Re: [Mesa-dev] [PATCH] gallium/util: Don't use __builtin_clrsb in util_last_bit().

2015-02-02 Thread Matt Turner
On Mon, Feb 2, 2015 at 5:30 PM, Ilia Mirkin imir...@alum.mit.edu wrote: Reviewed-by: Ilia Mirkin imir...@alum.mit.edu Oh well. Nothing requiring high throughput uses this afaik... constant folding in nouveau (for the relevant glsl instruction), that's probably about it. Would be nice to

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

2015-02-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 fangxun xunx.f...@intel.com changed: What|Removed |Added Status|RESOLVED|VERIFIED --- Comment #11

Re: [Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Jason Ekstrand
On Mon, Feb 2, 2015 at 2:38 PM, Ian Romanick i...@freedesktop.org wrote: On 02/02/2015 07:18 PM, Jason Ekstrand wrote: 1) The entrypoint itself (currently _mesa_EntryPoint) 2) the internal entrypoint (Laura chose _mesa_entry_point) 3) the software fallback for the DD table entry (Laura

Re: [Mesa-dev] [PATCH] egl: Soften several HAVE_DRM_PLATFORM to HAVE_LIBDRM

2015-02-02 Thread Samuel Thibault
Emil Velikov, le Mon 02 Feb 2015 18:24:29 +, a écrit : Did you had the change to try the patch - does it cause issues on your setup (build and/or runtime-wise) ? My setup has neither HAVE_LIBDRM nor HAVE_DRM_PLATFORM so it can't break it :) Samuel

[Mesa-dev] [PATCH v2] c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default

2015-02-02 Thread Felix Janda
Previously PTHREAD_MUTEX_RECURSIVE_NP had been used on linux for compatibility with old glibc. Since mesa defines __GNU_SOURCE__ on linux PTHREAD_MUTEX_RECURSIVE is also available since at least 1998. So we can unconditionally use the portable version PTHREAD_MUTEX_RECURSIVE. --- Previous patch

Re: [Mesa-dev] [PATCH] gallium/util: Don't use __builtin_clrsb in util_last_bit().

2015-02-02 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin imir...@alum.mit.edu Oh well. Nothing requiring high throughput uses this afaik... constant folding in nouveau (for the relevant glsl instruction), that's probably about it. Would be nice to clarify the circumstances, but... wtvr. Cc 10.4 stable too? On Mon, Feb 2, 2015

Re: [Mesa-dev] [PATCH 1/2] mesa: add a workaround for unigine Tropics

2015-02-02 Thread Martin Peres
You're welcome Marek. Let's not keep these workarounds specific to some drivers ;) In any case, please review the new version, the one called introduce the equivalent of MESA_EXTENSION_OVERRIDE to drirc. I prefer this solution better and this one should be dropped. Sorry for the noise.

[Mesa-dev] [PATCH 2/6] main: Added entry point for glTransformFeedbackBufferBase

2015-02-02 Thread Martin Peres
v2: Review from Laura Ekstrand - give more helpful error messages - factor the lookup code for the xfb and objBuf - replace some already-existing tabs with spaces - add comments to explain the cases where xfb == 0 or buffer == 0 - fix the condition for binding the transform buffer or not v3:

Re: [Mesa-dev] [PATCH 2/4] mesa: introduce the equivalent of MESA_EXTENSION_OVERRIDE in drirc

2015-02-02 Thread Martin Peres
On 02/02/15 11:54, Michel Dänzer wrote: On 30.01.2015 23:19, Martin Peres wrote: When both MESA_EXTENSION_OVERRIDE and drirc's mesa_extension_override are set, the environment variable takes precedence. This will be used to fix Unigine Tropics and Sanctuary. Signed-off-by: Martin Peres

Re: [Mesa-dev] [PATCH 2/6] main: Added entry point for glTransformFeedbackBufferBase

2015-02-02 Thread Ilia Mirkin
On Mon, Feb 2, 2015 at 6:00 AM, Martin Peres martin.pe...@linux.intel.com wrote: +static struct gl_transform_feedback_object * +_mesa_lookup_transform_feedback_object_err(struct gl_context *ctx, + GLuint xfb, const char* func) +{ + struct

Re: [Mesa-dev] [PATCH 1/4] main: make the intel driver obey drirc's force_glsl_version

2015-02-02 Thread Martin Peres
On 30/01/15 23:20, Marek Olšák wrote: The commit message prefix should be intel: in this case. Marek Fair point, it will be in v2. Thanks, Martin ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

Re: [Mesa-dev] [PATCH 2/4] mesa: introduce the equivalent of MESA_EXTENSION_OVERRIDE in drirc

2015-02-02 Thread Michel Dänzer
On 30.01.2015 23:19, Martin Peres wrote: When both MESA_EXTENSION_OVERRIDE and drirc's mesa_extension_override are set, the environment variable takes precedence. This will be used to fix Unigine Tropics and Sanctuary. Signed-off-by: Martin Peres martin.pe...@linux.intel.com [...] diff

[Mesa-dev] [PATCH 3/6] main: Added entry point for glTransformFeedbackBufferRange

2015-02-02 Thread Martin Peres
v2: review from Laura Ekstrand - use the refactored code to lookup the objects - improve some error messages - factor out the gl method name computation - better handle the spec differences between the DSA and non-DSA cases - quote the spec a little more v3: review from Laura Ekstrand - use the

Re: [Mesa-dev] [PATCH 3/9] nir: Add lowering of POW instructions if the lower flag is set.

2015-02-02 Thread Erik Faye-Lund
On Sun, Feb 1, 2015 at 10:17 PM, Eric Anholt e...@anholt.net wrote: This could be done in a separate pass like we do in GLSL IR, but it seems to me like having the definitions of the transformations in the two directions next to each other makes a lot of sense. ---

[Mesa-dev] [PATCH 1/6] main: Added entry point for glCreateTransformFeedbacks

2015-02-02 Thread Martin Peres
v2: Review from Laura Ekstrand - generate the name of the gl method once - shorten some lines to stay in the 78 chars limit v3: Review from Fredrik Höglund fred...@kde.org - rename gl_mthd_name to func - set EverBound in _mesa_create_transform_feedbacks in the dsa case Signed-off-by: Martin

[Mesa-dev] [PATCH] util: move etc shared code to util library

2015-02-02 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Like the RGTC code sharing this could be done nicer in the util lib. This slighty increase i965_dri.so size by ~100 bytes, but it decreases the combined gallium driver by over 1k, and its just nicer to avoid TAG(). Signed-off-by: Dave Airlie

Re: [Mesa-dev] [PATCH v5 2/3] i965/fs: Use NIR's scalarizing abilities and stop handling vectors

2015-02-02 Thread Kenneth Graunke
On Thursday, January 29, 2015 01:40:19 PM Jason Ekstrand wrote: Now that we can scalarize with NIR, there's no need for all this code anymore. Let's get rid of it and just do scalar operations. v2: run copy prop before lowering phi nodes v3: Get rid of the emit(...)-saturate = foo pattern

Re: [Mesa-dev] [PATCH v5 1/3] nir: Add a pass to lower vector phi nodes to scalar phi nodes

2015-02-02 Thread Jason Ekstrand
On Mon, Feb 2, 2015 at 9:08 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Thursday, January 29, 2015 01:40:18 PM Jason Ekstrand wrote: [snip] diff --git a/src/glsl/nir/nir_lower_phis_to_scalar.c b/src/glsl/nir/nir_lower_phis_to_scalar.c new file mode 100644 index 000..bf65f5a

[Mesa-dev] [PATCH] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

2015-02-02 Thread Xiong Zhang
GLX_ARB_create_context spec says: If either draw or read are not a valid GLX drawable, a GLXBadDrawable error is generated, unless draw and read are both None and the OpenGL version supported by ctx is 3.0 or greater. So when both draw and read are None, it could pass NULL drawable into driver

[Mesa-dev] [Bug 88930] [osmesa] osbuffer-textures should be indexed by attachment type

2015-02-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88930 Bug ID: 88930 Summary: [osmesa] osbuffer-textures should be indexed by attachment type Product: Mesa Version: git Hardware: All OS: All Status:

Re: [Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Timothy Arceri
On Mon, 2015-02-02 at 13:22 -0800, Eric Anholt wrote: Thomas Helland thomashellan...@gmail.com writes: 2015-02-02 19:18 GMT+01:00 Jason Ekstrand ja...@jlekstrand.net: Hi all, I wanted to send out a quick message about naming conventions for mesa entrypoints and dd table fallbacks.

Re: [Mesa-dev] [PATCH v2] c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default

2015-02-02 Thread Emil Velikov
Hi Felix, On 2 February 2015 at 19:04, Felix Janda felix.ja...@posteo.de wrote: Previously PTHREAD_MUTEX_RECURSIVE_NP had been used on linux for compatibility with old glibc. Since mesa defines __GNU_SOURCE__ on linux PTHREAD_MUTEX_RECURSIVE is also available since at least 1998. So we can

Re: [Mesa-dev] [PATCH v5 3/3] i965/fs_nir: Get rid of get_alu_src

2015-02-02 Thread Kenneth Graunke
On Thursday, January 29, 2015 01:40:20 PM Jason Ekstrand wrote: Originally, get_alu_src was supposed to handle resolving swizzles and things like that. However, now that basically every instruction we have only takes scalar sources, we don't really need it anymore. The only case where it's

Re: [Mesa-dev] [PATCH] [v2] i965: implement ARB_pipeline_statistics_query

2015-02-02 Thread Ilia Mirkin
On Mon, Dec 8, 2014 at 9:50 PM, Ben Widawsky b...@bwidawsk.net wrote: Thanks. All the requests look good, and I'll post it in v3. What happened to this patch? It was pretty close... should be easy to add gallium support for it too once it's in... ___

Re: [Mesa-dev] [PATCH v5 1/3] nir: Add a pass to lower vector phi nodes to scalar phi nodes

2015-02-02 Thread Kenneth Graunke
On Thursday, January 29, 2015 01:40:18 PM Jason Ekstrand wrote: [snip] diff --git a/src/glsl/nir/nir_lower_phis_to_scalar.c b/src/glsl/nir/nir_lower_phis_to_scalar.c new file mode 100644 index 000..bf65f5a --- /dev/null +++ b/src/glsl/nir/nir_lower_phis_to_scalar.c @@ -0,0 +1,278 @@

Re: [Mesa-dev] [PATCH v5 3/3] i965/fs_nir: Get rid of get_alu_src

2015-02-02 Thread Jason Ekstrand
On Mon, Feb 2, 2015 at 10:00 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Thursday, January 29, 2015 01:40:20 PM Jason Ekstrand wrote: Originally, get_alu_src was supposed to handle resolving swizzles and things like that. However, now that basically every instruction we have only

Re: [Mesa-dev] [RFC] gallium/docs: add some freedreno compiler docs

2015-02-02 Thread Brian Paul
Acked-by: Brian Paul bri...@vmware.com On 01/29/2015 02:11 PM, Rob Clark wrote: From: Rob Clark robcl...@freedesktop.org Enable the 'sphinx.ext.graphviz' extension, and add in a section for driver specific docs, with freedreno compiler docs beneath. The goal is for more complete compiler

Re: [Mesa-dev] [PATCH 4/6] gallium: add a cap to determine whether the driver supports offset_clamp

2015-02-02 Thread Roland Scheidegger
Please add some bit about this in screen.rst gallium docs. Other than that 4/6 and 5/6 are Reviewed-by: Roland Scheidegger srol...@vmware.com Am 01.02.2015 um 16:18 schrieb Ilia Mirkin: Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- src/gallium/drivers/freedreno/freedreno_screen.c | 1 +

Re: [Mesa-dev] [PATCH] DD: Refactor BlitFramebuffer.

2015-02-02 Thread Brian Paul
I'd have put the swrast whitespace changes in a separate commit, but it's not a big deal. Reviewed-by: Brian Paul bri...@vmware.com On 01/30/2015 05:25 PM, Laura Ekstrand wrote: In preparation for glBlitNamedFramebuffer, the DD table function BlitFramebuffer needs to accept two arbitrary

Re: [Mesa-dev] [PATCH 1/9] tgsi: add tgsi_get_processor_type helper from radeon

2015-02-02 Thread Brian Paul
For 1-4, Reviewed-by: Brian Paul bri...@vmware.com On 02/01/2015 10:15 AM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com --- src/gallium/auxiliary/tgsi/tgsi_parse.c | 12 src/gallium/auxiliary/tgsi/tgsi_parse.h | 2 ++

Re: [Mesa-dev] [PATCH 7/9] gallium/u_tests: test a NULL texture sampler view

2015-02-02 Thread Roland Scheidegger
I don't think this is really correct. llvmpipe will return all zeros on purpose, because this is d3d10 behavior (and dummy textures cannot work correctly with d3d10). Traditionally both d3d9 and gl state trackers used dummy textures, though I'm unsure what values they required (if any). (For d3d9

[Mesa-dev] [PATCH 1/2] nir: add an optimization to remove useless phi nodes

2015-02-02 Thread Connor Abbott
This removes phi nodes whose sources all point to the same thing. Only compile tested. Signed-off-by: Connor Abbott cwabbo...@gmail.com --- src/glsl/Makefile.sources | 1 + src/glsl/nir/nir.h | 2 + src/glsl/nir/nir_opt_remove_phis.c | 111

[Mesa-dev] [PATCH 2/2] i965/nir: use redundant phi optimization

2015-02-02 Thread Connor Abbott
Signed-off-by: Connor Abbott cwabbo...@gmail.com --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index de0d780..4305e14 100644 ---

Re: [Mesa-dev] [PATCH v5 1/3] nir: Add a pass to lower vector phi nodes to scalar phi nodes

2015-02-02 Thread Kenneth Graunke
On Monday, February 02, 2015 10:28:22 PM Jason Ekstrand wrote: On Mon, Feb 2, 2015 at 9:08 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Thursday, January 29, 2015 01:40:18 PM Jason Ekstrand wrote: [snip] +static bool +is_phi_src_scalarizable(nir_phi_src *src, +

Re: [Mesa-dev] [PATCH 1/2] nir: add an optimization to remove useless phi nodes

2015-02-02 Thread Connor Abbott
On Tue, Feb 3, 2015 at 1:54 AM, Connor Abbott cwabbo...@gmail.com wrote: This removes phi nodes whose sources all point to the same thing. Only compile tested. Signed-off-by: Connor Abbott cwabbo...@gmail.com --- src/glsl/Makefile.sources | 1 + src/glsl/nir/nir.h

Re: [Mesa-dev] [PATCH 7/9] gallium/u_tests: test a NULL texture sampler view

2015-02-02 Thread Roland Scheidegger
Actually, since ARB_robust_buffer_access_behavior, GL requires some specfic values, but it's - odd... In all the above cases, if the context was created with robust buffer access enabled then instead of undefined behavior the result of the texel fetch is zero. For the case of a texel fetch on an

Re: [Mesa-dev] [PATCH] i965: Don't use tiled_memcpy to download from RGBX or BGRX surfaces

2015-02-02 Thread Anuj Phogat
On Mon, Feb 2, 2015 at 9:53 AM, Jason Ekstrand ja...@jlekstrand.net wrote: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88841 --- src/mesa/drivers/dri/i965/intel_pixel_read.c | 7 +++ src/mesa/drivers/dri/i965/intel_tex_image.c | 7 +++ 2 files changed, 14 insertions(+)

[Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Jason Ekstrand
Hi all, I wanted to send out a quick message about naming conventions for mesa entrypoints and dd table fallbacks. There has been some confusion and disagreement about this with some of the stuff Laura has been doing to implement DSA. Instead of side-track one of those patches for this

Re: [Mesa-dev] [PATCH] DD: Refactor BlitFramebuffer.

2015-02-02 Thread Laura Ekstrand
I broke out some of the whitespace: http://cgit.freedesktop.org/~ldeks/mesa/commit/?h=adsa-framebuffersid=ebe159fa9a6b1d98d63862bf89044028e67a4377 . Here is the (hopefully cleaner) BlitFramebuffers refactor:

Re: [Mesa-dev] [PATCH] egl: Soften several HAVE_DRM_PLATFORM to HAVE_LIBDRM

2015-02-02 Thread Emil Velikov
On 22/01/15 20:53, Samuel Thibault wrote: Emil Velikov, le Thu 22 Jan 2015 16:52:06 +, a écrit : On 14/01/15 19:36, Axel Davy wrote: To fix build when libdrm is not found, commit a594cec7e3ef275c386054127a357110a19dd823 did put several parts of egl code under #ifdef HAVE_DRM_PLATFORM.

[Mesa-dev] [Bug 88880] glxextensions.c: buffer overflow and incorrect zeroing

2015-02-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=0 Heinrich Schuchardt xypron.g...@gmx.de changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH] Revert fs-discard-exit-3: New test for another bug in handling 1.30's discard rule.

2015-02-02 Thread Eric Anholt
Francisco Jerez curroje...@riseup.net writes: Eric Anholt e...@anholt.net writes: Francisco Jerez curroje...@riseup.net writes: This reverts commit 3fad0868f023f1d726e230968a4df3327de38823. This test doesn't make any sense to me, it begins quoting the GLSL 1.30 spec on the interaction of

Re: [Mesa-dev] [PATCH 2/6] main: Added entry point for glTransformFeedbackBufferBase

2015-02-02 Thread Laura Ekstrand
On Mon, Feb 2, 2015 at 3:00 AM, Martin Peres martin.pe...@linux.intel.com wrote: v2: Review from Laura Ekstrand - give more helpful error messages - factor the lookup code for the xfb and objBuf - replace some already-existing tabs with spaces - add comments to explain the cases where xfb ==

[Mesa-dev] [PATCH] i965: Don't use tiled_memcpy to download from RGBX or BGRX surfaces

2015-02-02 Thread Jason Ekstrand
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88841 --- src/mesa/drivers/dri/i965/intel_pixel_read.c | 7 +++ src/mesa/drivers/dri/i965/intel_tex_image.c | 7 +++ 2 files changed, 14 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_pixel_read.c

Re: [Mesa-dev] Naming conventions, DSA, and meta

2015-02-02 Thread Eric Anholt
Jason Ekstrand ja...@jlekstrand.net writes: Hi all, I wanted to send out a quick message about naming conventions for mesa entrypoints and dd table fallbacks. There has been some confusion and disagreement about this with some of the stuff Laura has been doing to implement DSA. Instead of

Re: [Mesa-dev] [PATCH v2] dir-locals.el: Don't set variables for non-programming modes

2015-02-02 Thread Michel Dänzer
On 01.02.2015 01:45, Neil Roberts wrote: This limits the style changes to modes inherited from prog-mode. The main reason to do this is to avoid setting fill-column for people using Emacs to edit commit messages because 78 characters is too many to make it wrap properly in git log. Note that

Re: [Mesa-dev] [PATCH 10/10] radeonsi: implement polygon stippling

2015-02-02 Thread Michel Dänzer
On 02.02.2015 02:37, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com The stipple texture is bound to slot 16, so there are 17 sampler states and 34 sampler views now (17 normal slots + 17 fmask slots). [...] @@ -2742,16 +2743,26 @@ static int si_generate_gs_copy_shader(struct