[Mesa-dev] [PATCH v2] glsl_to_tgsi, mesa: fixes for native integers and integer booleans

2011-08-30 Thread Bryan Cain
With this patch, there are no piglit regressions on softpipe with native integers enabled. Unlike my previous patch, this uses integer values of ~0 and 0 for true and false, respectively, instead of the float values 1.0 and 0.0. --- src/mesa/main/uniforms.c |6 +- src/mesa/s

[Mesa-dev] [PATCH 8/8] intel: enable GL_OES_draw_texture

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu --- src/mesa/drivers/dri/intel/intel_extensions_es.c |1 + src/mesa/drivers/dri/intel/intel_tex.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_extensions_es.c b/src/mesa/drivers/dri/intel/intel_extensions

[Mesa-dev] [PATCH 7/8] meta: add _mesa_meta_DrawTex()

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu It can be used for dd->DrawTex. --- src/mesa/drivers/common/meta.c | 141 src/mesa/drivers/common/meta.h |3 + 2 files changed, 144 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/m

[Mesa-dev] [PATCH 6/8] egl_dri2: add support for RGBA_8888 android native buffer

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu HAL_PIXEL_FORMAT_RGBA_ maps to __DRI_IMAGE_FORMAT_RGBA_REV. --- src/egl/drivers/dri2/platform_android.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index a0e4c

[Mesa-dev] [PATCH 5/8] st/dri: add support for __DRI_IMAGE_FORMAT_RGBA8888_REV

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu It maps to PIPE_FORMAT_R8G8B8A8_UNORM. --- src/gallium/state_trackers/dri/drm/dri2.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 6cf2375..b8ba63a 100644

[Mesa-dev] [PATCH 4/8] intel: add support for __DRI_IMAGE_FORMAT_RGBA8888_REV

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu Surfaces of the format can only be sampled from but not render to. --- src/mesa/drivers/dri/i915/i915_texstate.c|2 ++ src/mesa/drivers/dri/i965/brw_wm_surface_state.c |4 src/mesa/drivers/dri/intel/intel_screen.c| 10 ++ 3 files changed, 16

[Mesa-dev] [PATCH 3/8] dri2: add __DRI_IMAGE_FORMAT_RGBA8888_REV to __DRI_IMAGE

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu Add a new format token, __DRI_IMAGE_FORMAT_RGBA_REV, to __DRI_IMAGE. It maps to MESA_FORMAT_RGBA_REV in core mesa or PIPE_FORMAT_R8G8B8A8_UNORM in gallium. It is the format of translucent surfaces on Android. --- include/GL/internal/dri_interface.h |1 + 1 files chan

[Mesa-dev] [PATCH 2/8] intel: fix GLESv1 support

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu Add intelInitExtensionsES1 to enable required and optional GLESv1 extensions. --- src/mesa/drivers/dri/intel/intel_context.c |1 + src/mesa/drivers/dri/intel/intel_extensions.h|3 + src/mesa/drivers/dri/intel/intel_extensions_es.c | 62 +++---

[Mesa-dev] [PATCH 0/8] intel: fixes and features for Android

2011-08-30 Thread Chia-I Wu
Hi, There are 3 changes in this series. They are combined into a single series so that it is clear where they lead to. I will split them up if there is a v2. Tested with i915. Patch 1-2: enable GLESv1 extensions They add intelInitExtensionsES1 that is called to enable extensions that are

[Mesa-dev] [PATCH 1/8] intel: rename intel_extensions_es2.c to intel_extensions_es.c

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu We'd like to add intelInitExtensionsES1 to it later. --- src/mesa/drivers/dri/i915/Makefile.sources|2 +- src/mesa/drivers/dri/i915/intel_extensions_es.c |1 + src/mesa/drivers/dri/i915/intel_extensions_es2.c |1 - src/mesa/drivers/dri/i965/Makefile.sources

[Mesa-dev] [PATCH 3/3] i915: build i915_dri.so for Android

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu Simple demos such as test-opengl-gl_basic work. SurfaceFlinger does not work yet due to missing GL_OES_draw_texture support (and maybe more). --- Android.mk |4 +- src/mesa/drivers/dri/Android.mk |4 ++ src/mesa/drivers/dri/i915/Android.mk

[Mesa-dev] [PATCH 2/3] i915: factor our source lists into Makefile.sources

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu In preparation for porting i915 to Android, factor its source lists into a shared makefile. This prevents duplication of source lists, and hence prevents the Android from breaking as often. --- src/mesa/drivers/dri/i915/Makefile | 51 ++- src/mes

[Mesa-dev] [PATCH 1/3] i965: fix Android build

2011-08-30 Thread Chia-I Wu
From: Chia-I Wu Use $(TARGET_CC) instead of $(CC). Correctly name and set LOCAL_CFLAGS. --- src/mesa/drivers/dri/Android.mk |5 + src/mesa/drivers/dri/i965/Android.mk |7 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/Android.mk b/sr

Re: [Mesa-dev] [PATCH 3/3] egl_dri2: add pbuffer support to platform_android

2011-08-30 Thread Chia-I Wu
On Wed, Aug 31, 2011 at 6:50 AM, Chad Versace wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/28/2011 08:39 AM, Chia-I Wu wrote: >> From: Chia-I Wu >> >> This is a simple change thanks to allocateBuffer. > > Wow, adding pbuffer support was short and simple. > >> --- >>  src/egl

[Mesa-dev] [Bug 38970] [bisected]piglit glx/glx-pixmap-multi failed

2011-08-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38970 --- Comment #11 from zhao jian 2011-08-30 19:09:39 PDT --- Xun, maybe you can have a test with the newest commit and xorg-server-1.10.3 commit of xserver on server-1.10-branch. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?t

Re: [Mesa-dev] [RFC PATCH] i965/fs: Don't coalesce registers into smaller registers.

2011-08-30 Thread Eric Anholt
On Tue, 30 Aug 2011 16:28:43 -0700, Kenneth Graunke wrote: > If we detect MOV X Y, register coalescing tries to rewrite future > instructions that use X to use Y instead. However, if Y is smaller > than X, coalescing could get us into trouble. I actually don't think this is a problem -- note th

[Mesa-dev] [RFC PATCH] i965/fs: Don't coalesce registers into smaller registers.

2011-08-30 Thread Kenneth Graunke
If we detect MOV X Y, register coalescing tries to rewrite future instructions that use X to use Y instead. However, if Y is smaller than X, coalescing could get us into trouble. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp |3 ++- 1 files changed, 2 insertions(+)

Re: [Mesa-dev] [PATCH 11/21] nouveau: Enable vertex programs

2011-08-30 Thread Francisco Jerez
Ian Romanick writes: > On 08/30/2011 03:39 AM, Francisco Jerez wrote: >> "Ian Romanick" writes: >> >>> From: Ian Romanick >>> >>> Specifically, the following extensions are enabled: >>> >>> GL_ARB_vertex_program >>> GL_EXT_gpu_program_paramaters >>> GL_NV_vertex_program >>> GL_N

Re: [Mesa-dev] i965: emit() functions again

2011-08-30 Thread Kenneth Graunke
On 08/28/2011 09:45 PM, Eric Anholt wrote: > Ken didn't like how I was handling new instruction generation for the > array stuff, and it convinced me to try a cleanup I had been thinking > about. I think this ended up nicer than before. > > I don't like the extra set of parens per emit() line (ba

Re: [Mesa-dev] [PATCH] egl_dri2: set ctx->WindowRenderBuffer

2011-08-30 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/28/2011 08:38 AM, Chia-I Wu wrote: > From: Chia-I Wu > > Set ctx->WindowRenderBuffer to EGL_BACK_BUFFER. As EGL_WINDOW_BIT of a > config is set only when there is dri_double_buffer, that makes sure > window surfaces are always double-buffered

Re: [Mesa-dev] [PATCH 3/3] egl_dri2: add pbuffer support to platform_android

2011-08-30 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/28/2011 08:39 AM, Chia-I Wu wrote: > From: Chia-I Wu > > This is a simple change thanks to allocateBuffer. Wow, adding pbuffer support was short and simple. > --- > src/egl/drivers/dri2/platform_android.c | 12 > 1 files chang

Re: [Mesa-dev] [PATCH 1/3] egl_dri2: refactor droid_get_buffers_with_format

2011-08-30 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/28/2011 08:39 AM, Chia-I Wu wrote: > From: Chia-I Wu > > Move the loop to parse attachments to its own function. > --- > src/egl/drivers/dri2/platform_android.c | 66 > ++- > 1 files changed, 39 insertions(+), 27

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: check the surface type in platform_android

2011-08-30 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/28/2011 08:39 AM, Chia-I Wu wrote: > From: Chia-I Wu > > Check the surface type is EGL_WINDOW_BIT before doing anything, in > preparation for pbuffer support. > --- > src/egl/drivers/dri2/platform_android.c | 104 > +-

[Mesa-dev] [PATCH] i965/vs: Add constant propagation to a few opcodes.

2011-08-30 Thread Eric Anholt
This differs from the FS in that we track constants in each destination channel, and we we have to look at all the swizzled source channels. Also, the instruction stream walk is done in an O(n) manner instead of O(n^2). Across shader-db, this reduces 5.3% of the instructions from 51.4% of the ver

Re: [Mesa-dev] [PATCH 11/21] nouveau: Enable vertex programs

2011-08-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/30/2011 03:39 AM, Francisco Jerez wrote: > "Ian Romanick" writes: > >> From: Ian Romanick >> >> Specifically, the following extensions are enabled: >> >> GL_ARB_vertex_program >> GL_EXT_gpu_program_paramaters >> GL_NV_vertex_progra

Re: [Mesa-dev] [PATCH 3/3] i965/vs: Remove scalar-only assertion in emit_bool_to_cond_code.

2011-08-30 Thread Eric Anholt
On Tue, 30 Aug 2011 12:34:15 -0700, Kenneth Graunke wrote: > This was cut and pasted from the FS backend, where everything is > a scalar. However, looking at the emit_if_gen6 code, it looks like this > should all just work. all_equal and any_nequal look broken to me. We need to have the caller

Re: [Mesa-dev] [PATCH] mesa, glsl_to_tgsi: fixes for native integers

2011-08-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/30/2011 03:59 AM, Christoph Bumiller wrote: > On 29.08.2011 19:22, Ian Romanick wrote: >> On 08/27/2011 08:44 AM, Bryan Cain wrote: >>> On 08/27/2011 05:39 AM, Christoph Bumiller wrote: I still don't quite like booleans as floats, but I gues

Re: [Mesa-dev] [PATCH 2/3] i965/vs: Emit the vertex position a second time in the Gen5 VUE header.

2011-08-30 Thread Paul Berry
On 30 August 2011 12:34, Kenneth Graunke wrote: > The fragment shader needs gl_Position.w in order to do interpolation. > Both the comments above and the old VS backend emitted this. > > Fixes a ton of piglit tests on Ironlake with the new VS. > I ran across this last week but was in the middle

Re: [Mesa-dev] [PATCH 3/3] xorg/xvmc: Add missing call to set_picture_parameters

2011-08-30 Thread Maarten Lankhorst
Hey Christian, On 08/30/2011 12:05 PM, Christian König wrote: > Am Dienstag, den 30.08.2011, 00:11 +0200 schrieb Maarten Lankhorst: >> Hey Christian, >> >> On 08/29/2011 10:14 AM, Christian König wrote: >>> Am Sonntag, den 28.08.2011, 19:13 +0200 schrieb Maarten Lankhorst: Hey, On 0

Re: [Mesa-dev] [PATCH 3/6] i965/vs: Convert gen6 userclip handling to new generators.

2011-08-30 Thread Paul Berry
On 28 August 2011 21:45, Eric Anholt wrote: > This DP4 had one of its operands missing, so we were generating > garbage clip distances. Using the per-opcode instruction generators > made it obvious. > IMHO, the fact that this refactor made the bug obvious speaks highly in favor of this entire p

[Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange (v3)

2011-08-30 Thread Marek Olšák
--- src/mesa/main/bufferobj.c| 24 ++- src/mesa/state_tracker/st_cb_bufferobjects.c | 32 ++--- 2 files changed, 31 insertions(+), 25 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index c453f9c..a303401

Re: [Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange (v2)

2011-08-30 Thread Brian Paul
On 08/30/2011 02:34 PM, Marek Olšák wrote: --- src/mesa/main/bufferobj.c| 14 ++- src/mesa/state_tracker/st_cb_bufferobjects.c | 32 ++--- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/

Re: [Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange

2011-08-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/30/2011 12:26 PM, Marek Olšák wrote: > On Tue, Aug 30, 2011 at 8:54 PM, Ian Romanick wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 08/30/2011 10:15 AM, Marek Olšák wrote: >>> Moved from st/mesa. >>> This also fixes an asser

Re: [Mesa-dev] [PATCH 19/21] mesa: Remove many extension enable flags

2011-08-30 Thread Francisco Jerez
Ian Romanick writes: > On 08/30/2011 03:42 AM, Francisco Jerez wrote: >> "Ian Romanick" writes: >> >>> From: Ian Romanick >>> >>> The following extensions are always enabled, and drivers do not have >>> to option to disable them: >>> >>> GL_ARB_copy_buffer >>> GL_ARB_draw_buffers / GL_A

Re: [Mesa-dev] [PATCH 1/2] intel: Remove the passthrough TexSubImage[13]D functions.

2011-08-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/30/2011 10:37 AM, Eric Anholt wrote: > All we need for these is _mesa_store_texsubimage[13]d(), since we > don't do the blit path. For the series: Reviewed-by: Ian Romanick Tested-by: Ian Romanick > --- > src/mesa/drivers/dri/intel/intel_te

[Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange (v2)

2011-08-30 Thread Marek Olšák
--- src/mesa/main/bufferobj.c| 14 ++- src/mesa/state_tracker/st_cb_bufferobjects.c | 32 ++--- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index c453f9c..7e36809 100644 -

[Mesa-dev] [PATCH 3/3] st/mesa: init program MaxLocalParams, MaxEnvParams limits

2011-08-30 Thread Brian Paul
From: Brian Paul --- src/mesa/state_tracker/st_extensions.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 8e90093..33057cb 100644 --- a/src/mesa/state_tracker/st_extensions.c ++

[Mesa-dev] [PATCH 2/3] mesa: bump max program local params, max uniforms limit

2011-08-30 Thread Brian Paul
From: Brian Paul Some driver support more than 1024. --- src/mesa/main/config.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index fffb1a7..91aef90 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -

[Mesa-dev] [PATCH 1/3] swrast: initialize program native limits

2011-08-30 Thread Brian Paul
From: Brian Paul --- src/mesa/swrast/s_context.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 792b528..df21335 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_contex

Re: [Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange

2011-08-30 Thread Marek Olšák
Alright, I'll send a new patch. Marek On Tue, Aug 30, 2011 at 9:55 PM, Brian Paul wrote: > On Tue, Aug 30, 2011 at 12:54 PM, Ian Romanick wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 08/30/2011 10:15 AM, Marek Olšák wrote: >>> Moved from st/mesa. >>> This also fixes an as

Re: [Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange

2011-08-30 Thread Brian Paul
On Tue, Aug 30, 2011 at 12:54 PM, Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/30/2011 10:15 AM, Marek Olšák wrote: >> Moved from st/mesa. >> This also fixes an assertion failure in piglit/fdo31934 on gallium drivers. > > So... I guess I don't understand why the

[Mesa-dev] [PATCH 3/3] i965/vs: Remove scalar-only assertion in emit_bool_to_cond_code.

2011-08-30 Thread Kenneth Graunke
This was cut and pasted from the FS backend, where everything is a scalar. However, looking at the emit_if_gen6 code, it looks like this should all just work. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp |2 -- 1 files changed, 0 insertions(+), 2 deletio

[Mesa-dev] [PATCH 2/3] i965/vs: Emit the vertex position a second time in the Gen5 VUE header.

2011-08-30 Thread Kenneth Graunke
The fragment shader needs gl_Position.w in order to do interpolation. Both the comments above and the old VS backend emitted this. Fixes a ton of piglit tests on Ironlake with the new VS. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp |2 ++ 1 files change

[Mesa-dev] [PATCH 1/3] i965/vs: Fix NULL pointer dereference in pre-Gen6 push constant loading.

2011-08-30 Thread Kenneth Graunke
According to the comment, we need to load /some/ push constants on pre-Gen6 hardware or the GPU will hang. The existing code set these bogus parameters to NULL pointers; unfortunately, the code in brw_curbe.c that loads them dereferences those pointers. So, change them to be pointers to an actual

Re: [Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange

2011-08-30 Thread Marek Olšák
On Tue, Aug 30, 2011 at 8:54 PM, Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/30/2011 10:15 AM, Marek Olšák wrote: >> Moved from st/mesa. >> This also fixes an assertion failure in piglit/fdo31934 on gallium drivers. > > So... I guess I don't understand why the m

Re: [Mesa-dev] [PATCH 19/21] mesa: Remove many extension enable flags

2011-08-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/30/2011 03:42 AM, Francisco Jerez wrote: > "Ian Romanick" writes: > >> From: Ian Romanick >> >> The following extensions are always enabled, and drivers do not have >> to option to disable them: >> >> GL_ARB_copy_buffer >> GL_ARB_draw_

Re: [Mesa-dev] map-texture-image-v5 branch

2011-08-30 Thread Brian Paul
On 08/30/2011 12:15 PM, Eric Anholt wrote: On Mon, 29 Aug 2011 21:41:04 -0600, Brian Paul wrote: I've created this branch with the first batch of my reworked map-texture-image patches. I'm having some network/mail problems so git-send-email isn't working for me ATM. Please review/test and I'l

Re: [Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange

2011-08-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/30/2011 11:54 AM, Ian Romanick wrote: > On 08/30/2011 10:15 AM, Marek Olaák wrote: >> Moved from st/mesa. >> This also fixes an assertion failure in piglit/fdo31934 on gallium drivers. > > So... I guess I don't understand why the mapping can't j

Re: [Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange

2011-08-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/30/2011 10:15 AM, Marek Olšák wrote: > Moved from st/mesa. > This also fixes an assertion failure in piglit/fdo31934 on gallium drivers. So... I guess I don't understand why the mapping can't just fail and set GL_OUT_OF_MEMORY. Returning a poin

Re: [Mesa-dev] [PATCH 2/2] intel: Restructure TexSubImage as just the 2D implementation and blit func.

2011-08-30 Thread Kenneth Graunke
On 08/30/2011 10:37 AM, Eric Anholt wrote: > Fixes a segfault in piglit copyteximage where I accidentally removed > the dst_bo setup in the previous cleanup. > --- > src/mesa/drivers/dri/intel/intel_tex_subimage.c | 214 > --- > 1 files changed, 114 insertions(+), 100 deletio

Re: [Mesa-dev] map-texture-image-v5 branch

2011-08-30 Thread Eric Anholt
On Mon, 29 Aug 2011 21:41:04 -0600, Brian Paul wrote: > I've created this branch with the first batch of my reworked > map-texture-image patches. I'm having some network/mail problems so > git-send-email isn't working for me ATM. Please review/test and I'll > merge to master. Thanks. Many regr

[Mesa-dev] [Bug 38970] [bisected]piglit glx/glx-pixmap-multi failed

2011-08-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38970 --- Comment #10 from Droste 2011-08-30 10:56:32 PDT --- I can confirm the bug with r600g (no crashes but it fails the test)! HEAD is now at 9e2bc5d... glx: Alias glXFreeContextEXT to glXDestroyContext ... failed to create pixmap failed to create

[Mesa-dev] [PATCH 2/2] intel: Restructure TexSubImage as just the 2D implementation and blit func.

2011-08-30 Thread Eric Anholt
Fixes a segfault in piglit copyteximage where I accidentally removed the dst_bo setup in the previous cleanup. --- src/mesa/drivers/dri/intel/intel_tex_subimage.c | 214 --- 1 files changed, 114 insertions(+), 100 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_tex

[Mesa-dev] [PATCH 1/2] intel: Remove the passthrough TexSubImage[13]D functions.

2011-08-30 Thread Eric Anholt
All we need for these is _mesa_store_texsubimage[13]d(), since we don't do the blit path. --- src/mesa/drivers/dri/intel/intel_tex_subimage.c | 42 --- 1 files changed, 0 insertions(+), 42 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_tex_subimage.c b/src/mesa/

[Mesa-dev] [PATCH] mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange

2011-08-30 Thread Marek Olšák
Moved from st/mesa. This also fixes an assertion failure in piglit/fdo31934 on gallium drivers. --- src/mesa/main/bufferobj.c| 18 +- src/mesa/state_tracker/st_cb_bufferobjects.c | 32 ++--- 2 files changed, 25 insertions(+), 25 deletions(-)

[Mesa-dev] [Bug 38970] [bisected]piglit glx/glx-pixmap-multi failed

2011-08-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38970 --- Comment #9 from Ian Romanick 2011-08-30 10:09:33 PDT --- That is weird. I was able to reproduce this on Fedora 14 but not on Fedora 15. In both cases I was using the same Mesa bits. Fedora 14: xorg-x11-drv-intel-2.12.0-6.fc14.1.x86_64 xo

Re: [Mesa-dev] [PATCH] r600g: Make unaligned 3D textures work on +evergreen

2011-08-30 Thread Alex Deucher
2011/8/29 : > From: Christian König > > The layersize calculation is slightly different on +evergreen. > This makes mpeg2 video decoding and piglits texture-packed-formats > test work correctly on this hardware. Does this patch work as well? I think it's somewhat cleaner and covers other cases

Re: [Mesa-dev] [PATCH 5/5] i965: Build i965_dri.so for Android

2011-08-30 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/29/2011 08:59 PM, Chia-I Wu wrote: > On Tue, Aug 30, 2011 at 2:50 AM, Chad Versace wrote: >> Compile tested only. >> >> v2 >> >> - [olv] Update comments to include i965 in list of classic drivers. >> >> CC: Ian Romanick >> CC: Chia-I Wu >

Re: [Mesa-dev] [PATCH 3/3] make: Factor out source lists from drivers/dri/common into Makefile.sources

2011-08-30 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/29/2011 08:46 PM, Chia-I Wu wrote: > On Tue, Aug 30, 2011 at 2:43 AM, Chad Versace wrote: >> In order that the Autoconf and Android build can share the same source >> lists, move the lists from >>src/mesa/drivers/dri/Makefile.defines >> into

Re: [Mesa-dev] [PATCH 1/2] tgsi: add support for texture offsets to the TGSI IR.

2011-08-30 Thread Dave Airlie
> > Extending TSGI is a bit of a black art but you seem to have figured it out. > > I'm looking at the swizzle fields in tgsi_texture_offset.  Why do > those exist?  I'm guessing it's just for the case that a bunch of > offsets get tightly packed in a constant slot.  0, 1, -1 would seem to > be ver

[Mesa-dev] [PATCH] glsl_to_tgsi: fix more potential shader reference leaks

2011-08-30 Thread Marek Olšák
The last one has been pointed out by Ian. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 3fbb0cd..f1de466 100644 --- a/s

Re: [Mesa-dev] [PATCH 1/2] tgsi: add support for texture offsets to the TGSI IR.

2011-08-30 Thread Christoph Bumiller
On 08/30/2011 04:43 PM, Brian Paul wrote: > On Mon, Aug 29, 2011 at 7:38 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This adds tokens for texture offsets, to store 4 * swizzled vec 3 >> for use in TXF and other opcodes. >> >> It also contains TGSI exec changes for softpipe to use this code,

Re: [Mesa-dev] [PATCH 2/2] gallium: add caps for MIN/MAX texel offsets.

2011-08-30 Thread Brian Paul
On Mon, Aug 29, 2011 at 7:38 AM, Dave Airlie wrote: > From: Dave Airlie > > As per Brian's suggestion, add caps for drivers that support texture > offsets to advertise a min/max via TGSI, also use it in the state tracker. > > Signed-off-by: Dave Airlie Reviewed-by: Brian Paul _

Re: [Mesa-dev] [PATCH 1/2] tgsi: add support for texture offsets to the TGSI IR.

2011-08-30 Thread Brian Paul
On Mon, Aug 29, 2011 at 7:38 AM, Dave Airlie wrote: > From: Dave Airlie > > This adds tokens for texture offsets, to store 4 * swizzled vec 3 > for use in TXF and other opcodes. > > It also contains TGSI exec changes for softpipe to use this code, > along with GLSL->TGSI support for TXF. > > Sign

[Mesa-dev] [PATCH 2/2] driconf: updated german translation

2011-08-30 Thread Carl-Philip Haensch
--- src/mesa/drivers/dri/common/xmlpool/de.po | 19 +++ 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlpool/de.po b/src/mesa/drivers/dri/common/xmlpool/de.po index aee758d..933a05c 100644 --- a/src/mesa/drivers/dri/common/xmlpool/d

[Mesa-dev] [PATCH 1/2] driconf: updated de.po

2011-08-30 Thread Carl-Philip Haensch
--- src/mesa/drivers/dri/common/xmlpool/de.po | 138 ++--- 1 files changed, 88 insertions(+), 50 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlpool/de.po b/src/mesa/drivers/dri/common/xmlpool/de.po index 4ea82f9..aee758d 100644 --- a/src/mesa/drivers/dri/commo

Re: [Mesa-dev] [PATCH 7/7] g3dvl: Rewrite the mpeg 1&2 bitstream parser

2011-08-30 Thread Andy Furniss
Andy Furniss wrote: I've never tested with this before so don't know if it's a regression, It is a regression since Rewrite the mpeg 1&2 bitstream parser Maybe the stream is faulty - http://www.andyqos.ukfsn.org/swan.mpg It's not just this stream - I've since found one that is encoded dif

Re: [Mesa-dev] [PATCH] winsys/radeon: Create async thread only once

2011-08-30 Thread Christian König
Ok, tested it a bit (but not to extensive). Seems to work fine, so pushed it to master. Thanks, Christian. Am Dienstag, den 30.08.2011, 03:25 +0200 schrieb Marek Olšák: > Thanks. I wanted to do this long ago. > > Reviewed-by: Marek Olšák > > On Sat, Aug 27, 2011 at 10:57 PM, Maarten Lankhorst

Re: [Mesa-dev] [PATCH] mesa, glsl_to_tgsi: fixes for native integers

2011-08-30 Thread Christoph Bumiller
On 29.08.2011 19:22, Ian Romanick wrote: > On 08/27/2011 08:44 AM, Bryan Cain wrote: > > On 08/27/2011 05:39 AM, Christoph Bumiller wrote: > >> On 27.08.2011 04:58, Bryan Cain wrote: > >>> This fixes all of the piglit regressions in softpipe when native > integers are > >>> enabled. > >>> --- > >>>

Re: [Mesa-dev] [PATCH 11/21] nouveau: Enable vertex programs

2011-08-30 Thread Francisco Jerez
"Ian Romanick" writes: > From: Ian Romanick > > Specifically, the following extensions are enabled: > > GL_ARB_vertex_program > GL_EXT_gpu_program_paramaters > GL_NV_vertex_program > GL_NV_vertex_program1_1 > > In addition, ctx->Const.MaxCombinedTextureImageUnits is set. > > This

Re: [Mesa-dev] [PATCH 19/21] mesa: Remove many extension enable flags

2011-08-30 Thread Francisco Jerez
"Ian Romanick" writes: > From: Ian Romanick > > The following extensions are always enabled, and drivers do not have > to option to disable them: > > GL_ARB_copy_buffer > GL_ARB_draw_buffers / GL_ATI_draw_buffers > GL_ARB_multisample > GL_ARB_texture_compression > GL_ARB_tran

Re: [Mesa-dev] [PATCH 04/21] nouveau: Enable extensions by just setting the flags

2011-08-30 Thread Francisco Jerez
"Ian Romanick" writes: > From: Ian Romanick > > Core Mesa already does the dispatch offset remapping for every > function that could possibly ever be supported. There's no need to > continue using that cruft in the driver. > > Since the call to _mesa_enable_imaging_extensions (via > driInitExte

Re: [Mesa-dev] [PATCH 3/3] xorg/xvmc: Add missing call to set_picture_parameters

2011-08-30 Thread Christian König
Am Dienstag, den 30.08.2011, 00:11 +0200 schrieb Maarten Lankhorst: > Hey Christian, > > On 08/29/2011 10:14 AM, Christian König wrote: > > Am Sonntag, den 28.08.2011, 19:13 +0200 schrieb Maarten Lankhorst: > >> Hey, > >> > >> On 08/28/2011 05:04 PM, Christian König wrote: > >>> Hi Maarten, > >>>

[Mesa-dev] [Bug 38970] [bisected]piglit glx/glx-pixmap-multi failed

2011-08-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38970 --- Comment #8 from fangxun 2011-08-30 02:51:35 PDT --- It still fails with recent codes. Libdrm: (master)2.4.26-3-g2acaf160df584a5ef7b5c5b84819389948cd97ad Mesa: (master)efb4872a9d6e3aa6b02f6bc7426b311ae816e20d Xserver:

Re: [Mesa-dev] [PATCH] driconf: Updated German translation

2011-08-30 Thread Benjamin Franzke
The patch has autogenerated and manual changes mixed, that should always be avoided. Changes done by "make de.po" should be a first commit, then as a second your changes. Additionally options.h needs to be regenerated, use make PYTHON2=python options.h (of course as another commit again, but that