[Mesa-dev] [PATCH] i965/fs: Fix saturate on MAD and LRP with the NIR backend.

2015-02-03 Thread Kenneth Graunke
Fixes misrendering in "Witcher 2" with INTEL_USE_NIR=1, and probably many other programs. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) This depends on Jason's 3 patch series that removes emit_percomp. It'

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

2015-02-03 Thread Kenneth Graunke
On Monday, February 02, 2015 05:28:37 PM Matt Turner wrote: > --- > 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,

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

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 Chris Wilson changed: What|Removed |Added Status|VERIFIED|REOPENED Resolution|FIXED

Re: [Mesa-dev] Fixes to build Mesa 10.4 against LLVM 3.5 on windows

2015-02-03 Thread Jose Fonseca
On 16/12/14 20:08, Rob Conde wrote: I built Mesa 10.4 with LLVM 3.5 today and I had to make a couple of fixes to get it to work: 1. root\src\mesa\compiler.h After: #include "c99_compat.h" /* inline, __func__, etc. */ Add: #ifdef _MSC_VER #define __attribute__(a) #en

[Mesa-dev] [PATCH] i965/fs: Fix saturate for nir_opcode_bcsel.

2015-02-03 Thread Kenneth Graunke
Caught by lit_sat.shader_test. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 153a1be..3c611af 100644 --- a/src/mesa/drivers

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

2015-02-03 Thread Roland Scheidegger
Am 03.02.2015 um 02:28 schrieb Matt Turner: > Unclear circumstances lead to undefined symbols on x86. > > Bugzilla: > https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.gentoo.org_show-5Fbug.cgi-3Fid-3D536916&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Vjtt0vs_iqoI31UfJxBl7yv9

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

2015-02-03 Thread Marek Olšák
On Mon, Feb 2, 2015 at 10:05 AM, Michel Dänzer wrote: > On 02.02.2015 02:37, Marek Olšák wrote: >> From: Marek Olšák >> >> 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 @@

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

2015-02-03 Thread Martin Peres
On 30/01/15 23:44, Kenneth Graunke wrote: On Friday, January 30, 2015 04:19:47 PM Martin Peres wrote: Reviewed-by: Kenneth Graunke Signed-off-by: Martin Peres --- src/mesa/drivers/dri/i915/intel_screen.c | 1 + src/mesa/drivers/dri/i965/brw_context.c | 3 +++ src/mesa/drivers/dri/i965/in

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

2015-02-03 Thread Emil Velikov
On 3 February 2015 at 02:53, Emil Velikov wrote: > Hi Felix, > > On 2 February 2015 at 19:04, Felix Janda 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 avail

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

2015-02-03 Thread Erik Faye-Lund
On Tue, Feb 3, 2015 at 2:28 AM, Matt Turner wrote: > Unclear circumstances lead to undefined symbols on x86. > > Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=536916 A comment[1] on the gentoo bug-tracker suggest doing something along these lines instead (untested)... [1]: https://bugs.gento

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

2015-02-03 Thread Jason Ekstrand
On Feb 2, 2015 10:59 PM, "Kenneth Graunke" wrote: > > On Monday, February 02, 2015 10:28:22 PM Jason Ekstrand wrote: > > On Mon, Feb 2, 2015 at 9:08 PM, Kenneth Graunke > > wrote: > > > > > On Thursday, January 29, 2015 01:40:18 PM Jason Ekstrand wrote: > [snip] > > > > +static bool > > > > +is_p

Re: [Mesa-dev] [PATCH] i965/fs: Fix saturate on MAD and LRP with the NIR backend.

2015-02-03 Thread Jason Ekstrand
Ooh! I bet this fixes our rendering problems on some of those benchmarks too! I was wondering why generating made was causing problems. Reviewed-by: Jason Ekstrand On Feb 3, 2015 1:18 AM, "Kenneth Graunke" wrote: > Fixes misrendering in "Witcher 2" with INTEL_USE_NIR=1, and probably > many oth

Re: [Mesa-dev] [PATCH] i965/fs: Fix saturate for nir_opcode_bcsel.

2015-02-03 Thread Jason Ekstrand
Hrm... I thought bcsel worked on integers. You shouldn't be able to sat it anyway... This seems strange. As a side-note, this is one of the downsides to typeless that we should figure out how to solve. Not 100% sure how at the moment. On Feb 3, 2015 2:35 AM, "Kenneth Graunke" wrote: > Caught b

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

2015-02-03 Thread Martin Peres
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. v2: - change the name from mesa_extension_override to extension_override - make the presence of the environment variabl

[Mesa-dev] [PATCH 1/4] intel: make the i830/i915/i965 drivers obey drirc's force_glsl_version v2

2015-02-03 Thread Martin Peres
v2: - change the commit name as per Marek's comment - make the i830/i915 drivers actually use the force_glsl_version Reviewed-by: Kenneth Graunke v1 Signed-off-by: Martin Peres --- src/mesa/drivers/dri/i915/i830_context.c | 4 src/mesa/drivers/dri/i915/i915_context.c | 4 src/mesa/dri

[Mesa-dev] [PATCH 4/4] drirc: add workarounds for Unigine Sanctuary v2

2015-02-03 Thread Martin Peres
v2: - rename mesa_extension-override to extension_override - improve the comment by telling we disable GL_ARB_gpu_shader5 (Ilia) - fix the name ARB_GL_gpu_shader5 to GL_ARB_gpu_shader5 (Ilia) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82897 Signed-off-by: Martin Peres --- src/mesa/dr

[Mesa-dev] [PATCH 3/4] drirc: add workarounds for Unigine Tropics v2

2015-02-03 Thread Martin Peres
v2: - rename mesa_extension-override to extension_override - improve the comment by telling we disable GL_ARB_gpu_shader5 - fix the name ARB_GL_gpu_shader5 to GL_ARB_gpu_shader5 (Ilia) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82897 Signed-off-by: Martin Peres --- src/mesa/drivers/d

[Mesa-dev] [PATCH] svga: fix sid corruption in vmw_drm_surface_from_handle()

2015-02-03 Thread danielx . j . van . der . wath
From: Daniel van der Wath The value stored in "handle" is trashed before being copied into the surface's sid. Use the original value from "whandle->handle" instead. This fixes a bug with Weston running on VMWare, where SVGA3D_SetRenderTarget() would fail and prevent anything from being drawn on s

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

2015-02-03 Thread Martin Peres
On 02/02/15 23:36, Laura Ekstrand wrote: On Mon, Feb 2, 2015 at 2:58 AM, Martin Peres mailto:martin.pe...@linux.intel.com>> wrote: if (!obj) { -_mesa_error(ctx, GL_OUT_OF_MEMORY, "glGenTransformFeedbacks"); +_mesa_error(ctx, GL_OUT_OF_MEMORY, "

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

2015-02-03 Thread Martin Peres
On 02/02/15 23:46, Laura Ekstrand wrote: On Mon, Feb 2, 2015 at 3:00 AM, Martin Peres mailto:martin.pe...@linux.intel.com>> wrote: @@ -543,15 +545,12 @@ bind_buffer_range(struct gl_context *ctx, GLuint index, */ void _mesa_bind_buffer_range_transform_feedback(struct

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

2015-02-03 Thread Martin Peres
On 02/02/15 16:09, Ilia Mirkin wrote: On Mon, Feb 2, 2015 at 6:00 AM, Martin Peres wrote: +static struct gl_transform_feedback_object * +_mesa_lookup_transform_feedback_object_err(struct gl_context *ctx, + GLuint xfb, const char* func) +{ + struct gl

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

2015-02-03 Thread Martin Peres
On 02/02/15 23:51, Laura Ekstrand wrote: On Mon, Feb 2, 2015 at 3:30 AM, Martin Peres mailto:martin.pe...@linux.intel.com>> wrote: if (index >= ctx->Const.MaxTransformFeedbackBuffers) { - _mesa_error(ctx, GL_INVALID_VALUE, "glBindBufferRange(index=%d " -

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

2015-02-03 Thread Ilia Mirkin
On Tue, Feb 3, 2015 at 10:41 AM, Martin Peres wrote: > When both MESA_EXTENSION_OVERRIDE and drirc's mesa_extension_override are > set, the environment variable takes precedence. Just a thought -- combine them instead of having one override the other? (With the env var being processed second so t

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

2015-02-03 Thread Kai Wasserbäch
Dave Airlie wrote on 03.02.2015 05:48: > From: Dave Airlie > > 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(). > > Signe

Re: [Mesa-dev] [PATCH 08/21] main: Add entry point for NamedBufferSubData.

2015-02-03 Thread Laura Ekstrand
Because of your comments, there will be a v2 patch series. But I won't be sending it for a week or so because I'm in the middle of implementing BlitNamedFramebuffer, which has required a lot of concentration. Laura On Sat, Jan 31, 2015 at 11:46 PM, Ian Romanick wrote: > On 01/31/2015 02:21 AM,

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

2015-02-03 Thread Kristian Høgsberg
On Mon, Feb 2, 2015 at 11:59 AM, Thomas Helland wrote: > 2015-02-02 19:18 GMT+01:00 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 o

[Mesa-dev] [PATCH] nir/validate: Ensure that phi sources are SSA-only

2015-02-03 Thread Jason Ekstrand
--- src/glsl/nir/nir_validate.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c index 7c801b2..5b47f1a 100644 --- a/src/glsl/nir/nir_validate.c +++ b/src/glsl/nir/nir_validate.c @@ -488,16 +488,9 @@ valida

Re: [Mesa-dev] [PATCH] nir/validate: Ensure that phi sources are SSA-only

2015-02-03 Thread Jason Ekstrand
For whatever reason, I thought we might have non-ssa phi sources. However, I looked again and I don't think it's possible. Also, this patch applies with no piglit regressions. On Tue, Feb 3, 2015 at 10:49 AM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_validate.c | 13 +++-- > 1 fi

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

2015-02-03 Thread Matt Turner
On Tue, Feb 3, 2015 at 6:13 AM, Erik Faye-Lund wrote: > On Tue, Feb 3, 2015 at 2:28 AM, Matt Turner wrote: >> Unclear circumstances lead to undefined symbols on x86. >> >> Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=536916 > > A comment[1] on the gentoo bug-tracker suggest doing something a

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

2015-02-03 Thread Erik Faye-Lund
On Tue, Feb 3, 2015 at 7:58 PM, Matt Turner wrote: > On Tue, Feb 3, 2015 at 6:13 AM, Erik Faye-Lund wrote: >> On Tue, Feb 3, 2015 at 2:28 AM, Matt Turner wrote: >>> Unclear circumstances lead to undefined symbols on x86. >>> >>> Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=536916 >> >> A co

Re: [Mesa-dev] [PATCH] i965/fs: Fix saturate on MAD and LRP with the NIR backend.

2015-02-03 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 1/4] main: make the intel driver obey drirc's force_glsl_version

2015-02-03 Thread Kenneth Graunke
On Tuesday, February 03, 2015 03:50:58 PM Martin Peres wrote: > > On 30/01/15 23:44, Kenneth Graunke wrote: > > On Friday, January 30, 2015 04:19:47 PM Martin Peres wrote: > >> Reviewed-by: Kenneth Graunke > >> Signed-off-by: Martin Peres > >> --- > >> src/mesa/drivers/dri/i915/intel_screen.c

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

2015-02-03 Thread Matt Turner
On Tue, Feb 3, 2015 at 5:37 AM, Roland Scheidegger wrote: > Am 03.02.2015 um 02:28 schrieb Matt Turner: >> Unclear circumstances lead to undefined symbols on x86. >> >> Bugzilla: >> https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.gentoo.org_show-5Fbug.cgi-3Fid-3D536916&d=AwIGaQ&c=Sqcl0E

Re: [Mesa-dev] [PATCH] nir/validate: Ensure that phi sources are SSA-only

2015-02-03 Thread Connor Abbott
On Tue, Feb 3, 2015 at 1:49 PM, Jason Ekstrand wrote: > For whatever reason, I thought we might have non-ssa phi sources. However, > I looked again and I don't think it's possible. Also, this patch applies > with no piglit regressions. Yeah, the only reason I made it so that phi instructions co

Re: [Mesa-dev] [PATCH] i965/fs: Fix saturate for nir_opcode_bcsel.

2015-02-03 Thread Kenneth Graunke
On Tuesday, February 03, 2015 07:10:20 AM you wrote: > On Feb 3, 2015 2:35 AM, "Kenneth Graunke" wrote: > > Caught by lit_sat.shader_test. > > > > Signed-off-by: Kenneth Graunke > > --- > > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/sr

Re: [Mesa-dev] [PATCH] i965/fs: Fix saturate for nir_opcode_bcsel.

2015-02-03 Thread Jason Ekstrand
On Tue, Feb 3, 2015 at 12:27 PM, Kenneth Graunke wrote: > On Tuesday, February 03, 2015 07:10:20 AM you wrote: > > On Feb 3, 2015 2:35 AM, "Kenneth Graunke" wrote: > > > Caught by lit_sat.shader_test. > > > > > > Signed-off-by: Kenneth Graunke > > > --- > > > src/mesa/drivers/dri/i965/brw_fs_n

Re: [Mesa-dev] [PATCH] i965/fs: Fix saturate for nir_opcode_bcsel.

2015-02-03 Thread Connor Abbott
On Tue, Feb 3, 2015 at 3:27 PM, Kenneth Graunke wrote: > On Tuesday, February 03, 2015 07:10:20 AM you wrote: >> On Feb 3, 2015 2:35 AM, "Kenneth Graunke" wrote: >> > Caught by lit_sat.shader_test. >> > >> > Signed-off-by: Kenneth Graunke >> > --- >> > src/mesa/drivers/dri/i965/brw_fs_nir.cpp |

[Mesa-dev] [PATCH 1/2] nir/lower_source_mods: Don't lower saturate for non-float outputs

2015-02-03 Thread Jason Ekstrand
--- src/glsl/nir/nir_lower_to_source_mods.c | 4 1 file changed, 4 insertions(+) diff --git a/src/glsl/nir/nir_lower_to_source_mods.c b/src/glsl/nir/nir_lower_to_source_mods.c index c3f39bc..d6bf77f 100644 --- a/src/glsl/nir/nir_lower_to_source_mods.c +++ b/src/glsl/nir/nir_lower_to_source_

[Mesa-dev] [PATCH 2/2] nir/validate: Validate that only float ALU outputs are saturated

2015-02-03 Thread Jason Ekstrand
--- src/glsl/nir/nir_validate.c | 8 1 file changed, 8 insertions(+) diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c index 7c801b2..89dfdf8 100644 --- a/src/glsl/nir/nir_validate.c +++ b/src/glsl/nir/nir_validate.c @@ -239,6 +239,14 @@ validate_alu_dest(nir_alu_des

Re: [Mesa-dev] [PATCH 1/2] nir/lower_source_mods: Don't lower saturate for non-float outputs

2015-02-03 Thread Connor Abbott
Reviewed-by: Connor Abbott On Tue, Feb 3, 2015 at 3:43 PM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_lower_to_source_mods.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/glsl/nir/nir_lower_to_source_mods.c > b/src/glsl/nir/nir_lower_to_source_mods.c > index c3f39bc..d6b

Re: [Mesa-dev] [PATCH] i965/fs: Fix saturate for nir_opcode_bcsel.

2015-02-03 Thread Jason Ekstrand
On Tue, Feb 3, 2015 at 12:42 PM, Connor Abbott wrote: > On Tue, Feb 3, 2015 at 3:27 PM, Kenneth Graunke > wrote: > > On Tuesday, February 03, 2015 07:10:20 AM you wrote: > >> On Feb 3, 2015 2:35 AM, "Kenneth Graunke" > wrote: > >> > Caught by lit_sat.shader_test. > >> > > >> > Signed-off-by: Ke

Re: [Mesa-dev] [PATCH 2/2] nir/validate: Validate that only float ALU outputs are saturated

2015-02-03 Thread Connor Abbott
Reviewed-by: Connor Abbott Funny, I thought we already did this... whoops. On Tue, Feb 3, 2015 at 3:43 PM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_validate.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c > inde

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

2015-02-03 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand Tested-by: Jason Ekstrand And here's the shader-db stats for the commit message: total NIR instructions in shared programs: 2045293 -> 2041209 (-0.20%) NIR instructions in affected programs: 126564 -> 122480 (-3.23%) helped:615 HUR

Re: [Mesa-dev] [PATCH 2/2] nir/validate: Validate that only float ALU outputs are saturated

2015-02-03 Thread Erik Faye-Lund
On Tue, Feb 3, 2015 at 9:43 PM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_validate.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c > index 7c801b2..89dfdf8 100644 > --- a/src/glsl/nir/nir_validate.c > +++ b/src/glsl

Re: [Mesa-dev] [PATCH 2/2] nir/validate: Validate that only float ALU outputs are saturated

2015-02-03 Thread Jason Ekstrand
On Tue, Feb 3, 2015 at 1:08 PM, Erik Faye-Lund wrote: > On Tue, Feb 3, 2015 at 9:43 PM, Jason Ekstrand > wrote: > > --- > > src/glsl/nir/nir_validate.c | 8 > > 1 file changed, 8 insertions(+) > > > > diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c > > index 7c80

Re: [Mesa-dev] [PATCH 2/2] nir/validate: Validate that only float ALU outputs are saturated

2015-02-03 Thread Erik Faye-Lund
On Feb 3, 2015 10:39 PM, "Jason Ekstrand" wrote: > > > > On Tue, Feb 3, 2015 at 1:08 PM, Erik Faye-Lund wrote: >> >> On Tue, Feb 3, 2015 at 9:43 PM, Jason Ekstrand wrote: >> > --- >> > src/glsl/nir/nir_validate.c | 8 >> > 1 file changed, 8 insertions(+) >> > >> > diff --git a/src/glsl

Re: [Mesa-dev] [PATCH 5/9] nir: Add a flag for lowering fneg/ineg.

2015-02-03 Thread Eric Anholt
Connor Abbott writes: > I think this logic should be flipped around... you should have a flag > 'lower_sub' which is false for vc4 but true for i965, and then if the > flag is true we lower sub to add+neg and if false we try and > reconstruct sub (and do other things like pulling neg's out of > m

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

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88930 --- Comment #1 from Brian Paul --- Thanks. Your patch looks correct. I believe we can also simply some code in osmesa_st_framebuffer_flush_front() as a follow-on. I'll apply your patch to master and the 10.4 branch. -- You are receiving this

[Mesa-dev] [PATCH] st/osmesa: simplify osmesa_st_framebuffer_flush_front()

2015-02-03 Thread Brian Paul
The osmesa->textures[] array is indexed by ST_ATTACHMENT_* so there's no need to search the array to find the depth/stencil buffer. This is a follow-on improvement after bug 88930. --- src/gallium/state_trackers/osmesa/osmesa.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletio

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

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

[Mesa-dev] [PATCH] torus.c: Lighting effect is distorted when object is scaled up/down

2015-02-03 Thread Dongwon Kim
When torus object is scaled up/down via glScalef call the lighting effect is incorrectly expressed on render target because normals' length is also changed when vertices are scaled up/down. This patch enables "automatic normalization" of normals, which is one of well-known ways to avoid this kind

[Mesa-dev] [PATCH] egl, wayland: RGB565 format support on Back-buffer

2015-02-03 Thread Dongwon Kim
In current code, color format is always hardcoded to __DRI_IMAGE_FORMAT_ARGB when buffer or DRI image is allocated in function calls, get_back_bo and dri2_get_buffers, regardless of current target's color format. This problem may leads to incorrect render pitch calculation, which eventually e

Re: [Mesa-dev] [PATCH] torus.c: Lighting effect is distorted when object is scaled up/down

2015-02-03 Thread Brian Paul
On 02/03/2015 03:48 PM, Dongwon Kim wrote: When torus object is scaled up/down via glScalef call the lighting effect is incorrectly expressed on render target because normals' length is also changed when vertices are scaled up/down. This patch enables "automatic normalization" of normals, which

[Mesa-dev] [Bug 85203] [DRI2][RadeonSI] Pageflip completion event has impossible msc.

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85203 --- Comment #7 from Lorenzo Bona --- I'm experiencing the same problem here. Computer suddently hangs and I have to reboot. In Xorg.0.log I have the same warnings. Dmesg has no issue. Running on drm-fixes-3.19 (rc6), mesa/ddx/xorg/drm from git,

[Mesa-dev] [Bug 85203] [DRI2][RadeonSI] Pageflip completion event has impossible msc.

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85203 --- Comment #8 from Lorenzo Bona --- Created attachment 113141 --> https://bugs.freedesktop.org/attachment.cgi?id=113141&action=edit Xorg.log -- You are receiving this mail because: You are the assignee for the bug. __

Re: [Mesa-dev] [PATCH 5/9] nir: Add a flag for lowering fneg/ineg.

2015-02-03 Thread Connor Abbott
On Tue, Feb 3, 2015 at 5:20 PM, Eric Anholt wrote: > Connor Abbott writes: > >> I think this logic should be flipped around... you should have a flag >> 'lower_sub' which is false for vc4 but true for i965, and then if the >> flag is true we lower sub to add+neg and if false we try and >> reconst

Re: [Mesa-dev] [PATCH 4/4] drirc: add workarounds for Unigine Sanctuary v2

2015-02-03 Thread Matt Turner
On Tue, Feb 3, 2015 at 7:41 AM, Martin Peres wrote: > v2: > - rename mesa_extension-override to extension_override > - improve the comment by telling we disable GL_ARB_gpu_shader5 (Ilia) > - fix the name ARB_GL_gpu_shader5 to GL_ARB_gpu_shader5 (Ilia) > > Bugzilla: https://bugs.freedesktop.org/sho

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

2015-02-03 Thread Marek Olšák
Interesting. On radeonsi, the default value of an unbound texture can be chosen but is the same for "load", "sample", and "gather" instructions. We can't return (0,0,0,0) for "load" and (0,0,0,1) for "sample". I'll just modify the test to accept both return values. Marek On Mon, Feb 2, 2015 at 5

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

2015-02-03 Thread Felix Janda
Emil Velikov wrote: > On 3 February 2015 at 02:53, Emil Velikov wrote: > > Hi Felix, > > Thanks for the review. > > On 2 February 2015 at 19:04, Felix Janda wrote: > >> Previously PTHREAD_MUTEX_RECURSIVE_NP had been used on linux for > >> compatibility with old glibc. Since mesa defines __GNU_S

[Mesa-dev] [Bug 85203] [DRI2][RadeonSI] Pageflip completion event has impossible msc.

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85203 --- Comment #9 from Michel Dänzer --- (In reply to Lorenzo Bona from comment #7) > I'm experiencing the same problem here. > > Computer suddently hangs and I have to reboot. I doubt those hangs are directly related to these messages. -- You a

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

2015-02-03 Thread Michel Dänzer
On 03.02.2015 22:43, Marek Olšák wrote: > On Mon, Feb 2, 2015 at 10:05 AM, Michel Dänzer wrote: >> On 02.02.2015 02:37, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> The stipple texture is bound to slot 16, so there are 17 sampler states and >>> 34 sampler views now (17 normal slots + 17 fmask

[Mesa-dev] [PATCH 2/3] i965: Set CMP's destination type to src0's type.

2015-02-03 Thread Matt Turner
Allows CMP instructions with float sources to be compacted and coissued. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 16 ++-- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 20 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/mesa/dri

[Mesa-dev] [PATCH 3/3] i965: Remove now unnecessary Gen8 CMP destination type override.

2015-02-03 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_eu_emit.c | 8 1 file changed, 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 57161e2..308b305 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCH 1/3] i965/fs: Implement the WaCMPInstFlagDepClearedEarly work-around.

2015-02-03 Thread Matt Turner
Prevents piglit regressions from the next patch. --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 37 +- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index

[Mesa-dev] [Bug 88962] [osmesa] Crash on postprocessing if z buffer is NULL

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88962 Bug ID: 88962 Summary: [osmesa] Crash on postprocessing if z buffer is NULL Product: Mesa Version: git Hardware: All OS: All Status: NEW Severity: normal

[Mesa-dev] [Bug 88962] [osmesa] Crash on postprocessing if z buffer is NULL

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88962 --- Comment #2 from Park, Jeongmin --- Created attachment 113148 --> https://bugs.freedesktop.org/attachment.cgi?id=113148&action=edit patch #2 -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee f

[Mesa-dev] [Bug 88962] [osmesa] Crash on postprocessing if z buffer is NULL

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88962 --- Comment #1 from Park, Jeongmin --- Created attachment 113147 --> https://bugs.freedesktop.org/attachment.cgi?id=113147&action=edit patch #1 -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee f

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

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 --- Comment #13 from XiongZhang --- (In reply to Chris Wilson from comment #12) > Do you mind reconfirming that you actually tested with DRI3 since the > proposed patch is not yet included? Yes, I test with DRI3. When I compile xf86-video-intel

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

2015-02-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 --- Comment #14 from Eero Tamminen --- (In reply to XiongZhang from comment #13) > Yes, I test with DRI3. When I compile xf86-video-intel and mesa, I add > --enable-dri3 option. > Without the proposed patch, I could easily reproduce this issue. A