Re: [Mesa-dev] [PATCH 6/7] i915: Fail without crashing if a Mesa IR program uses too many registers

2011-08-02 Thread Kenneth Graunke
On 08/01/2011 06:18 PM, Ian Romanick wrote: On 08/01/2011 11:39 AM, Eric Anholt wrote: On Mon, 1 Aug 2011 10:20:22 -0700, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com So far this can only happen in GLSL shaders that contain flow-control that could

Re: [Mesa-dev] [PATCH 5/7] ir_to_mesa: Emit warnings instead of errors for IR that can't be lowered

2011-08-02 Thread Kenneth Graunke
On 08/01/2011 10:20 AM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com Rely on the driver to do the right thing. This probably means falling back to software. Page 88 of the OpenGL 2.1 spec specifically says: A shader should not fail to compile, and a program object

Re: [Mesa-dev] [PATCH 4/7] ir_to_mesa: Use Add linker_error_printf instead of fail_link

2011-08-02 Thread Kenneth Graunke
On 08/01/2011 10:20 AM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com The functions were almost identical. --- src/mesa/program/ir_to_mesa.cpp | 56 +- 1 files changed, 25 insertions(+), 31 deletions(-) I might go ahead and call

Re: [Mesa-dev] [PATCH 7/7] i915: Only emit program errors when INTEL_DEBUG=wm

2011-08-02 Thread Kenneth Graunke
On 08/01/2011 10:50 AM, Eric Anholt wrote: On Mon, 1 Aug 2011 10:20:23 -0700, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com This makes piglit a lot more happy. I'd include DEBUG_FALLBACK, too. That's what's about to happen when someone uses the

Re: [Mesa-dev] [PATCH 1/7] linker: Make linker_error_printf set LinkStatus to false

2011-08-02 Thread Kenneth Graunke
For the series (assuming you make the change Eric suggested to 7/7): Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

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

2011-08-02 Thread fykc...@gmail.com
Hi all, I've tried mesa-7.11rc4 with pipe-video patch on a Loongson3A based notebook: * CPU: 4-core MIPS64 compatible (Little-endian, 64bit kernel with an o32 userland) * Graphics: RS780E I tried h264、mpeg2 samples with mplayer -vo vdpau and xvmc, non of them works: * For h264, mplayer

Re: [Mesa-dev] [PATCH 2/4] gallium: extend resource_resolve to accommodate BlitFramebuffer

2011-08-02 Thread Christoph Bumiller
On 28.07.2011 15:59, Christoph Bumiller wrote: Resolve via glBlitFramebuffer allows resolving a sub-region of a renderbuffer to a different location in any mipmap level of some other texture, and, with a new extension, even scaling. Therefore, location and size parameters are needed. The

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

2011-08-02 Thread Christian König
Hi, Am Dienstag, den 02.08.2011, 15:00 +0800 schrieb fykc...@gmail.com: I've tried mesa-7.11rc4 with pipe-video patch on a Loongson3A based notebook: * CPU: 4-core MIPS64 compatible (Little-endian, 64bit kernel with an o32 userland) * Graphics: RS780E a bit unusual hardware configuration,

Re: [Mesa-dev] Mesa (master): Fix PPC detection on darwin

2011-08-02 Thread Jose Fonseca
- Original Message - On Son, 2011-07-31 at 09:47 -0700, Jeremy Huddleston wrote: Module: Mesa Branch: master Commit: e737a99a6fbafe3ba4b5175eea25d1598dbeb9d8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e737a99a6fbafe3ba4b5175eea25d1598dbeb9d8 Author:

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

2011-08-02 Thread fykc...@gmail.com
Hi Christian, Thanks for your reply. 2011/8/2 Christian König deathsim...@vodafone.de: Hi, Am Dienstag, den 02.08.2011, 15:00 +0800 schrieb fykc...@gmail.com: I've tried mesa-7.11rc4 with pipe-video patch on a Loongson3A based notebook:  * CPU: 4-core MIPS64 compatible (Little-endian, 64bit

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

2011-08-02 Thread fykc...@gmail.com
Hi, Thanks for your reply. 2011/8/2 Andy Furniss andy...@ukfsn.org: fykc...@gmail.com wrote: Hi all, I've tried mesa-7.11rc4 with pipe-video patch on a Loongson3A based notebook: * CPU: 4-core MIPS64 compatible (Little-endian, 64bit kernel with an o32 userland) * Graphics: RS780E I

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

2011-08-02 Thread Andy Furniss
fykc...@gmail.com wrote: 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 strace or /proc/pid/maps). Maybe I

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

2011-08-02 Thread Micael Dias
--- src/mesa/main/mtypes.h |7 + src/mesa/state_tracker/st_cb_feedback.c | 21 +- src/mesa/state_tracker/st_draw.h | 17 + src/mesa/state_tracker/st_draw_select_emul.c | 463 ++ src/mesa/SConscript |

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

2011-08-02 Thread Alex Deucher
On Tue, Aug 2, 2011 at 9:37 AM, Micael Dias kam1k...@gmail.com wrote: --- Might want to mention the relevant bug and Pierre's prior patches for future reference in case anyone wants to implement it for non-gallium drivers. It would probably be useful to come up with a piglit test for this,

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

2011-08-02 Thread Brian Paul
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 to master again. The translator is more mature than last time. There are no regressions that I know of on any driver. The code generation has improved so

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

2011-08-02 Thread Eric Anholt
On Mon, 1 Aug 2011 22:16:40 -0700, Paul Berry stereotype...@gmail.com wrote: On 1 August 2011 17:35, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/01/2011 04:07 PM, Paul Berry wrote: opt_dead_functions contained a shortcut to skip

[Mesa-dev] [Bug 37177] Mathematica Plot3D Crash

2011-08-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37177 Garrett Mitchener garrett.mitche...@gmail.com changed: What|Removed |Added CC|

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

2011-08-02 Thread Paul Berry
On 1 August 2011 22:16, Paul Berry stereotype...@gmail.com wrote: I will investigate things further in the morning and let you know what I find. Ok, I've spent a while looking through the linker code, and the rabbit hole goes deeper than I expected. There are a number of reasons why the

[Mesa-dev] [Bug 37177] Mathematica Plot3D Crash

2011-08-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37177 José Fonseca jfons...@vmware.com changed: What|Removed |Added Component|GLX |Drivers/DRI/i915

Re: [Mesa-dev] [PATCH 2/4] gallium: extend resource_resolve to accommodate BlitFramebuffer

2011-08-02 Thread Christoph Bumiller
On 08/02/2011 07:20 PM, Roland Scheidegger wrote: Since noone else chimed in and said it's not a good idea I won't hold you up :-). I'd like to see a little more documentation though what it can (e.g. depth resolve especially what it actually should do) and can't do in context.rst.

Re: [Mesa-dev] [PATCH 2/4] glsl: Emit function signatures at toplevel, even for built-ins.

2011-08-02 Thread Paul Berry
On 1 August 2011 18:08, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/01/2011 04:07 PM, Paul Berry wrote: The ast-to-hir conversion needs to emit function signatures in two circumstances: when a function declaration (or definition) is

Re: [Mesa-dev] [PATCH 2/4] gallium: extend resource_resolve to accommodate BlitFramebuffer

2011-08-02 Thread Roland Scheidegger
On 08/02/2011 07:20 PM, Roland Scheidegger wrote: Since noone else chimed in and said it's not a good idea I won't hold you up :-). I'd like to see a little more documentation though what it can (e.g. depth resolve especially what it actually should do) and can't do in context.rst.

[Mesa-dev] A problem in commit be7407b75b12c70e1925c10117937ae2b9e6711f

2011-08-02 Thread Gustaw Smolarczyk
I found (presumably) a bug in commit be7407b75b12c70e1925c10117937ae2b9e6711f of mesa master. The function util_format_swizzle_4f() does not handle UTIL_FORMAT_SWIZZLE_W. The should be replaced by =. ___ mesa-dev mailing list

Re: [Mesa-dev] A problem in commit be7407b75b12c70e1925c10117937ae2b9e6711f

2011-08-02 Thread Marek Olšák
Thanks. I'll fix that in a minute. Marek On Wed, Aug 3, 2011 at 12:45 AM, Gustaw Smolarczyk wielkie...@gmail.com wrote: I found (presumably) a bug in commit be7407b75b12c70e1925c10117937ae2b9e6711f of mesa master. The function util_format_swizzle_4f() does not handle UTIL_FORMAT_SWIZZLE_W.

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

2011-08-02 Thread Paul Berry
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). --- src/glsl/ir.cpp |4 ++-- src/glsl/ir.h |

[Mesa-dev] [PATCH 2/3] glsl: Add validations for ir_call.

2011-08-02 Thread Paul Berry
This patch extends ir_validate.cpp to check the following characteristics of each ir_call: - The number of actual parameters must match the number of formal parameters in the signature. - The type of each actual parameter must match the type of the corresponding formal parameter in the

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

2011-08-02 Thread Paul Berry
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; f(value); Into IR that's equivalent to this: void

[Mesa-dev] [PATCH 1/4] glsl: Make move_block_to_cond_assign not care which branch it's processing

2011-08-02 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com This will make some future changes a bit easier to digest. --- src/glsl/lower_if_to_cond_assign.cpp | 44 + 1 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/glsl/lower_if_to_cond_assign.cpp

[Mesa-dev] [PATCH 2/4] glsl: Replace foreach_iter with foreach_list_safe

2011-08-02 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com --- src/glsl/lower_if_to_cond_assign.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsl/lower_if_to_cond_assign.cpp b/src/glsl/lower_if_to_cond_assign.cpp index 2d447e0..5c74bc1 100644 ---

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

2011-08-02 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Now the condition (for the then-clause) and the inverse condition (for the else-clause) get written to sepearate temporary variables. In the presense of complex conditions, this may result in more code being generated. ---

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

2011-08-02 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Previously if-statements were lowered from inner-most to outer-most (i.e., bottom-up). All assignments within an if-statement would have the condition of the if-statement appended to its existing condition. As a result the assignments from a deeply

Re: [Mesa-dev] [PATCH 2/4] glsl: Emit function signatures at toplevel, even for built-ins.

2011-08-02 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2011 12:18 PM, Paul Berry wrote: On 1 August 2011 18:08, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/01/2011 04:07 PM, Paul Berry wrote: The ast-to-hir conversion needs to emit function

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

2011-08-02 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2011 11:41 AM, Paul Berry wrote: On 1 August 2011 22:16, Paul Berry stereotype...@gmail.com wrote: I will investigate things further in the morning and let you know what I find. Ok, I've spent a while looking through the linker code,

Re: [Mesa-dev] [PATCH 2/3] glsl: Add validations for ir_call.

2011-08-02 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2011 05:38 PM, Paul Berry wrote: This patch extends ir_validate.cpp to check the following characteristics of each ir_call: - The number of actual parameters must match the number of formal parameters in the signature. - The type

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

2011-08-02 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

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

2011-08-02 Thread Eric Anholt
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 else-clause) get written to sepearate temporary variables. In the separate presense of

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

2011-08-02 Thread Micael Dias
--- src/mesa/SConscript |1 + src/mesa/main/mtypes.h |7 + src/mesa/sources.mak |1 + src/mesa/state_tracker/st_cb_feedback.c | 21 +- src/mesa/state_tracker/st_draw.h | 17 +