[Mesa-dev] [Bug 86944] glsl_parser_extras.cpp", line 1455: Error: Badly formed expression.

2014-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86944 --- Comment #3 from Vinson Lee --- (In reply to Matt Turner from comment #2) > Oh, I bet there's something wrong with the macro. I'd try removing the > typeof(*v) cast in src/util/u_atomic.h around line 173. If that fixes it, we > should remove t

Re: [Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 5:23 PM, Ben Widawsky wrote: > On Fri, Dec 05, 2014 at 05:08:40PM -0800, Matt Turner wrote: >> diff --git a/src/mesa/drivers/dri/i965/intel_asm_annotation.c >> b/src/mesa/drivers/dri/i965/intel_asm_annotation.c >> index 37ad090..ac12655 100644 >> --- a/src/mesa/drivers/dri/

Re: [Mesa-dev] r600/sb loop issue

2014-12-05 Thread Vadim Girlin
On 12/06/2014 08:01 AM, Matt Turner wrote: On Fri, Dec 5, 2014 at 8:56 PM, Vadim Girlin wrote: On 12/06/2014 07:50 AM, Matt Turner wrote: On Fri, Dec 5, 2014 at 8:13 PM, Vadim Girlin wrote: I suspect we should rather get rid of such loops somehow, i.e. convert to something else, the loop t

Re: [Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Ian Romanick
On 12/05/2014 09:34 PM, Ben Widawsky wrote: > On Fri, Dec 05, 2014 at 08:57:27PM -0800, Ian Romanick wrote: >> On 12/05/2014 05:23 PM, Ben Widawsky wrote: >>> On Fri, Dec 05, 2014 at 05:08:40PM -0800, Matt Turner wrote: --- Eric was against making this the default when I first suggested a

Re: [Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Ben Widawsky
On Fri, Dec 05, 2014 at 08:57:27PM -0800, Ian Romanick wrote: > On 12/05/2014 05:23 PM, Ben Widawsky wrote: > > On Fri, Dec 05, 2014 at 05:08:40PM -0800, Matt Turner wrote: > >> --- > >> Eric was against making this the default when I first suggested a flag. > >> Have opinions changed since then? I

Re: [Mesa-dev] r600/sb loop issue

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 8:56 PM, Vadim Girlin wrote: > On 12/06/2014 07:50 AM, Matt Turner wrote: >> >> On Fri, Dec 5, 2014 at 8:13 PM, Vadim Girlin >> wrote: >>> >>> I suspect we should rather get rid of such loops somehow, i.e. convert to >>> something else, the loop that never repeats is not re

Re: [Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Ian Romanick
On 12/05/2014 05:23 PM, Ben Widawsky wrote: > On Fri, Dec 05, 2014 at 05:08:40PM -0800, Matt Turner wrote: >> --- >> Eric was against making this the default when I first suggested a flag. >> Have opinions changed since then? I rarely use the annotations, and they >> do make the assembly harder to

Re: [Mesa-dev] r600/sb loop issue

2014-12-05 Thread Vadim Girlin
On 12/06/2014 07:50 AM, Matt Turner wrote: On Fri, Dec 5, 2014 at 8:13 PM, Vadim Girlin wrote: I suspect we should rather get rid of such loops somehow, i.e. convert to something else, the loop that never repeats is not really a loop anyway. AFAICS "continue" is not supported in switch statemen

Re: [Mesa-dev] r600/sb loop issue

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 8:13 PM, Vadim Girlin wrote: > I suspect we should rather get rid of such loops somehow, i.e. convert to > something else, the loop that never repeats is not really a loop anyway. > AFAICS "continue" is not supported in switch statements according to GLSL > specs, so the loo

Re: [Mesa-dev] r600/sb loop issue

2014-12-05 Thread Vadim Girlin
On 12/04/2014 01:43 AM, Dave Airlie wrote: Hi Vadim, I've been looking with Glenn's help into a bug in sb for a couple of weeks now triggered by a change in how GLSL generates switch statements. I understand you probably aren't too interested in r600g but I believe I'm hitting a design level pr

Re: [Mesa-dev] [PATCH] i965: Fix union usage for GCC <= 4.6.

2014-12-05 Thread Jonathan Gray
On Fri, Dec 05, 2014 at 06:56:27PM -0800, Matt Turner wrote: > On Fri, Dec 5, 2014 at 6:18 PM, Vinson Lee wrote: > > This patch fixes this build error with GCC <= 4.6. > > > > CXXtest_vf_float_conversions.o > > test_vf_float_conversions.cpp: In function ???unsigned int f2u(float)???: > > tes

[Mesa-dev] opengl fill modes

2014-12-05 Thread Roland Scheidegger
Hi, this might be a stupid question, but if you use opengl fill mode line / point are the shared edges/vertices in strip (or fan) primitives drawn multiple times? My pedantic reading of the spec would seem to say yes (because it essentially says tri strips form individual triangles for rasterizati

Re: [Mesa-dev] [PATCH] i965: Fix union usage for GCC <= 4.6.

2014-12-05 Thread Ben Widawsky
On Fri, Dec 05, 2014 at 06:56:27PM -0800, Matt Turner wrote: > On Fri, Dec 5, 2014 at 6:18 PM, Vinson Lee wrote: > > This patch fixes this build error with GCC <= 4.6. > > > > CXXtest_vf_float_conversions.o > > test_vf_float_conversions.cpp: In function ‘unsigned int f2u(float)’: > > test_vf

Re: [Mesa-dev] [PATCH] i965: Fix union usage for GCC <= 4.6.

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 6:18 PM, Vinson Lee wrote: > This patch fixes this build error with GCC <= 4.6. > > CXXtest_vf_float_conversions.o > test_vf_float_conversions.cpp: In function ‘unsigned int f2u(float)’: > test_vf_float_conversions.cpp:63:20: error: expected primary-expression > befor

[Mesa-dev] [PATCH] i965: Fix union usage for GCC <= 4.6.

2014-12-05 Thread Vinson Lee
This patch fixes this build error with GCC <= 4.6. CXXtest_vf_float_conversions.o test_vf_float_conversions.cpp: In function ‘unsigned int f2u(float)’: test_vf_float_conversions.cpp:63:20: error: expected primary-expression before ‘.’ token Bugzilla: https://bugs.freedesktop.org/show_bug.c

Re: [Mesa-dev] [PATCH v3 04/12] i965: Remove shader program argument and member from fs_generator

2014-12-05 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 10:02:25PM -0800, Kristian Høgsberg wrote: > Now that the caller passes in the shader debug name, we don't need this > anymore. > > Signed-off-by: Kristian Høgsberg Up through here all looks fine to me. I do like Jason's suggestion for patch 1. (I also don't really see th

Re: [Mesa-dev] [PATCH 3/4] i965/fs: Try to emit LINE instructions on Gen <= 5.

2014-12-05 Thread Matt Turner
On Thu, Dec 4, 2014 at 7:07 PM, Ian Romanick wrote: > On 12/04/2014 04:37 PM, Matt Turner wrote: >> The LINE instruction performs a multiply-add instruction (a * b + c) >> where b and c are scalar arguments. It reads b and c from offsets in >> src0 such that you can load them (it they're represent

Re: [Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Ben Widawsky
On Fri, Dec 05, 2014 at 05:08:40PM -0800, Matt Turner wrote: > --- > Eric was against making this the default when I first suggested a flag. > Have opinions changed since then? I rarely use the annotations, and they > do make the assembly harder to read, when the assembly is what you're > intereste

[Mesa-dev] [PATCH 1/2] winsys/radeon: Always report at least 1 compute unit

2014-12-05 Thread Tom Stellard
All uses of this require that the value be at least one, so it's easier to report at least one than having to wrap all uses in MAX2(max_compute_units, 1). --- src/gallium/drivers/radeon/r600_pipe_common.c | 2 +- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 2 ++ 2 files changed, 3 inse

[Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Matt Turner
--- Eric was against making this the default when I first suggested a flag. Have opinions changed since then? I rarely use the annotations, and they do make the assembly harder to read, when the assembly is what you're interested in. src/mesa/drivers/dri/i965/intel_asm_annotation.c | 2 +- src/me

[Mesa-dev] [PATCH 2/2] radeonsi/compute: Clamp COMPUTE_TMPRING_SIZE.WAVES to: num_cu * 32

2014-12-05 Thread Tom Stellard
This is the maximum value allowed for this field. --- src/gallium/drivers/radeonsi/si_compute.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 6ddb478..bf935dc 100644 --- a/src/gallium/drivers/rade

Re: [Mesa-dev] [PATCH 1/2] util: Make unreachable at least be an assert

2014-12-05 Thread Ian Romanick
On 12/05/2014 01:54 PM, Ian Romanick wrote: > On 12/05/2014 01:50 PM, Matt Turner wrote: >> On Fri, Dec 5, 2014 at 1:48 PM, Ian Romanick wrote: >>> On 12/05/2014 01:42 PM, Matt Turner wrote: On Fri, Dec 5, 2014 at 1:25 PM, Ian Romanick wrote: > On 12/05/2014 01:17 PM, Carl Worth wrote: >

[Mesa-dev] [PATCH 1/1] clover: Use switch

2014-12-05 Thread Jan Vesely
THis way we get a warning if an enum value is not handled v2: codestyle Signed-off-by: Jan Vesely Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/core/kernel.cpp | 44 ++- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/src/gallium/state_t

Re: [Mesa-dev] [PATCH 1/2] util: Make unreachable at least be an assert

2014-12-05 Thread Ian Romanick
On 12/05/2014 01:50 PM, Matt Turner wrote: > On Fri, Dec 5, 2014 at 1:48 PM, Ian Romanick wrote: >> On 12/05/2014 01:42 PM, Matt Turner wrote: >>> On Fri, Dec 5, 2014 at 1:25 PM, Ian Romanick wrote: On 12/05/2014 01:17 PM, Carl Worth wrote: > Previously, if __builtin_unreachable() was un

Re: [Mesa-dev] [PATCH 1/2] util: Make unreachable at least be an assert

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 1:48 PM, Ian Romanick wrote: > On 12/05/2014 01:42 PM, Matt Turner wrote: >> On Fri, Dec 5, 2014 at 1:25 PM, Ian Romanick wrote: >>> On 12/05/2014 01:17 PM, Carl Worth wrote: Previously, if __builtin_unreachable() was unavailable, the unreachable macro was defined

Re: [Mesa-dev] [PATCH 1/2] util: Make unreachable at least be an assert

2014-12-05 Thread Ian Romanick
On 12/05/2014 01:42 PM, Matt Turner wrote: > On Fri, Dec 5, 2014 at 1:25 PM, Ian Romanick wrote: >> On 12/05/2014 01:17 PM, Carl Worth wrote: >>> Previously, if __builtin_unreachable() was unavailable, the >>> unreachable macro was defined to do nothing. We do better here, by at >>> least still ma

Re: [Mesa-dev] [PATCH 1/2] util: Make unreachable at least be an assert

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 1:25 PM, Ian Romanick wrote: > On 12/05/2014 01:17 PM, Carl Worth wrote: >> Previously, if __builtin_unreachable() was unavailable, the >> unreachable macro was defined to do nothing. We do better here, by at >> least still making it an assert. >> --- >> src/util/macros.h |

Re: [Mesa-dev] [PATCH v3 03/12] i965: Set shader name for generator from call site

2014-12-05 Thread Ben Widawsky
On Fri, Dec 05, 2014 at 01:36:52PM -0800, Matt Turner wrote: > On Fri, Dec 5, 2014 at 1:34 PM, Ben Widawsky wrote: > > I do wonder the original motivation for the debug_flag member. Seems totally > > superfluous. > > Because brw_fs_generator is used by the fs and by blorp, and you want > differen

Re: [Mesa-dev] [PATCH 2/2] glsl: Prefer unreachable("condition") over assert(!"condition")

2014-12-05 Thread Ian Romanick
On 12/05/2014 01:17 PM, Carl Worth wrote: > The unreachable macro has the advantage (for modern compilers) of > hinting to the compiler that this code is actually unreachable, which > can help reduce spurious warnings, etc. > > Also, this version is a bit easier to type correctly and understand >

Re: [Mesa-dev] [PATCH v3 03/12] i965: Set shader name for generator from call site

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 1:34 PM, Ben Widawsky wrote: > I do wonder the original motivation for the debug_flag member. Seems totally > superfluous. Because brw_fs_generator is used by the fs and by blorp, and you want different debug flags for them. ___ m

Re: [Mesa-dev] [PATCH v3 03/12] i965: Set shader name for generator from call site

2014-12-05 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 10:02:24PM -0800, Kristian Høgsberg wrote: > fs_generator no longer knows what stage it's generating code for, so > we have to set the debug name of the shader from the call site. > > Signed-off-by: Kristian Høgsberg > --- > src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp

Re: [Mesa-dev] [PATCH 1/2] util: Make unreachable at least be an assert

2014-12-05 Thread Ian Romanick
On 12/05/2014 01:17 PM, Carl Worth wrote: > Previously, if __builtin_unreachable() was unavailable, the > unreachable macro was defined to do nothing. We do better here, by at > least still making it an assert. > --- > src/util/macros.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [Mesa-dev] [PATCH 1/2] mesa: Add a source parameter to _mesa_gl_debug.

2014-12-05 Thread Ian Romanick
Series is Reviewed-by: Ian Romanick I like Eric's suggestions for patch 2, but I think those could be a follow-on patch. On 12/03/2014 10:24 AM, Matt Turner wrote: > --- > src/mesa/drivers/dri/i915/intel_context.h | 2 ++ > src/mesa/drivers/dri/i915/intel_fbo.c | 1 + > src/mesa/drivers/dr

[Mesa-dev] [PATCH 2/2] glsl: Prefer unreachable("condition") over assert(!"condition")

2014-12-05 Thread Carl Worth
The unreachable macro has the advantage (for modern compilers) of hinting to the compiler that this code is actually unreachable, which can help reduce spurious warnings, etc. Also, this version is a bit easier to type correctly and understand when reading without that seemingly out-of-place logic

[Mesa-dev] [PATCH 1/2] util: Make unreachable at least be an assert

2014-12-05 Thread Carl Worth
Previously, if __builtin_unreachable() was unavailable, the unreachable macro was defined to do nothing. We do better here, by at least still making it an assert. --- src/util/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/macros.h b/src/util/macros.h index 5

Re: [Mesa-dev] [PATCH v3 01/12] i965: Don't copy propagate constants from sources with saturate

2014-12-05 Thread Jason Ekstrand
On Thu, Dec 4, 2014 at 10:02 PM, Kristian Høgsberg wrote: > We don't propagate the saturate bit and some instructions can't > saturate at all. If the source has saturate set, just skip propagation. > I think the commit message could use some help. The real point is that copy propagation propag

Re: [Mesa-dev] [PATCH] i965/fs: Remove try_replace_with_sel().

2014-12-05 Thread Jason Ekstrand
On Fri, Dec 5, 2014 at 10:24 AM, Matt Turner wrote: > On Fri, Dec 5, 2014 at 7:02 AM, Jason Ekstrand > wrote: > > First off, how is this different from the sel peephole? > > This happens in the visitor during translation from GLSL IR to FS IR. > It only looks for an exact sequence of IF/MOV/ELSE

Re: [Mesa-dev] [PATCH] mesa/st: don't use CMP / I2F for conditional assignments with native integers

2014-12-05 Thread Roland Scheidegger
Ahh the comment referred to that part of the code... Yes indeed looks better. Roland Am 05.12.2014 um 19:35 schrieb Jose Fonseca: > What I mean is, instead of > > if (switch_order) { > FOO(l_src, r) > } else { > FOO(r, l_src,) > } > >... > > if (switch_order) { > BO

Re: [Mesa-dev] [PATCH] mesa/st: don't use CMP / I2F for conditional assignments with native integers

2014-12-05 Thread Jose Fonseca
What I mean is, instead of if (switch_order) { FOO(l_src, r) } else { FOO(r, l_src,) } ... if (switch_order) { BOO(l_src, r) } else { BOO(r, l_src,) } simply do op1 = l_src, op2 = r; if (switch_order) { op1 = r; op2 = l_src } FOO

Re: [Mesa-dev] [PATCH] i965/fs: Remove try_replace_with_sel().

2014-12-05 Thread Matt Turner
On Fri, Dec 5, 2014 at 7:02 AM, Jason Ekstrand wrote: > First off, how is this different from the sel peephole? This happens in the visitor during translation from GLSL IR to FS IR. It only looks for an exact sequence of IF/MOV/ELSE/MOV/ENDIF where the MOVs are to the same destination. The peeph

Re: [Mesa-dev] [PATCH] i965/fs: Remove try_replace_with_sel().

2014-12-05 Thread Matt Turner
On Thu, Dec 4, 2014 at 11:22 PM, Kenneth Graunke wrote: > On Friday, November 21, 2014 10:23:43 AM Matt Turner wrote: >> On Tue, Nov 11, 2014 at 9:41 AM, Matt Turner wrote: >> > The rest of our backend optimizations have replaced the need for this >> > since it was written. >> > >> > instructions

Re: [Mesa-dev] [PATCH] mesa/st: don't use CMP / I2F for conditional assignments with native integers

2014-12-05 Thread Roland Scheidegger
I am not quite sure what formulation do you suggest? This one seemed about as simple as any other one I could quickly come up with. (though the switch_order = false statements are redundant as they are the default, so if you prefer that they can easily be killed, and the "if (expr->operation == ir_

[Mesa-dev] [Bug 86788] (bisected) 32bit UrbanTerror 4.1 timedemo sse4.1 segfault...

2014-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86788 --- Comment #9 from José Fonseca --- I pushed a quick fix on a1fc6a91e5c6ab098fa8576e63b3a070852aa2a7 . Though I have to say I'm a bit disappointed that pointing out the problem/solution wasn't enough: I had to prepare the fix myself, and that m

Re: [Mesa-dev] [PATCH] Added NULL check in eglCreateContext

2014-12-05 Thread Valentin Corfu
I re-submitted the patch according with suggested corrections. Thank you, Valentin Corfu On 29.11.2014 07:53, Matt Turner wrote: On Thu, Nov 27, 2014 at 1:59 AM, Valentin Corfu wrote: With this check we can avoid segmentation fault when invalid value used during eglCreateContext. Cc: mesa-

Re: [Mesa-dev] DRI3/Present fixes for Mesa 10.3+ (v2)

2014-12-05 Thread Axel Davy
On Fri, 5 Dec 2014, Mario Kleiner wrote: Wrt. 2/5: It's a bit ambiguous how to read that bit of the spec, and i agree that one could read it in a way that the current mesa dri3 behaviour is not (completely) violating the spec. When we implemented the DRI2 version, we understood it in the way

Re: [Mesa-dev] [PATCH] i965/fs: Remove try_replace_with_sel().

2014-12-05 Thread Jason Ekstrand
On Dec 4, 2014 11:22 PM, "Kenneth Graunke" wrote: > > On Friday, November 21, 2014 10:23:43 AM Matt Turner wrote: > > On Tue, Nov 11, 2014 at 9:41 AM, Matt Turner wrote: > > > The rest of our backend optimizations have replaced the need for this > > > since it was written. > > > > > > instruction

Re: [Mesa-dev] [PATCH] util/primconvert: Avoid point arithmetic; apply offset on all cases.

2014-12-05 Thread Ilia Mirkin
On Fri, Dec 5, 2014 at 9:29 AM, Jose Fonseca wrote: > On 05/12/14 14:18, Ilia Mirkin wrote: >> >> On Fri, Dec 5, 2014 at 9:16 AM, Jose Fonseca wrote: >>> >>> From: José Fonseca >>> >>> Matches what u_vbuf_get_minmax_index() does. >> >> >> Hm, nouveau nv50 (and probably nvc0) does: >> >>i

Re: [Mesa-dev] [PATCH] util/primconvert: Avoid point arithmetic; apply offset on all cases.

2014-12-05 Thread Jose Fonseca
On 05/12/14 14:18, Ilia Mirkin wrote: On Fri, Dec 5, 2014 at 9:16 AM, Jose Fonseca wrote: From: José Fonseca Matches what u_vbuf_get_minmax_index() does. Hm, nouveau nv50 (and probably nvc0) does: if (ib->buffer) { nv50->idxbuf.offset = ib->offset; BCTX_REFN(nv50

Re: [Mesa-dev] [PATCH] util/primconvert: Avoid point arithmetic; apply offset on all cases.

2014-12-05 Thread Ilia Mirkin
On Fri, Dec 5, 2014 at 9:18 AM, Ilia Mirkin wrote: > On Fri, Dec 5, 2014 at 9:16 AM, Jose Fonseca wrote: >> From: José Fonseca >> >> Matches what u_vbuf_get_minmax_index() does. > > Hm, nouveau nv50 (and probably nvc0) does: > > if (ib->buffer) { > nv50->idxbuf.offset = ib->offset

Re: [Mesa-dev] [PATCH 3/3] util/primconvert: take ib offset into account

2014-12-05 Thread Jose Fonseca
On 05/12/14 14:12, Ilia Mirkin wrote: On Fri, Dec 5, 2014 at 9:10 AM, Jose Fonseca wrote: On 05/12/14 00:01, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin Cc: "10.4 10.3" --- src/gallium/auxiliary/indices/u_primconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH] util/primconvert: Avoid point arithmetic; apply offset on all cases.

2014-12-05 Thread Ilia Mirkin
On Fri, Dec 5, 2014 at 9:16 AM, Jose Fonseca wrote: > From: José Fonseca > > Matches what u_vbuf_get_minmax_index() does. Hm, nouveau nv50 (and probably nvc0) does: if (ib->buffer) { nv50->idxbuf.offset = ib->offset; BCTX_REFN(nv50->bufctx_3d, INDEX, nv04_resource(ib->bu

[Mesa-dev] [PATCH] util/primconvert: Avoid point arithmetic; apply offset on all cases.

2014-12-05 Thread Jose Fonseca
From: José Fonseca Matches what u_vbuf_get_minmax_index() does. --- src/gallium/auxiliary/indices/u_primconvert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c index 4632781..eb

Re: [Mesa-dev] [PATCH 3/3] util/primconvert: take ib offset into account

2014-12-05 Thread Ilia Mirkin
On Fri, Dec 5, 2014 at 9:10 AM, Jose Fonseca wrote: > On 05/12/14 00:01, Ilia Mirkin wrote: >> >> Signed-off-by: Ilia Mirkin >> Cc: "10.4 10.3" >> --- >> src/gallium/auxiliary/indices/u_primconvert.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/src/gallium/auxil

Re: [Mesa-dev] [PATCH 3/3] util/primconvert: take ib offset into account

2014-12-05 Thread Jose Fonseca
On 05/12/14 00:01, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin Cc: "10.4 10.3" --- src/gallium/auxiliary/indices/u_primconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.

Re: [Mesa-dev] [PATCH] mesa/st: don't use CMP / I2F for conditional assignments with native integers

2014-12-05 Thread Jose Fonseca
Looks good AFAICT. But I think we should probably swap the operands only once, in one place, instead of having two branches for switch_order. Jose On 04/12/14 23:25, srol...@vmware.com wrote: From: Roland Scheidegger The original idea was to optimize away the condition by integrating it di

Re: [Mesa-dev] DRI3/Present fixes for Mesa 10.3+ (v2)

2014-12-05 Thread Mario Kleiner
On 12/05/2014 03:41 AM, Eric Anholt wrote: Mario Kleiner writes: A slightly updated and extended series of the dri3/present fixes for Mesa i sent last week. Patch 1 and 2 are same as before. Patch 3 now has signed off by Frank Binns and reviewed by Chris Wilson. Patch 4 and 5 are additional f

Re: [Mesa-dev] [PATCH 3/5] glx/dri3: Request non-vsynced Present for swapinterval zero. (v2)

2014-12-05 Thread Eero Tamminen
Hi, On 12/04/2014 11:38 PM, Mario Kleiner wrote: On 12/04/2014 11:20 AM, Axel Davy wrote: On 02/12/2014 20:53, Mario Kleiner wrote : Restores proper immediate tearing swap behaviour for OpenGL bufferswap under DRI3/Present. + if (priv->swap_interval == 0) + options |= XCB_PRESE