Re: [Mesa-dev] [PATCH] i965: Don't bother flushing the batch if it doesn't ref our mt to map.

2014-04-24 Thread Kenneth Graunke
On 04/24/2014 06:21 PM, Eric Anholt wrote: > -1.1372% +/- 0.858033% effect on cairo runtime on glamor (n=175). > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c > b/src/me

Re: [Mesa-dev] [PATCH] glsl: fix bitfield_insert use when doing ldexp lowering

2014-04-24 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 1:05 AM, Ilia Mirkin wrote: > bitfield_insert expects glsl_type::int_type arguments, not uint vectors > > Signed-off-by: Ilia Mirkin > --- > > fs-ldexp still fails with this with my patches to add this to > gallium/softpipe, but I very well might have messed something up (

[Mesa-dev] [PATCH] glsl: fix bitfield_insert use when doing ldexp lowering

2014-04-24 Thread Ilia Mirkin
bitfield_insert expects glsl_type::int_type arguments, not uint vectors Signed-off-by: Ilia Mirkin --- fs-ldexp still fails with this with my patches to add this to gallium/softpipe, but I very well might have messed something up (like the bitfield_insert impl). But I no longer get an assert in

[Mesa-dev] [PATCH] st/mesa: Fix NULL pointer dereference for incomplete framebuffers

2014-04-24 Thread Michel Dänzer
From: Michel Dänzer This can happen with glamor, which uses EGL_KHR_surfaceless_context and only explicitly binds GL_READ_FRAMEBUFFER for glReadPixels. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Michel Dänzer --- src/mesa/state_tracker/st_manager.c | 7 ++- 1 file changed, 6 inse

[Mesa-dev] [PATCH] i965: Don't bother flushing the batch if it doesn't ref our mt to map.

2014-04-24 Thread Eric Anholt
-1.1372% +/- 0.858033% effect on cairo runtime on glamor (n=175). --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 59700ed..c2

[Mesa-dev] [PATCH] Cut down false positives when running the Clang Analyzer.

2014-04-24 Thread John Kåre Alsaker
--- src/mapi/glapi/gen/gl_table.py | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py index fd38468..d4075ff 100644 --- a/src/mapi/glapi/gen/gl_table.py +++ b/src/mapi/glapi/gen/gl_table.py @@ -101,10 +

[Mesa-dev] [PATCH 02/14] swrast: Just use _EnabledCoordUnits for figuring out which texcoords to build.

2014-04-24 Thread Eric Anholt
_EnabledUnits is all of the first 32 image units that are used by fixed function or programs, while _EnabledCoordUnits is just which fixed function fragment shader texcoords need to be generated. This is a theoretical bugfix in the case of a vertex shader texturing from large texture image unit nu

[Mesa-dev] [PATCH 10/14] swrast: Drop remaining use of _ReallyEnabled.

2014-04-24 Thread Eric Anholt
The _MaxEnabledTexImageUnit check assures us that Unit[0].Current != NULL. This is the last consumer of _ReallyEnabled outside of the radeons. --- src/mesa/swrast/s_triangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_triangle.c b/src/mesa/swrast/s_trian

[Mesa-dev] mesa: Kill _ReallyEnabled, improve _mesa_update_state() performance.

2014-04-24 Thread Eric Anholt
Here's a series I got built when profiling to see why glamor's FBO cache is necessary. It turns out the worst spots in the no-cache profile were present even with the cache, and they were about walking the 96 texture units we've got these days. Thanks to Chris Forbes's _MaxEnabledTexImageUnit, I

[Mesa-dev] [PATCH 13/14] mesa: Split the shader texture update logic from fixed function.

2014-04-24 Thread Eric Anholt
I want to avoid walking the entire long array texture image units, but the obvious way to do so means walking program samplers, and thus hitting the units in a random order. This change replaces the previous behavior of only setting up the fallback texture for a fragment shader with setting up the

[Mesa-dev] [PATCH 06/14] mesa: Replace use of _ReallyEnabled as a boolean with use of _Current.

2014-04-24 Thread Eric Anholt
I'm probably not the only person that has tried to kill _ReallyEnabled. This does the mechanical part of the work, and cleans _ReallyEnabled from i965. I think that using _Current makes texture management clearer: You can't have multiple targets in use in the same texture image unit at the same ti

[Mesa-dev] [PATCH 03/14] mesa: Drop _EnabledUnits.

2014-04-24 Thread Eric Anholt
The field wasn't really valid, since we've got more than 32 units now. It turns out it was mostly just used for checking != 0, or checking for fixed function coordinates, though. --- src/mesa/drivers/common/meta.c | 2 +- src/mesa/drivers/dri/i915/intel_pixel.c| 2 +- sr

[Mesa-dev] [PATCH 05/14] mesa: Ensure that (unit->_Current != 0) == (unit->_ReallyEnabled != 0).

2014-04-24 Thread Eric Anholt
I'm going to try to delete _ReallyEnabled, which is this weird bitfield with either 0 or 1 bits set with just the reference to _Current. --- src/mesa/main/texstate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 36c543b..5cbf791 100

[Mesa-dev] [PATCH 08/14] mesa: Drop _ReallyEnabled usage from ff_fragment_shader.

2014-04-24 Thread Eric Anholt
--- src/mesa/main/ff_fragment_shader.cpp | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index f1ef38e..605f371 100644 --- a/src/mesa/main/ff_fragment_shader.cpp +++ b/src/mesa/main/

[Mesa-dev] [PATCH 01/14] i915: Redo texture unit walking on i830.

2014-04-24 Thread Eric Anholt
We now know what the max unit is in the context state. --- src/mesa/drivers/dri/i915/i830_texblend.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/i915/i830_texblend.c b/src/mesa/drivers/dri/i915/i830_texblend.c index c08b2b0..e5542af 1

[Mesa-dev] [PATCH 04/14] mesa: Drop dead last_ReallyEnabled fields from drivers.

2014-04-24 Thread Eric Anholt
--- src/mesa/drivers/dri/i915/i915_context.h| 1 - src/mesa/drivers/dri/radeon/radeon_context.h| 1 - src/mesa/drivers/dri/radeon/radeon_state_init.c | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/mesa/drivers/dri/i915/i915_context.h b/src/mesa/drivers/dri/i915/i915_context

[Mesa-dev] [PATCH 07/14] i915: Drop use of _ReallyEnabled.

2014-04-24 Thread Eric Anholt
We can just look at _Current's target. --- src/mesa/drivers/dri/i915/i830_texstate.c | 44 +++--- src/mesa/drivers/dri/i915/i915_texstate.c | 45 +++ 2 files changed, 44 insertions(+), 45 deletions(-) diff --git a/src/mesa/drivers/dri/i915/i830_

[Mesa-dev] [PATCH 12/14] mesa: Finish removing the _ReallyEnabled field.

2014-04-24 Thread Eric Anholt
--- src/mesa/main/mtypes.h | 4 +--- src/mesa/main/texstate.c | 6 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 31e3033..4c619ba 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1085,7 +1085,6 @@ t

[Mesa-dev] [PATCH 09/14] gallium: Drop use of _ReallyEnabled.

2014-04-24 Thread Eric Anholt
--- src/mesa/state_tracker/st_cb_drawtex.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_drawtex.c b/src/mesa/state_tracker/st_cb_drawtex.c index b0a44fd..f997e6b 100644 --- a/src/mesa/state_tracker/st_cb_drawtex.c +++ b/src/mesa/state_trac

[Mesa-dev] [PATCH 14/14] mesa: Rewrite shader-based texture image state updates.

2014-04-24 Thread Eric Anholt
Instead of walking 6 shader stages for each of the 96 combined texture image units, now we just walk the samplers used in each shader stage. With cairo-perf-trace on Xephyr with glamor, I'm seeing a -6.50518% +/- 2.55601% effect on runtime (n=22) since the "drop _EnabledUnits" change. No significa

[Mesa-dev] [PATCH 11/14] radeon: Drop the remaining driver usage of _ReallyEnabled.

2014-04-24 Thread Eric Anholt
This is kind of ugly, but I think it's worth it to finish off the last consumers of _ReallyEnabled. --- src/mesa/drivers/dri/r200/r200_fragshader.c | 24 src/mesa/drivers/dri/r200/r200_tex.c | 2 +- src/mesa/drivers/dri/r200/r200_texstate.c| 9 ++

Re: [Mesa-dev] [PATCH 0/4] gallium, nv50, nvc0: add ARB_sample_shading

2014-04-24 Thread Ilia Mirkin
Thanks. Roland, mind taking a look, IIRC you're the one who had the most objections last time around. On Thu, Apr 24, 2014 at 5:44 PM, Marek Olšák wrote: > Patch 1 & 2: > > Reviewed-by: Marek Olšák > > Marek > > On Thu, Apr 24, 2014 at 3:56 AM, Ilia Mirkin wrote: >> This is my latest iteration

Re: [Mesa-dev] [PATCH] radeonsi: Don't use anonymous struct trick in atom tracking

2014-04-24 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Tue, Apr 22, 2014 at 6:47 PM, Adam Jackson wrote: > I'm somewhat impressed that current gccs will let you do this, but > sufficiently old ones (including 4.4.7 in RHEL6) won't. > > Signed-off-by: Adam Jackson > --- > src/gallium/drivers/radeonsi/si_descriptor

[Mesa-dev] [PATCH v2 1/2] Import eglextchromium.h from Chromium.

2014-04-24 Thread Sarah Sharp
In order to support the (currently unregistered) Chromium-specific EGL extension eglGetSyncValuesCHROMIUM on Intel systems, we need to import the Chromium header that defines it. The file was downloaded from https://chromium.googlesource.com/chromium/chromium/+/trunk/ui/gl/EGL/eglextchromium.h I

[Mesa-dev] [PATCH v2 2/2] egl: Add EGL_CHROMIUM_sync_control extension.

2014-04-24 Thread Sarah Sharp
Chromium defined a new GL extension (that isn't registered with Khronos). We need to add an EGL extension for it, so we can migrate ChromeOS on Intel systems to use EGL instead of GLX. http://git.chromium.org/gitweb/?p=chromium/src/third_party/khronos.git;a=commitdiff;h=27cbfdab35c601f70aa150581ad

Re: [Mesa-dev] [PATCH 0/7] gallium: catch up with mesa's system values

2014-04-24 Thread Ilia Mirkin
On Thu, Apr 24, 2014 at 6:20 PM, Ilia Mirkin wrote: > On Thu, Apr 24, 2014 at 6:18 PM, Marek Olšák wrote: >> I think GS_INVOCATIONS should be documented in the docs. Other than > > I agree with you in theory. In practice, I could not find such a place > where properties were documented. Actually

Re: [Mesa-dev] [PATCH 0/7] gallium: catch up with mesa's system values

2014-04-24 Thread Ilia Mirkin
On Thu, Apr 24, 2014 at 6:18 PM, Marek Olšák wrote: > I think GS_INVOCATIONS should be documented in the docs. Other than I agree with you in theory. In practice, I could not find such a place where properties were documented. > that, patches 1, 2, 3, 4: > > Reviewed-by: Marek Olšák > > Marek >

Re: [Mesa-dev] [PATCH 0/7] gallium: catch up with mesa's system values

2014-04-24 Thread Marek Olšák
I think GS_INVOCATIONS should be documented in the docs. Other than that, patches 1, 2, 3, 4: Reviewed-by: Marek Olšák Marek On Thu, Apr 24, 2014 at 5:48 AM, Ilia Mirkin wrote: > This adds support for gl_SampleMaskIn and gl_InvocationID system values to > gallium, mesa/st, and nvc0. The releva

Re: [Mesa-dev] [PATCH 0/4] gallium, nv50, nvc0: add ARB_sample_shading

2014-04-24 Thread Marek Olšák
Patch 1 & 2: Reviewed-by: Marek Olšák Marek On Thu, Apr 24, 2014 at 3:56 AM, Ilia Mirkin wrote: > This is my latest iteration of the ARB_sample_shading implementation. The only > known defect is that gl_SampleMask doesn't appear to work on nv50 nor > nvc0. I'm fairly sure it's due to some bit

[Mesa-dev] [PATCH] mesa: change invalid texture swizzle error to GL_INVALID_ENUM

2014-04-24 Thread Brian Paul
The original GL_EXT_texture_swizzle extensions said GL_INVALID_OPERATION was to be generated when the an invalid swizzle was passed to glTexParameter(). But in OpenGL 3.3 and later, the error should be GL_INVALID_ENUM. --- src/mesa/main/texparam.c |4 ++-- 1 file changed, 2 insertions(+), 2 d

[Mesa-dev] [PATCH 1/1] clover: Align kernel argument sizes to nearest power of 2

2014-04-24 Thread Jan Vesely
Signed-off-by: Jan Vesely --- Hi, this is the alternative (power of 2) approach to hadling kernel args, as discussed in this thread: http://lists.freedesktop.org/archives/mesa-dev/2014-April/thread.html#58209 Jan src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 1 file changed,

[Mesa-dev] [Bug 77749] PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X

2014-04-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77749 tha...@chromium.org changed: What|Removed |Added Attachment #97758|0 |1 is obsolete|

Re: [Mesa-dev] [PATCH 2/2] llvmpipe: Advertise GLSL 3.30.

2014-04-24 Thread Dave Airlie
On 25 April 2014 01:44, Roland Scheidegger wrote: > Am 24.04.2014 16:24, schrieb jfons...@vmware.com: >> From: José Fonseca >> >> According to Roland all TGSI support is there in theory. >> >> In practice there are a few piglit failures and crashes, as this hadn't >> been tested before. Reviewed

Re: [Mesa-dev] [PATCH 11/19] i965/fs: Use LOAD_PAYLOAD in emit_texture_gen7().

2014-04-24 Thread Matt Turner
On Thu, Apr 24, 2014 at 10:33 AM, Matt Turner wrote: > On Thu, Apr 24, 2014 at 10:30 AM, Kenneth Graunke > wrote: >> On 04/24/2014 08:40 AM, Matt Turner wrote: >>> On Wed, Apr 23, 2014 at 11:19 PM, Kenneth Graunke >>> wrote: On 04/18/2014 11:56 AM, Matt Turner wrote: > --- > src/

Re: [Mesa-dev] [PATCH 11/19] i965/fs: Use LOAD_PAYLOAD in emit_texture_gen7().

2014-04-24 Thread Kenneth Graunke
On 04/24/2014 08:40 AM, Matt Turner wrote: > On Wed, Apr 23, 2014 at 11:19 PM, Kenneth Graunke > wrote: >> On 04/18/2014 11:56 AM, Matt Turner wrote: >>> --- >>> src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 135 >>> +++ >>> 1 file changed, 73 insertions(+), 62 deletion

Re: [Mesa-dev] [PATCH 11/19] i965/fs: Use LOAD_PAYLOAD in emit_texture_gen7().

2014-04-24 Thread Matt Turner
On Thu, Apr 24, 2014 at 10:30 AM, Kenneth Graunke wrote: > On 04/24/2014 08:40 AM, Matt Turner wrote: >> On Wed, Apr 23, 2014 at 11:19 PM, Kenneth Graunke >> wrote: >>> On 04/18/2014 11:56 AM, Matt Turner wrote: --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 135

Re: [Mesa-dev] [PATCH] draw/llvm: reduce memory usage

2014-04-24 Thread Jose Fonseca
Looks great to me. Thanks Zack. Jose - Original Message - > Lets make draw_get_option_use_llvm function available unconditionally > and use it to avoid useless allocations when LLVM paths are active. > TGSI machine is never used when we're using LLVM. > > Signed-off-by: Zack Rusin > ---

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Jan Vesely
On Thu, 2014-04-24 at 17:53 +0200, Francisco Jerez wrote: > Jan Vesely writes: > > > On Thu, 2014-04-24 at 12:05 +0200, Francisco Jerez wrote: > > > >> >>> > >> >>> I don't think that using getTypeAllocSize() instead of > >> >>> getTypeStoreSize() to calculate clover::argument::size would be a

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Francisco Jerez
Jan Vesely writes: > On Thu, 2014-04-24 at 12:05 +0200, Francisco Jerez wrote: > >> >>> >> >>> I don't think that using getTypeAllocSize() instead of >> >>> getTypeStoreSize() to calculate clover::argument::size would be a >> >>> satisfactory solution. By doing that you'd redefine the API argu

Re: [Mesa-dev] [PATCH] st/xlib: Do minimal version checking in glXCreateContextAttribsARB.

2014-04-24 Thread Brian Paul
On 04/24/2014 08:51 AM, jfons...@vmware.com wrote: From: José Fonseca The current version checking is wrongly refusing to create 3.3 contexts; unsupported version are checked elsewhere; and the DRI path doesn't do this sort of checking neither. This enables piglit glsl 3.30 tests to run withou

Re: [Mesa-dev] [PATCH 1/2] st/xlib: Honour request of 3.1 contexts through core profile where available.

2014-04-24 Thread Brian Paul
On 04/24/2014 08:24 AM, jfons...@vmware.com wrote: From: José Fonseca The GLX_ARB_create_context_profile spec says: "If version 3.1 is requested, the context returned may implement any of the following versions: * Version 3.1. The GL_ARB_compatibility extension may or may not

Re: [Mesa-dev] [PATCH 2/2] llvmpipe: Advertise GLSL 3.30.

2014-04-24 Thread Roland Scheidegger
Am 24.04.2014 16:24, schrieb jfons...@vmware.com: > From: José Fonseca > > According to Roland all TGSI support is there in theory. > > In practice there are a few piglit failures and crashes, as this hadn't > been tested before. > --- > src/gallium/drivers/llvmpipe/lp_screen.c | 2 +- > 1 file

Re: [Mesa-dev] [PATCH 1/2] st/xlib: Honour request of 3.1 contexts through core profile where available.

2014-04-24 Thread Roland Scheidegger
Am 24.04.2014 16:24, schrieb jfons...@vmware.com: > From: José Fonseca > > The GLX_ARB_create_context_profile spec says: > > "If version 3.1 is requested, the context returned may implement > any of the following versions: > > * Version 3.1. The GL_ARB_compatibility extension may

Re: [Mesa-dev] [PATCH 11/19] i965/fs: Use LOAD_PAYLOAD in emit_texture_gen7().

2014-04-24 Thread Matt Turner
On Wed, Apr 23, 2014 at 11:19 PM, Kenneth Graunke wrote: > On 04/18/2014 11:56 AM, Matt Turner wrote: >> --- >> src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 135 >> +++ >> 1 file changed, 73 insertions(+), 62 deletions(-) >> >> diff --git a/src/mesa/drivers/dri/i965/brw

Re: [Mesa-dev] [PATCH 10/19] i965/fs: Lower LOAD_PAYLOAD and clean up.

2014-04-24 Thread Matt Turner
On Wed, Apr 23, 2014 at 10:55 PM, Kenneth Graunke wrote: > On 04/18/2014 11:56 AM, Matt Turner wrote: >> Clean up with with register_coalesce()/dead_code_eliminate(). >> --- >> src/mesa/drivers/dri/i965/brw_fs.cpp | 37 >> >> src/mesa/drivers/dri/i965/brw_fs.

Re: [Mesa-dev] [PATCH 13/19] i965/fs: Only consider real sources when comparing instructions.

2014-04-24 Thread Matt Turner
On Wed, Apr 23, 2014 at 11:56 PM, Kenneth Graunke wrote: > At any rate, adding the assertion makes it obvious that this code is > correct by design, and we didn't just forget to update it for > arbitrary-length source lists...I don't think it's an unreasonable > request... If we want to document

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Jan Vesely
On Thu, 2014-04-24 at 12:05 +0200, Francisco Jerez wrote: > >>> > >>> I don't think that using getTypeAllocSize() instead of > >>> getTypeStoreSize() to calculate clover::argument::size would be a > >>> satisfactory solution. By doing that you'd redefine the API argument > >>> size exposed to th

[Mesa-dev] [PATCH] st/xlib: Do minimal version checking in glXCreateContextAttribsARB.

2014-04-24 Thread jfonseca
From: José Fonseca The current version checking is wrongly refusing to create 3.3 contexts; unsupported version are checked elsewhere; and the DRI path doesn't do this sort of checking neither. This enables piglit glsl 3.30 tests to run without skipping. --- src/gallium/state_trackers/glx/xlib/

Re: [Mesa-dev] [PATCH 0/5] util: Rework endian handling in python code

2014-04-24 Thread Richard Sandiford
NP, thanks for the review Jose. Please could someone commit the series for me? I'll follow up with patches to fix other formats for BE. Thanks, Richard Jose Fonseca writes: > Richard, Michel, > > Apologies for the long silence. I flagged this thread as worth > following, but I failed to notic

[Mesa-dev] [PATCH 2/2] llvmpipe: Advertise GLSL 3.30.

2014-04-24 Thread jfonseca
From: José Fonseca According to Roland all TGSI support is there in theory. In practice there are a few piglit failures and crashes, as this hadn't been tested before. --- src/gallium/drivers/llvmpipe/lp_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/dr

[Mesa-dev] [PATCH 1/2] st/xlib: Honour request of 3.1 contexts through core profile where available.

2014-04-24 Thread jfonseca
From: José Fonseca The GLX_ARB_create_context_profile spec says: "If version 3.1 is requested, the context returned may implement any of the following versions: * Version 3.1. The GL_ARB_compatibility extension may or may not be implemented, as determined by the implementa

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Jose Fonseca
Oop. Please ignore that. I forgot to specify the filename when producing the diff. Jose - Original Message - > The patch fixes the issue, but it also contains some unrelated drisw changes. > > Marek > > On Thu, Apr 24, 2014 at 2:37 PM, Jose Fonseca wrote: > > No idea why I can't see i

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Marek Olšák
The patch fixes the issue, but it also contains some unrelated drisw changes. Marek On Thu, Apr 24, 2014 at 2:37 PM, Jose Fonseca wrote: > No idea why I can't see it here then. My assertions are fine (assert(0) > triggers). > > Does my patch fix it? If so I'll push it, and strip the comment abo

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Jose Fonseca
No idea why I can't see it here then. My assertions are fine (assert(0) triggers). Does my patch fix it? If so I'll push it, and strip the comment about being unexpected. Jose - Original Message - > Jose, > > Your assertions are disabled or something else is. The test binds a > frameb

[Mesa-dev] [PATCH] glx/dri3: request async pixmap present for swap interval 0

2014-04-24 Thread Frank Binns
Typically we want swaps to occur during vertical blank to avoid tearing. However, when the swap interval is 0 we want to go as quickly as possible even if this results in tearing. Indicate to the X server that it should attempt to do an asynchronise swap when the swap interval is 0. Signed-off-by

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Marek Olšák
Jose, Your assertions are disabled or something else is. The test binds a framebuffer which has no attachments. You can do that with the default framebuffer, so the FBO completeness rules don't apply here. There is also GL_ARB_framebuffer_no_attachments, which allows it for FBOs, though Mesa does

Re: [Mesa-dev] [PATCH 4/4] swrast: move texture_slices() calls out of loops

2014-04-24 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > --- > src/mesa/swrast/s_texture.c | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c > index 9273e94..5fd80ca 100644 > --- a/src/mesa/swras

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Jose Fonseca
- Original Message - > On 24.04.2014 03:12, Jose Fonseca wrote: > > Module: Mesa > > Branch: master > > Commit: fd92346c53ed32709c7b56ce58fb9c9bf43ce9a8 > > URL: > > https://urldefense.proofpoint.com/v1/url?u=http://cgit.freedesktop.org/mesa/mesa/commit/?id%3Dfd92346c53ed32709c7b56ce58fb9

[Mesa-dev] [PATCH 3/3] i965: Fix format of private renderbuffers

2014-04-24 Thread ville . syrjala
From: Ville Syrjälä intel_alloc_renderbuffer_storage() will clobber rb->Format which was already set up by intel_create_renderbuffer(). This causes the driver to potentially create the depth buffer in the wrong format. In practice this makes the depth buffer Z24 even if the visual has depthBits=

[Mesa-dev] [PATCH 1/3] i915: Fix format of private renderbuffers

2014-04-24 Thread ville . syrjala
From: Ville Syrjälä intel_alloc_renderbuffer_storage() will clobber rb->Format which was already set up by intel_create_renderbuffer(). This causes the driver to potentially create the depth buffer in the wrong format. Long time ago things worked by accident because _mesa_choose_tex_format() che

[Mesa-dev] [PATCH 2/3] i915: Don't advertise Z formats in TextureFormatSupported on gen2

2014-04-24 Thread ville . syrjala
From: Ville Syrjälä Gen2 doesn't support texturing from Z formats, so state as much. Signed-off-by: Ville Syrjälä --- src/mesa/drivers/dri/i915/i915_context.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i915/i915_conte

[Mesa-dev] [PATCH 0/3] i915/i965: Depth buffer format fixes

2014-04-24 Thread ville . syrjala
From: Ville Syrjälä I was a bit annoyed when chromium-bsu stopped rendering the spinning title text on my gen2 machine. So I bisected it down and found the problem with the renderbuffer code overwriting the selected depth buffer format. This series fixes that particular problem, and I included t

Re: [Mesa-dev] Questions regarding KHR_debug for OpenGL ES

2014-04-24 Thread Timothy Arceri
On Wed, 2014-03-26 at 16:27 -0700, Felipe Tonello wrote: > Hi Timothy, > > On Sun, Mar 23, 2014 at 2:11 PM, Timothy Arceri wrote: > > On Mon, 2014-03-17 at 11:42 -0700, Felipe Tonello wrote: > >> Hi all, > >> > >> I'm working on the KHR_debug for OpenGL ES junior job. I recently > >> submitted pa

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Francisco Jerez
Francisco Jerez writes: > Jan Vesely writes: > >> On Wed, 2014-04-23 at 19:49 +0200, Francisco Jerez wrote: >>> Jan Vesely writes: >>> >>> > On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: >>> > >>> > >>> >> >> I think this is what v96:128 is for >>> >> > according to [0], it specifi

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Francisco Jerez
Jan Vesely writes: > On Wed, 2014-04-23 at 19:49 +0200, Francisco Jerez wrote: >> Jan Vesely writes: >> >> > On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: >> > >> > >> >> >> I think this is what v96:128 is for >> >> > according to [0], it specifies only alignment, not size. I could

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Michel Dänzer
On 24.04.2014 03:12, Jose Fonseca wrote: > Module: Mesa > Branch: master > Commit: fd92346c53ed32709c7b56ce58fb9c9bf43ce9a8 > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd92346c53ed32709c7b56ce58fb9c9bf43ce9a8 > > Author: José Fonseca > Date: Thu Apr 3 15:56:46 2014 +0100 > >