Re: [Mesa-dev] Patches to make Gallium drivers respect the force_s3tc_enable environment variable

2011-08-04 Thread Michel Dänzer
On Mit, 2011-07-20 at 17:53 -0500, Bryan Cain wrote: The purpose of the following two patches is to make st/mesa expose the S3TC extensions when the force_s3tc_enable environment variable is used. This is to match the behavior of the DRI drivers, in which force_s3tc_enable is an option in

[Mesa-dev] [Bug 39588] [bisected] mesa demo xeglgears draw nothing if surface type is a pixmap

2011-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39588 --- Comment #5 from Benjamin Franzke benjaminfran...@googlemail.com 2011-08-04 02:42:36 PDT --- (In reply to comment #4) I've bisected this to: commit 87dde5b1cd596c4008695ff2db9469f88c09f925 Author: Benjamin Franzke

[Mesa-dev] [Bug 39588] [bisected] mesa demo xeglgears draw nothing if surface type is a pixmap

2011-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39588 --- Comment #6 from Benjamin Franzke benjaminfran...@googlemail.com 2011-08-04 02:43:33 PDT --- Created an attachment (id=49902) View: https://bugs.freedesktop.org/attachment.cgi?id=49902 Review:

[Mesa-dev] [PATCH 00/15] i965, mesa, glapi: Build libi965_dri on Android

2011-08-04 Thread Chad Versace
This is the first step in porting i965 to Android, initially to Gingerbread. Android is ubiquituous now, and the platform's importance can't be denied. The Intel drivers really should support it. The series first builds libglapi, then libmesa, and then libi965_dri. lib965_dri doens't work yet; it

[Mesa-dev] [PATCH 01/15] mesa: Add toplevel Android.mk

2011-08-04 Thread Chad Versace
This is the first step in porting libGLES* and libEGL to Android. The makefile doesn't build anything yet; it just defines common variables. The values for MESA_COMMON_C_FLAGS and MESA_COMMON_CPP_FLAGS, I obtained by invoking autogen.sh with the options below and then inspecting

[Mesa-dev] [PATCH 02/15] glapi: Build libmesa_glapi on Android

2011-08-04 Thread Chad Versace
The libmesa_glapi.so on Android is analogous to the libglapi.so on Linux. libmesa_glapi uses the shared glapi. The libname is libmesa_glapi, rather than libglapi, due to conventions of the Android build system. Names of intermediate libraries should be prefixes by the project name so to prevent

[Mesa-dev] [PATCH 03/15] mesa/sources.mak: Convert all variables to be simply-expanded

2011-08-04 Thread Chad Versace
This commit converts all variables in Makefile.defines to be of the simply-expanded flavor. This commit is a cleanup for Android. Rationale - From the GNU Make manual, Section 6.2 The Two Flavors of Variables: There are two ways that a variable in GNU make can have a value; we

[Mesa-dev] [PATCH 04/15] mesa/sources.mak: Cleanup include paths for Android

2011-08-04 Thread Chad Versace
Include paths for Android cannot be prefixed with -I. So define INCLUDE_DIRS without the -I's, and add them only if doing a non-Android build. Also, define TOP for Android builds. Note: This is in preparation for porting i965 to Android. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang

[Mesa-dev] [PATCH 05/15] mesa/sources.mak: Change handling of lex and yacc files for Android

2011-08-04 Thread Chad Versace
The proper way to handle lex and yacc files in Android is to include them in the list of C and CPP files and let the build system automagically do the right thing. Note: This is in preparation for porting i965 to Android. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang cwhu...@android-x86.org

[Mesa-dev] [PATCH 07/15] main: Add -o option to es_generator.py

2011-08-04 Thread Chad Versace
The -o option specifies the output file. This is to pacify the Android build system, whose built-in rules for generated files become grumpy when shell redirection is used. Note: This is in preparation for porting i965 to Android. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang

[Mesa-dev] [PATCH 08/15] mesa: Build libmesa_main for Android

2011-08-04 Thread Chad Versace
The libmesa_main.a built on Android is analagous to the libmesa.a built on Linux. The libname is libmesa_main, rather than libmesa, due to conventions of the Android build system. Names of intermediate libraries should be prefixes by the project name so to prevent naming collisions in the build

[Mesa-dev] [PATCH 09/15] dri/Makefile.defines: Remove non-existent dir from include paths

2011-08-04 Thread Chad Versace
Remove src/egl/drivers/dri from SHARED_INCLUDES. That directory no longer exists. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/Makefile.defines |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/Makefile.defines

[Mesa-dev] [PATCH 10/15] dri/Makefile.defines: Convert all variables to be simply-expanded

2011-08-04 Thread Chad Versace
Convert all variables in Makefile.defines to be of the simply-expanded flavor. As a side-effect, OBJECTS must be moved from Makefile.defines to Makefile.targets. This commit is a cleanup for Android. Rationale - From the GNU Make manual, Section 6.2 The Two Flavors of Variables:

[Mesa-dev] [PATCH 11/15] dri/Makefile.defines: Only add -Iserver to includes if the dir exists

2011-08-04 Thread Chad Versace
Without this change, the next commit breaks the i915 and i965 builds. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang cwhu...@android-x86.org Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/Makefile.defines |5 - 1 files changed, 4 insertions(+), 1

[Mesa-dev] [PATCH 12/15] dri/Makefile.defines: Cleanup filepaths for Android

2011-08-04 Thread Chad Versace
Cleanup 1: Android builds out-of-source, so all paths must be absolute. Cleanup 2: Include paths for Android cannot be prefixed with -I. (Goodbye pkgconfig). So define SHARED_INCLUDES without the -I's, and conditionally add them if doing a non-Android build. Note: This is in preparation for

[Mesa-dev] [PATCH 13/15] i965: New file sources.mk

2011-08-04 Thread Chad Versace
Copy the lists of sources from the actual Makefile into sources.mk. This is so the Makefile and (future) Android.mk can share the same lists. In the next commit, the Makefile will include sources.mk. Note: This is in preparation for porting i965 to Android. CC: Chia-I Wu o...@lunarg.com, CC:

[Mesa-dev] [PATCH 15/15] i965: Build libi965_dri on Android

2011-08-04 Thread Chad Versace
The driver doesn't work yet, it just builds. Currently, it's not being linked to libdrm. Note: This is in preparation for porting i965 to Android. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang cwhu...@android-x86.org Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/Android.mk

Re: [Mesa-dev] S2TC - yet another attempt to solve the S3TC issue

2011-08-04 Thread Rudolf Polzer
On Wed, Aug 03, 2011 at 12:47:47PM -0700, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/03/2011 12:11 PM, Bryan Cain wrote: On 08/03/2011 01:58 PM, Ian Romanick wrote: I think this solves the issue for the compressor and for the software decompressor. I don't

[Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-04 Thread Benjamin Franzke
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 egl_dri2 creates contexts with a doubleBufferConfig when PIXMAP and WINDOW bit is request, so _mesa_init_color sets DrawBuffer[0] to GL_BACK. If a pixmap surface is created egl_dri2 will use a single buffer config, so MakeCurrent has to

[Mesa-dev] [Bug 39813] Account request for Mesa git push access

2011-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39813 Brian Paul bri...@vmware.com changed: What|Removed |Added Product|Mesa|freedesktop.org

Re: [Mesa-dev] [PATCH] vbo: do not call _mesa_max_buffer_index in debug builds

2011-08-04 Thread Brian Paul
On 08/03/2011 11:44 PM, Marek Olšák wrote: That code drops performance in Unigine Heaven and Tropics by a factor of 10. That's too crazy even for a debug build. NOTE: This is a candidate for the 7.11 branch. --- src/mesa/vbo/vbo_exec_array.c |4 +--- 1 files changed, 1 insertions(+), 3

Re: [Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-04 Thread Benjamin Franzke
2011/8/4 Brian Paul bri...@vmware.com: On 08/04/2011 06:31 AM, Benjamin Franzke wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 egl_dri2 creates contexts with a doubleBufferConfig when PIXMAP and WINDOW bit is request, so _mesa_init_color sets DrawBuffer[0] to GL_BACK. If a

Re: [Mesa-dev] [status][help]pipe-video on Loongson3A(mipsel) platform with r600

2011-08-04 Thread Christian König
Am Donnerstag, den 04.08.2011, 13:41 +0800 schrieb fykc...@gmail.com: I guess that may be related with driver or DRM stack, after playback, my desktop corrupts http://dev.lemote.com/files/upload/software/temp/newmobcal1920-desktop-corrupt.png (Similar with -vc ffmpeg12vdpau -vo vdpau). I've

Re: [Mesa-dev] RFC: ctx-Driver.Map/UnmapTextureImage() hooks

2011-08-04 Thread Lucas Stach
Am Mittwoch, den 03.08.2011, 22:55 -0700 schrieb Eric Anholt: On Wed, 27 Jul 2011 20:52:00 -0600, Brian Paul brian.e.p...@gmail.com wrote: On Wed, Jul 27, 2011 at 7:29 PM, Eric Anholt e...@anholt.net wrote: On Sat, 23 Jul 2011 11:58:22 -0600, Brian Paul brian.e.p...@gmail.com wrote:

Re: [Mesa-dev] [status][help]pipe-video on Loongson3A(mipsel) platform with r600

2011-08-04 Thread Alex Deucher
On Thu, Aug 4, 2011 at 10:26 AM, Christian König deathsim...@vodafone.de wrote: Am Donnerstag, den 04.08.2011, 13:41 +0800 schrieb fykc...@gmail.com: I guess that may be related with driver or DRM stack, after playback, my desktop corrupts

Re: [Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-04 Thread Benjamin Franzke
2011/8/4 Brian Paul bri...@vmware.com: On 08/04/2011 07:39 AM, Benjamin Franzke wrote: 2011/8/4 Brian Paulbri...@vmware.com: On 08/04/2011 06:31 AM, Benjamin Franzke wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 egl_dri2 creates contexts with a doubleBufferConfig when

Re: [Mesa-dev] [PATCH 2/2] glsl: When linking, emit functions at the tail of the final linked program.

2011-08-04 Thread Eric Anholt
On Wed, 3 Aug 2011 17:07:42 -0700, Paul Berry stereotype...@gmail.com wrote: When link_functions.cpp adds a new function to the final linked program, it needs to add it after any global variable declarations that the function refers to, otherwise the IR will be invalid (because variable

Re: [Mesa-dev] [PATCH 06/15] main: Remove problematic #include on Android

2011-08-04 Thread Eric Anholt
On Thu, 4 Aug 2011 02:47:15 -0700, Chad Versace c...@chad-versace.us wrote: Remove ``#include fpu_control.h`` from compiler.h. Note: This is in preparation for porting i965 to Android. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang cwhu...@android-x86.org Signed-off-by: Chad Versace

Re: [Mesa-dev] [PATCH 11/15] dri/Makefile.defines: Only add -Iserver to includes if the dir exists

2011-08-04 Thread Eric Anholt
On Thu, 4 Aug 2011 02:47:20 -0700, Chad Versace c...@chad-versace.us wrote: Without this change, the next commit breaks the i915 and i965 builds. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang cwhu...@android-x86.org Signed-off-by: Chad Versace c...@chad-versace.us ---

Re: [Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-04 Thread Eric Anholt
On Thu, 4 Aug 2011 14:31:01 +0200, Benjamin Franzke benjaminfran...@googlemail.com wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 egl_dri2 creates contexts with a doubleBufferConfig when PIXMAP and WINDOW bit is request, so _mesa_init_color sets DrawBuffer[0] to GL_BACK.

[Mesa-dev] [PATCH] Implement HW accelerated GL_SELECT

2011-08-04 Thread Micael Dias
--- src/mesa/SConscript |1 + src/mesa/main/fbobject.c | 16 +- src/mesa/main/fbobject.h |6 + src/mesa/sources.mak |1 + src/mesa/state_tracker/st_cb_feedback.c | 21 +-

[Mesa-dev] [PATCH] Implement HW accelerated GL_SELECT

2011-08-04 Thread Micael Dias
--- src/mesa/SConscript |1 + src/mesa/main/fbobject.c | 16 +- src/mesa/main/fbobject.h |6 + src/mesa/sources.mak |1 + src/mesa/state_tracker/st_cb_feedback.c | 21 +-

Re: [Mesa-dev] [status][help]pipe-video on Loongson3A(mipsel) platform with r600

2011-08-04 Thread Andy Furniss
fykc...@gmail.com wrote: Does it work now then? No, it renders a corrupted playback http://dev.lemote.com/files/upload/software/temp/newmobcal1920-playback.png I guess that may be related with driver or DRM stack, after playback, my desktop corrupts

Re: [Mesa-dev] Status of the GLSL-TGSI translator, part 2

2011-08-04 Thread Bryan Cain
On 08/04/2011 08:24 AM, Brian Paul wrote: On Tue, Aug 2, 2011 at 3:50 PM, Bryan Cain bryanca...@gmail.com wrote: On 08/02/2011 11:27 AM, Brian Paul wrote: On 08/01/2011 12:38 PM, Bryan Cain wrote: Since Mesa 7.11 is released now, I figure it's time to discuss merging the glsl-to-tgsi branch

Re: [Mesa-dev] Status of the GLSL-TGSI translator, part 2

2011-08-04 Thread Brian Paul
On 08/04/2011 10:53 AM, Bryan Cain wrote: On 08/04/2011 08:24 AM, Brian Paul wrote: On Tue, Aug 2, 2011 at 3:50 PM, Bryan Cainbryanca...@gmail.com wrote: On 08/02/2011 11:27 AM, Brian Paul wrote: On 08/01/2011 12:38 PM, Bryan Cain wrote: Since Mesa 7.11 is released now, I figure it's time

Re: [Mesa-dev] [PATCH 00/15] i965, mesa, glapi: Build libi965_dri on Android

2011-08-04 Thread Chia-I Wu
Hi Chad, On Thu, Aug 4, 2011 at 6:47 PM, Chad Versace c...@chad-versace.us wrote: This is the first step in porting i965 to Android, initially to Gingerbread. Android is ubiquituous now, and the platform's importance can't be denied. The Intel drivers really should support it. The series

[Mesa-dev] [Bug 39841] New: Buffer access out-of-bounds in texcompress_rgtc_tmp.h

2011-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39841 Summary: Buffer access out-of-bounds in texcompress_rgtc_tmp.h Product: Mesa Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal

Re: [Mesa-dev] [PATCH] glsl: empty declarations should be valid

2011-08-04 Thread Eric Anholt
On Thu, 4 Aug 2011 12:59:35 +0900, Chia-I Wu olva...@gmail.com wrote: From: Chia-I Wu o...@lunarg.com Unlike C++, empty declarations such as float; should be valid. The spec is not explicit about this actually. Some apps that generate their shader sources may rely on this. This

[Mesa-dev] [Bug 39841] Buffer access out-of-bounds in texcompress_rgtc_tmp.h

2011-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39841 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] Removing GLw from the main Mesa repository

2011-08-04 Thread Kenneth Graunke
Hey, I'd like to remove libGLw from the main Mesa repository. It never changes, and almost noone uses it...because GL and Motif is awesome, right? Since Debian still packages it, I pulled it into its own git repository, preserving history, and then autotooled it. You can get it here:

Re: [Mesa-dev] [PATCH 01/15] mesa: Add toplevel Android.mk

2011-08-04 Thread Dan Nicholson
On Thu, Aug 4, 2011 at 2:47 AM, Chad Versace c...@chad-versace.us wrote: This is the first step in porting libGLES* and libEGL to Android. The makefile doesn't build anything yet; it just defines common variables. The values for MESA_COMMON_C_FLAGS and MESA_COMMON_CPP_FLAGS, I obtained by

Re: [Mesa-dev] [PATCH 01/15] mesa: Add toplevel Android.mk

2011-08-04 Thread Jose Fonseca
- Original Message - On Thu, Aug 4, 2011 at 2:47 AM, Chad Versace c...@chad-versace.us wrote: This is the first step in porting libGLES* and libEGL to Android. The makefile doesn't build anything yet; it just defines common variables. The values for MESA_COMMON_C_FLAGS and

Re: [Mesa-dev] [PATCH] glsl: empty declarations should be valid

2011-08-04 Thread Chad Versace
On 08/04/2011 01:29 PM, Eric Anholt wrote: On Thu, 4 Aug 2011 12:59:35 +0900, Chia-I Wu olva...@gmail.com wrote: From: Chia-I Wu o...@lunarg.com Unlike C++, empty declarations such as float; should be valid. The spec is not explicit about this actually. Some apps that generate their

Re: [Mesa-dev] [PATCH 1/3] glsl: Make is_lvalue() and variable_referenced() const.

2011-08-04 Thread Chad Versace
On 08/02/2011 05:38 PM, Paul Berry wrote: These functions don't modify the target instruction, so it makes sense to make them const. This allows these functions to be called from ir validation code (which uses const to ensure that it doesn't accidentally modify the IR being validated). ---

Re: [Mesa-dev] [PATCH 3/3] glsl: Perform implicit type conversions on function call out parameters.

2011-08-04 Thread Chad Versace
On 08/02/2011 05:38 PM, Paul Berry wrote: When an out parameter undergoes an implicit type conversion, we need to store it in a temporary, and then after the call completes, convert the resulting value. In other words, we convert code like the following: void f(out int x); float value;

Re: [Mesa-dev] [PATCH 06/15] main: Remove problematic #include on Android

2011-08-04 Thread Chad Versace
On 08/04/2011 08:43 AM, Eric Anholt wrote: On Thu, 4 Aug 2011 02:47:15 -0700, Chad Versace c...@chad-versace.us wrote: Remove ``#include fpu_control.h`` from compiler.h. Note: This is in preparation for porting i965 to Android. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang

Re: [Mesa-dev] [PATCH 11/15] dri/Makefile.defines: Only add -Iserver to includes if the dir exists

2011-08-04 Thread Chad Versace
On 08/04/2011 08:45 AM, Eric Anholt wrote: On Thu, 4 Aug 2011 02:47:20 -0700, Chad Versace c...@chad-versace.us wrote: Without this change, the next commit breaks the i915 and i965 builds. CC: Chia-I Wu o...@lunarg.com, CC: Chih-Wei Huang cwhu...@android-x86.org Signed-off-by: Chad Versace

Re: [Mesa-dev] [PATCH 01/15] mesa: Add toplevel Android.mk

2011-08-04 Thread Chad Versace
On 08/04/2011 04:17 PM, Jose Fonseca wrote: - Original Message - On Thu, Aug 4, 2011 at 2:47 AM, Chad Versace c...@chad-versace.us wrote: This is the first step in porting libGLES* and libEGL to Android. The makefile doesn't build anything yet; it just defines common variables.

Re: [Mesa-dev] [PATCH 00/15] i965, mesa, glapi: Build libi965_dri on Android

2011-08-04 Thread Chad Versace
On 08/04/2011 11:25 AM, Chia-I Wu wrote: Hi Chad, On Thu, Aug 4, 2011 at 6:47 PM, Chad Versace c...@chad-versace.us wrote: This is the first step in porting i965 to Android, initially to Gingerbread. Android is ubiquituous now, and the platform's importance can't be denied. The Intel

Re: [Mesa-dev] [PATCH] glsl: empty declarations should be valid

2011-08-04 Thread Chad Versace
On 08/04/2011 06:18 PM, Chad Versace wrote: On 08/04/2011 01:29 PM, Eric Anholt wrote: On Thu, 4 Aug 2011 12:59:35 +0900, Chia-I Wu olva...@gmail.com wrote: From: Chia-I Wu o...@lunarg.com Unlike C++, empty declarations such as float; should be valid. The spec is not explicit about

[Mesa-dev] [Bug 39846] New: can' t compile mesa ‘__u64’problem .

2011-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39846 Summary: can't compile mesa ‘__u64’problem. Product: Mesa Version: 7.10 Platform: Other OS/Version: Linux (All) Status: NEW Severity: blocker Priority: medium

[Mesa-dev] [Bug 39846] can' t compile mesa ‘__u64’problem .

2011-08-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39846 --- Comment #1 from Michel Dänzer mic...@daenzer.net 2011-08-04 22:51:25 PDT --- __u64 is supposed to be defined by the userspace headers from the Linux kernel (/usr/include/linux/, /usr/include/asm*). Where are you getting those from? --