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

2011-08-03 Thread fykc...@gmail.com
Hi, 在 2011年8月2日 下午8:16,fykc...@gmail.com fykc...@gmail.com 写道: Depending on how it was configured mplayer needs (probably) /etc/X11/XvMCConfig containing /path/to/your/lib/libXvMCr600.so I add the path /usr/lib/libXvMCr600.so to /etc/X11/XvMCConfig, but mplayer seems not invoke it (No r600 in

[Mesa-dev] [PATCH 4/4 v2] glsl: Modify strategy for accumulating conditions when lowering if-statements

2011-08-03 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com v2: Update the commit message to reflect the version of the patch actually sent. No changes to the code. Thanks Eric for pointing out my foolishness. Previously if-statements were lowered from inner-most to outer-most (i.e., bottom-up). All

Re: [Mesa-dev] [PATCH 3/4] glsl: Slight change to the code generated by if-flattening

2011-08-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2011 07:45 PM, Eric Anholt wrote: On Tue, 2 Aug 2011 17:52:03 -0700, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com Now the condition (for the then-clause) and the inverse condition (for the

[Mesa-dev] [Bug 39570] glx-multithread lock during piglit test

2011-08-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39570 Michel Dänzer mic...@daenzer.net changed: What|Removed |Added Component|Other |GLX -- Configure

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

2011-08-03 Thread Andy Furniss
fykc...@gmail.com wrote: Hi, 在 2011年8月2日 下午8:16,fykc...@gmail.comfykc...@gmail.com 写道: Depending on how it was configured mplayer needs (probably) /etc/X11/XvMCConfig containing /path/to/your/lib/libXvMCr600.so I add the path /usr/lib/libXvMCr600.so to /etc/X11/XvMCConfig, but mplayer seems

[Mesa-dev] [PATCH] r600g: take into account force_add_cf in pops

2011-08-03 Thread Vadim Girlin
When we have two ENDIFs in a row, we shouldn't modify the pop_count for the same alu clause twice. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38163 --- src/gallium/drivers/r600/r600_shader.c | 39 +++ 1 files changed, 24 insertions(+), 15 deletions(-) diff

[Mesa-dev] [mesa-demos] License clarification for eglkms.c?

2011-08-03 Thread Mika Boström
Hello hackers. We are working to get a clean EGL/wayland system working with Qt. The code in mesa-demos/src/opengl/eglkms.c contains certain obviously correct ways of welding pieces together and making EGL a working backend. We would like to use parts of the eglkms.c code to make it

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

2011-08-03 Thread Brian Paul
On Mon, Aug 1, 2011 at 11:44 AM, Rudolf Polzer divver...@xonotic.org wrote: Hi, I developed, together with Maik Merten, a replacement for S3TC with the following properties: - does not use any interesting algorithms (no color ramps, each 4x4 block is  just a 2 colors palette - basically,

[Mesa-dev] [PATCH 3/5] i965/fs: Eliminate the magic nature of virtual GRF 0.

2011-08-03 Thread Eric Anholt
This was a debugging aid at one point -- virtual grf 0 should never be allocated, and it would be used if undefined register access occurred in codegen. However, it made the confusing register allocation code even more confusing by indexing things off of 1 all over. ---

[Mesa-dev] [PATCH 1/5] mesa: Add a convenience interface for register allocator conflicts setup.

2011-08-03 Thread Eric Anholt
--- src/mesa/program/register_allocate.c | 21 + src/mesa/program/register_allocate.h |2 ++ 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c index de96eb4..f5b5174 100644 ---

[Mesa-dev] [PATCH 4/5] i965/fs: Simplify the register allocator using a map from RA reg to GRF.

2011-08-03 Thread Eric Anholt
It's fewer pointers to track, and when we start caching the register set, should be algorithmically better in the cache hit case (lookup in a byte-per-register array, instead of a linear walk through desctiption of register classes to find how to translate that class). ---

[Mesa-dev] [PATCH 2/5] i965/fs: Use the new convenience interface for setting up reg conflicts.

2011-08-03 Thread Eric Anholt
That code I wrote was impenetrable, and hard to write the first time. This makes things a lot more obvious. --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 29 + 1 files changed, 7 insertions(+), 22 deletions(-) diff --git

[Mesa-dev] [PATCH 5/5] i965/fs: Factor out the register allocator setup to a separate function.

2011-08-03 Thread Eric Anholt
Besides separating out a logical step of the giant register allocator function, this now communicates a bunch of the allocator information through entries in brw_context, which will make this code partially reusable for caching the expensive allocator setup. ---

Re: [Mesa-dev] [mesa-demos] License clarification for eglkms.c?

2011-08-03 Thread Brian Paul
On 08/03/2011 07:24 AM, Mika Boström wrote: Hello hackers. We are working to get a clean EGL/wayland system working with Qt. The code in mesa-demos/src/opengl/eglkms.c contains certain obviously correct ways of welding pieces together and making EGL a working backend. We would like to use

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

2011-08-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/03/2011 08:04 AM, Brian Paul wrote: On Mon, Aug 1, 2011 at 11:44 AM, Rudolf Polzer divver...@xonotic.org wrote: Hi, I developed, together with Maik Merten, a replacement for S3TC with the following properties: - does not use any

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

2011-08-03 Thread Bryan Cain
On 08/03/2011 01:58 PM, Ian Romanick wrote: On 08/03/2011 08:04 AM, Brian Paul wrote: On Mon, Aug 1, 2011 at 11:44 AM, Rudolf Polzer divver...@xonotic.org wrote: Hi, I developed, together with Maik Merten, a replacement for S3TC with the following properties: - does not use any

Re: [Mesa-dev] [PATCH 3/4] glsl: Slight change to the code generated by if-flattening

2011-08-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/03/2011 01:17 AM, Ian Romanick wrote: On 08/02/2011 07:45 PM, Eric Anholt wrote: On Tue, 2 Aug 2011 17:52:03 -0700, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com Now the condition (for the

Re: [Mesa-dev] [PATCH 0/5] glsl: Add switch statement support to the GLSL compiler.

2011-08-03 Thread Paul Berry
On 1 August 2011 17:29, Dan McCabe zen3d.li...@gmail.com wrote: This patch set adds support for switch statements to the GLSL compiler. We modify the grammar for the compiler with productions for switch statements and case labels, while adding supporting supporting productions not already

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

2011-08-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39813 Summary: Account request for Mesa git push access Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium

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

2011-08-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39813 --- Comment #1 from Dan McCabe zen3d.li...@gmail.com 2011-08-03 12:53:43 PDT --- Created an attachment (id=49890) -- (https://bugs.freedesktop.org/attachment.cgi?id=49890) SSH public key -- Configure bugmail:

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

2011-08-03 Thread Ian Romanick
-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 think this solves the problem for the decompressor for hardware

Re: [Mesa-dev] [PATCH 0/5] glsl: Add switch statement support to the GLSL compiler.

2011-08-03 Thread Dan McCabe
On 08/03/2011 12:39 PM, Paul Berry wrote: On 1 August 2011 17:29, Dan McCabezen3d.li...@gmail.com wrote: This patch set adds support for switch statements to the GLSL compiler. We modify the grammar for the compiler with productions for switch statements and case labels, while adding

Re: [Mesa-dev] [PATCH 1/4] Revert glsl: Skip processing the first function's body in do_dead_functions().

2011-08-03 Thread Paul Berry
On 2 August 2011 18:11, Ian Romanick i...@freedesktop.org wrote: On 1 August 2011 22:16, Paul Berry stereotype...@gmail.com wrote: 4. Since the linker emits functions at the head of the final linked program, if the linker brings in a function (let's call it f()) that wasn't declared in the

[Mesa-dev] [PATCH 0/2] glsl: fix order of functions emitted by the linker.

2011-08-03 Thread Paul Berry
This is a follow-up to the email thread discussing [PATCH 1/4] Revert glsl: Skip processing the first function's body in do_dead_functions().. As mentioned in that thread, since the linker emits functions at the head of the final linked program, they come before any global variable declarations,

[Mesa-dev] [PATCH 1/2] glsl: validate IR after linking (debug builds only)

2011-08-03 Thread Paul Berry
At least one of the invariants verified by IR validation concerns the relative ordering of toplevel constructs in the IR: references to global variables must come after the declarations of those global variables. Since linking affects the ordering of toplevel constructs in the IR, it's possible

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

2011-08-03 Thread Paul Berry
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 declarations must occur before variable accesses). The easiest way to do that is to

[Mesa-dev] [PATCH resend] glx/dri2: Paper over errors in DRI2Connect when indirect

2011-08-03 Thread Christopher James Halse Rogers
DRI2 will throw BadRequest for this when the client is not local, but DRI2 is an implementation detail and not something callers should have to know about. Silently swallow errors in this case, and just propagate the failure through DRI2Connect's return code. Note: This is a candidate for the

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

2011-08-03 Thread Chia-I Wu
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 was noted when porting one of them to Linux from Windows. ---

[Mesa-dev] [Bug 39821] New: HEAD won't compile without X11 headers

2011-08-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39821 Summary: HEAD won't compile without X11 headers Product: Mesa Version: git Platform: All OS/Version: All Status: NEW Severity: minor Priority: medium

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

2011-08-03 Thread fykc...@gmail.com
Hi, 2011/8/3 Andy Furniss andy...@ukfsn.org: My mplayer reads /usr/lib/XvMCConfig, after I providing that file, libXvMCr600.so is loaded by mplayer. Does it work now then? No, it renders a corrupted playback http://dev.lemote.com/files/upload/software/temp/newmobcal1920-playback.png I guess

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

2011-08-03 Thread Marek Olšák
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 deletions(-) diff --git

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

2011-08-03 Thread 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: On Sat, Jul 23, 2011 at 9:14 AM, Eric Anholt e...@anholt.net wrote: