Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-24 Thread Chia-I Wu
On Fri, Jun 24, 2011 at 3:34 PM, Benjamin Franzke wrote: > 2011/6/24 Chia-I Wu : >> On Fri, Jun 24, 2011 at 8:38 AM, Chia-I Wu wrote: >>> On Thu, Jun 23, 2011 at 8:07 PM, Benjamin Franzke >>> wrote: 2011/6/23 Chia-I Wu : > On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke > wrote:

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-24 Thread Benjamin Franzke
2011/6/24 Chia-I Wu : > On Fri, Jun 24, 2011 at 3:34 PM, Benjamin Franzke > wrote: >> 2011/6/24 Chia-I Wu : >>> On Fri, Jun 24, 2011 at 8:38 AM, Chia-I Wu wrote: On Thu, Jun 23, 2011 at 8:07 PM, Benjamin Franzke wrote: > 2011/6/23 Chia-I Wu : >> On Thu, Jun 23, 2011 at 7:46 PM,

Re: [Mesa-dev] [PATCH 1/4] mesa: remove unused function _mesa_new_depthstencil_renderbuffer

2011-06-24 Thread Brian Paul
On 06/23/2011 08:39 PM, Marek Olšák wrote: --- src/mesa/main/renderbuffer.c | 23 --- src/mesa/main/renderbuffer.h |3 --- 2 files changed, 0 insertions(+), 26 deletions(-) diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index fa884c0..c3617

Re: [Mesa-dev] [PATCH 4/4] mesa: don't allocate memory in _mesa_unpack_depth_span if we don't need it

2011-06-24 Thread Brian Paul
On 06/23/2011 08:39 PM, Marek Olšák wrote: --- src/mesa/main/pack.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 7d541dc..a232a51 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -4683,7 +

Re: [Mesa-dev] [PATCH 4/4] mesa: don't allocate memory in _mesa_unpack_depth_span if we don't need it

2011-06-24 Thread Brian Paul
On 06/23/2011 08:39 PM, Marek Olšák wrote: --- src/mesa/main/pack.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 7d541dc..a232a51 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -4683,7 +

Re: [Mesa-dev] [PATCH 2/4] mesa: fix texstore of DEPTH24_STENCIL8 if srcFormat is STENCIL_INDEX

2011-06-24 Thread Brian Paul
On 06/23/2011 08:39 PM, Marek Olšák wrote: NOTE: This is a candidate for the 7.10 branch. --- src/mesa/main/texstore.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 6da3e4e..5c925a3 100644 --- a/src/me

Re: [Mesa-dev] [PATCH 3/4] mesa: fix a memory leak in _mesa_unpack_depth_span

2011-06-24 Thread Brian Paul
On 06/23/2011 08:39 PM, Marek Olšák wrote: NOTE: This is a candidate for the 7.10 branch. --- src/mesa/main/pack.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index d6470e3..7d541dc 100644 --- a/src/mesa/main/pack.c +++ b

Re: [Mesa-dev] [PATCH] mesa/program: split reference program into hot/cold paths.

2011-06-24 Thread Brian Paul
On 06/23/2011 11:22 PM, Dave Airlie wrote: From: Dave Airlie inline the hotpath of the reference remaining the same, this shouldn't penalise the slow path at all but improve the hot path so we don't have to jump to the function. It also moves some assert checks under an #ifndef NDEBUG. Signed-

Re: [Mesa-dev] [PATCH] mesa/program: split reference program into hot/cold paths.

2011-06-24 Thread Brian Paul
BTW, the same treatment could probably be given to a few other object types, like texture objects and buffer objects. -Brian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [RFC, PATCH] Fix 24bpp software rendering

2011-06-24 Thread Marc Pignat
This patch add the support for 24bpp in the dri/swrast implementation. Signed-off-by: Marc Pignat --- Hi all! I think it is important because users of KVM or QEMU use this mode as the default. Here is a small list of bugs that should be fixed by this patch: * https://bugs.freedesktop.org/show

Re: [Mesa-dev] [PATCH] gallium/test/trivial: make it build

2011-06-24 Thread Brian Paul
On 06/22/2011 06:31 AM, Alon Levy wrote: Signed-off-by: Alon Levy --- src/gallium/tests/trivial/Makefile |9 +++-- src/gallium/tests/trivial/quad-tex.c |4 ++-- src/gallium/tests/trivial/tri.c |4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src

Re: [Mesa-dev] [RFC, PATCH] Fix 24bpp software rendering

2011-06-24 Thread Brian Paul
On 06/24/2011 07:19 AM, Marc Pignat wrote: This patch add the support for 24bpp in the dri/swrast implementation. Signed-off-by: Marc Pignat Pushed. Thanks. Can you close the relevant bugs if they check out? -Brian ___ mesa-dev mailing list mesa-

Re: [Mesa-dev] [PATCH 2/4] mesa: fix texstore of DEPTH24_STENCIL8 if srcFormat is STENCIL_INDEX

2011-06-24 Thread Marek Olšák
On Fri, Jun 24, 2011 at 3:15 PM, Brian Paul wrote: > On 06/23/2011 08:39 PM, Marek Olšák wrote: >> >> NOTE: This is a candidate for the 7.10 branch. >> --- >>  src/mesa/main/texstore.c |    9 ++--- >>  1 files changed, 6 insertions(+), 3 deletions(-) >> >> diff --git a/src/mesa/main/texstore.c

Re: [Mesa-dev] [PATCH 2/4] mesa: fix texstore of DEPTH24_STENCIL8 if srcFormat is STENCIL_INDEX

2011-06-24 Thread Brian Paul
On 06/24/2011 09:58 AM, Marek Olšák wrote: On Fri, Jun 24, 2011 at 3:15 PM, Brian Paul wrote: On 06/23/2011 08:39 PM, Marek Olšák wrote: NOTE: This is a candidate for the 7.10 branch. --- src/mesa/main/texstore.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --gi

[Mesa-dev] [Bug 37253] SIGSEGV in dri2FlushFrontBuffer/MakeContextCurrent

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37253 --- Comment #8 from Sven Arvidsson 2011-06-24 09:19:19 PDT --- I have tried the conformance test with Firefox 7.0a1 and Mesa c0c0bb6cb140825f5bab3c40c0c9c0ec575fbc76 r600g on a HD5670: Results: (5665 of 5785 passed, 2 timed out) r300g on a RV57

[Mesa-dev] [PATCH 0/3] r600g patches

2011-06-24 Thread Vadim Girlin
#1 fixes slots order for x & y writes in the LIT implementation. Without this patch "fp-lit-mask" piglit test fails after patch 3. It seems wrong order causes wrong PV.* values for the next instruction. #2 reduces unneeded calls to r600_spi_update. #3 implements color clamping in shaders by addin

[Mesa-dev] [PATCH 1/3] r600g: LIT: fix x&y slots order

2011-06-24 Thread Vadim Girlin
Signed-off-by: Vadim Girlin --- src/gallium/drivers/r600/r600_shader.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 86fdfbc..904cc69 100644 --- a/src/gallium/d

[Mesa-dev] [PATCH 2/3] r600g: optimize spi update

2011-06-24 Thread Vadim Girlin
Signed-off-by: Vadim Girlin --- src/gallium/drivers/r600/r600_pipe.h |1 + src/gallium/drivers/r600/r600_state_common.c | 10 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index

[Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-24 Thread Vadim Girlin
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38440 Signed-off-by: Vadim Girlin --- src/gallium/drivers/r600/evergreen_state.c |2 + src/gallium/drivers/r600/r600_pipe.c |2 +- src/gallium/drivers/r600/r600_pipe.h |7 +++- src/gallium/drivers/r600/r600_shader.c

[Mesa-dev] [Bug 38626] vbo: Don't discount stride breaks piglit on softpipe/r600g

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38626 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 33204] [softpipe] firefox4 webgl: segfault in swrastPutImage

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=33204 Sven Arvidsson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 33203] firefox4 segfault in swrastPutImage() (pdraw->psc==NULL) [Gallium 0.4 on llvmpipe]

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=33203 Sven Arvidsson changed: What|Removed |Added CC||s...@whiz.se --- Comment #4 from Sven A

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

2011-06-24 Thread Eric Anholt
On Thu, 23 Jun 2011 19:08:51 -0600, Brian Paul wrote: > > I'd like to overhaul the part of Mesa related to texture memory > reading/writing. > > The basic idea would be to add two new driver functions: > > /** > * Map a 2D slice of a texture image into user space. > * (x,y,w,h) defines a r

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

2011-06-24 Thread Brian Paul
On 06/24/2011 11:27 AM, Eric Anholt wrote: On Thu, 23 Jun 2011 19:08:51 -0600, Brian Paul wrote: I'd like to overhaul the part of Mesa related to texture memory reading/writing. The basic idea would be to add two new driver functions: /** * Map a 2D slice of a texture image into user spac

[Mesa-dev] [Bug 38622] [bisected] EGL assertion failure in many ES2 applications

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38622 --- Comment #2 from Ian Romanick 2011-06-24 11:09:26 PDT --- (In reply to comment #1) > I can't reproduce this with the egl x11 demos from mesa/demos. > Also I dont see what could effect that in the bisected commit. > > Anyway, would give more

[Mesa-dev] [Bug 38622] [bisected] EGL assertion failure in many ES2 applications

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38622 Ian Romanick changed: What|Removed |Added Severity|major |normal Priority|highest

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-24 Thread Jerome Glisse
On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin wrote: > Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38440 > > Signed-off-by: Vadim Girlin As discussed previously, there is better to handle this. I think best solution is to always add the instruction and to conditionally execute them thank

Re: [Mesa-dev] [PATCH 0/3] r600g patches

2011-06-24 Thread Jerome Glisse
On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin wrote: > #1 fixes slots order for x & y writes in the LIT implementation. > Without this patch "fp-lit-mask" piglit test fails after patch 3. It seems > wrong order causes wrong PV.* values for the next instruction. > > #2 reduces unneeded calls to r6

[Mesa-dev] [PATCH 02/11] i965: step message register allocation

2011-06-24 Thread Ben Widawsky
The system routine requires m0 be reserved. for saving off architectural state. Moved the allocation to start at 2 instead of 0. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesa

[Mesa-dev] [PATCH 03/11] i965: copy in system routine, reserve extra scratch

2011-06-24 Thread Ben Widawsky
The debugger shared memory needs to be a fixed size. Since this is scratch memory that is already used by register spilling, add appropriate hooks to do the right thing when debugging. Also copy in a binary blob system routine based on an environment variable. This blob will need to be relocated,

[Mesa-dev] [PATCH 04/11] i965: Move register spill offsets

2011-06-24 Thread Ben Widawsky
Since the debug system routine will share scratch space with threads doing register spilling, we must offset the registers to accomodate. This is more easily accomplished (and less bug prone) in Mesa, so there you go... Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs_emit.cpp |

[Mesa-dev] [PATCH 05/11] i965: setup system routine

2011-06-24 Thread Ben Widawsky
Upload the system routine as part of the invariant state if debugging. Remove SIP setting if not debugging to make it more friendly for others that may be debugging shaders or media kernels. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_misc_state.c | 24 +++---

[Mesa-dev] [PATCH 06/11] i965: emit breakpoints

2011-06-24 Thread Ben Widawsky
Provide a function to allow emitting breakpoints in the instruction oword. Use breakpoints when debugging. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_eu.c |6 ++ src/mesa/drivers/dri/i965/brw_eu.h |1 + src/mesa/drivers/dri/i965/brw_wm.c |3 +++ 3 files changed

[Mesa-dev] [PATCH 07/11] i965: attach to a listening debugger

2011-06-24 Thread Ben Widawsky
Use unix domain sockets to connect to a debugger and send the information the debugger will use to properly handle debug events. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_wm_debug.c | 66 - 1 files changed, 63 insertions(+), 3 deletions(-) diff

Re: [Mesa-dev] [PATCH 2/6] glsl: Add productions to GLSL grammar for switch statement

2011-06-24 Thread Dan McCabe
On 06/20/2011 03:39 PM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/17/2011 05:43 PM, Dan McCabe wrote: The grammar is modified to support switch statements. Rather than follow the grammar in the appendix, which allows case labels to be placed ANYWHERE as a regular s

Re: [Mesa-dev] [PATCH 3/6] glsl: Create AST structs corresponding to new productions in grammar

2011-06-24 Thread Dan McCabe
On 06/20/2011 03:31 PM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/17/2011 05:43 PM, Dan McCabe wrote: + + exec_list cases; What types are in this list? If this is a list of ast_case_statements, there should be a comment to that effect. We've been really sloppy

Re: [Mesa-dev] [PATCH 4/6] glsl: Reference data structure ctors in grammar

2011-06-24 Thread Dan McCabe
On 06/20/2011 03:34 PM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/17/2011 05:43 PM, Dan McCabe wrote: We now tie the grammar to the ctors of the ASTs they reference. This requires that we actually have definitions of the ctors. In addition, we also need to define

[Mesa-dev] [Bug 38622] [bisected] EGL assertion failure in many ES2 applications

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38622 Kristian Høgsberg changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-24 Thread Dan McCabe
On 06/20/2011 03:50 PM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/17/2011 05:43 PM, Dan McCabe wrote: Beware! Here be dragons! I think this will generate the wrong code for: for (i = 0; i< 10; i++) { switch (i) {

Re: [Mesa-dev] [PATCH 0/3] r600g patches

2011-06-24 Thread Alex Deucher
On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin wrote: > #1 fixes slots order for x & y writes in the LIT implementation. > Without this patch "fp-lit-mask" piglit test fails after patch 3. It seems > wrong order causes wrong PV.* values for the next instruction. > > #2 reduces unneeded calls to r6

[Mesa-dev] [PATCH 1/7] glsl: Drop explicit types of lower_mat_op_to_vec expressions.

2011-06-24 Thread Eric Anholt
The constructor can figure it out for us these days. --- src/glsl/lower_mat_op_to_vec.cpp | 33 ++--- 1 files changed, 6 insertions(+), 27 deletions(-) diff --git a/src/glsl/lower_mat_op_to_vec.cpp b/src/glsl/lower_mat_op_to_vec.cpp index 8cbbfa7..bf3915e 100644 ---

[Mesa-dev] [PATCH 2/7] glsl: Move get_{column, element} to expression args.

2011-06-24 Thread Eric Anholt
I think this makes the code more obvious by moving the declarations to their single usage (now that we aren't using them to get at the ->type field for expression constructors). --- src/glsl/lower_mat_op_to_vec.cpp | 65 +- 1 files changed, 22 insertions(+), 4

[Mesa-dev] [PATCH 3/7] glsl: Rename lower_mat_op_to_vec operands/results to be less hungarian.

2011-06-24 Thread Eric Anholt
This awkward typing was to avoid shadowing the function argument (the matrix) with the temporary deref (the column) before the get_column()/get_element()s were moved into the expression/assignment constructors. They're about to become not-variables, so the current names had to go. This change is

[Mesa-dev] [PATCH 5/7] glsl: Avoid making a temporary for lower_mat_op_to_vec if not needed.

2011-06-24 Thread Eric Anholt
Our copy propagation tends to be bad at handling the later array accesses of the matrix argument we moved to a temporary. Generally we don't need to move it to a temporary, though, so this avoids needing more copy propagation complexity. Reduces instruction count of some Unigine Tropics and Sanct

[Mesa-dev] [PATCH 4/7] glsl: Make lower_mat_op_to_vec track derefs, not variables.

2011-06-24 Thread Eric Anholt
We were constrained to using temporaries because we were assuming variables all over. This simplifies things a bit. --- src/glsl/lower_mat_op_to_vec.cpp | 127 +- 1 files changed, 56 insertions(+), 71 deletions(-) diff --git a/src/glsl/lower_mat_op_to_vec.cpp

[Mesa-dev] [PATCH 7/7] glsl: Use the default values of ir_assignment() in lower_mat_op_to_vec.

2011-06-24 Thread Eric Anholt
--- src/glsl/lower_mat_op_to_vec.cpp | 32 1 files changed, 8 insertions(+), 24 deletions(-) diff --git a/src/glsl/lower_mat_op_to_vec.cpp b/src/glsl/lower_mat_op_to_vec.cpp index 9d593f9..a371afc 100644 --- a/src/glsl/lower_mat_op_to_vec.cpp +++ b/src/glsl/lowe

[Mesa-dev] [PATCH 6/7] glsl: Allow ir_assignment() constructor to not specify condition.

2011-06-24 Thread Eric Anholt
We almost never want to specify a condition, and when we do we're already thinking about it (because we're writing a lowering pass generating the condition), so a default argument should make the code more pleasant to read. --- src/glsl/ir.h |2 +- 1 files changed, 1 insertions(+), 1 deletions

[Mesa-dev] [PATCH] i965/gen6+: Use 3D clears on to avoid inter-ring synchronization.

2011-06-24 Thread Eric Anholt
Improves firefox-talos-gfx around 5%. --- This patch regresses glean/fbo and these two ARB_cbf runs: ./bin/arb_color_buffer_float-render GL_RGBA8 fog ./bin/arb_color_buffer_float-render GL_RGBA8 sanity fog I'd love if anyone else could take a look at it and figure out what's going on here. Unfo

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-24 Thread Vadim Girlin
On 06/24/2011 11:38 PM, Jerome Glisse wrote: On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38440 Signed-off-by: Vadim Girlin As discussed previously, there is better to handle this. I think best solution is to always add the instruct

[Mesa-dev] [PATCH] i965/gen5: Fix grf_used calculation for 16-wide.

2011-06-24 Thread Eric Anholt
If we happened to allocate a texture result (or other vector) to the highest hardware register slot, and we were in 16-wide, we would under-count the registers used and potentially wrap around to g0 if that allocation crossed a 16-register block boundary. Noticed in looking into a shader from idr

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-24 Thread Dan McCabe
On 06/24/2011 01:17 PM, Dan McCabe wrote: On 06/20/2011 03:50 PM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/17/2011 05:43 PM, Dan McCabe wrote: Beware! Here be dragons! I think this will generate the wrong code for: for (i = 0; i< 10; i++) { switc

Re: [Mesa-dev] [Intel-gfx] [PATCH 02/11] i965: step message register allocation

2011-06-24 Thread Eric Anholt
On Fri, 24 Jun 2011 12:42:47 -0700, Ben Widawsky wrote: > The system routine requires m0 be reserved. for saving off architectural > state. Moved the allocation to start at 2 instead of 0. > > Signed-off-by: Ben Widawsky Reviewed-by: Eric Anholt pgpfodX6AC5FB.pgp Description: PGP signature _

[Mesa-dev] [PATCH 1/2] ir_to_mesa: Allocate temporary instructions on the visitor's ralloc context

2011-06-24 Thread Ian Romanick
From: Ian Romanick And don't delete them. Let ralloc clean them up. Deleting the temporary IR leaves dangling references in the prog_instruction. That results in a bad dererfernce when printing the IR with MESA_GLSL=dump. NOTE: This is a candidate for the 7.10 branch. Bugzilla: https://bugs.

[Mesa-dev] [PATCH 2/2] glsl: Don't choke when printing an anonymous function parameter

2011-06-24 Thread Ian Romanick
From: Ian Romanick NOTE: This is a candidate for the 7.10 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38584 --- src/glsl/ir_print_visitor.cpp |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visit

Re: [Mesa-dev] [Intel-gfx] [PATCH 03/11] i965: copy in system routine, reserve extra scratch

2011-06-24 Thread Eric Anholt
On Fri, 24 Jun 2011 12:42:48 -0700, Ben Widawsky wrote: > The debugger shared memory needs to be a fixed size. Since this is > scratch memory that is already used by register spilling, add > appropriate hooks to do the right thing when debugging. > > Also copy in a binary blob system routine base

Re: [Mesa-dev] [Intel-gfx] [PATCH 05/11] i965: setup system routine

2011-06-24 Thread Eric Anholt
On Fri, 24 Jun 2011 12:42:50 -0700, Ben Widawsky wrote: > Upload the system routine as part of the invariant state if debugging. > > Remove SIP setting if not debugging to make it more friendly for others > that may be debugging shaders or media kernels. Instructions are from an offset of the br

Re: [Mesa-dev] [PATCH 1/2] ir_to_mesa: Allocate temporary instructions on the visitor's ralloc context

2011-06-24 Thread Eric Anholt
On Fri, 24 Jun 2011 17:35:10 -0700, "Ian Romanick" wrote: > From: Ian Romanick > > And don't delete them. Let ralloc clean them up. Deleting the > temporary IR leaves dangling references in the prog_instruction. That > results in a bad dererfernce when printing the IR with MESA_GLSL=dump. de

[Mesa-dev] Mesa-dev] [Bug 33758] CreateDRIDrawable can't fail gracefully

2011-06-24 Thread Chad Versace
nobled, try these patches and let us know if they fix the problem. Chad Versace (2): drisw: Do error checking in XCreateDrawable glx: Do error checking in CreateDrawable src/glx/drisw_glx.c | 19 ++- src/glx/glx_pbuffer.c | 17 +++-- 2 files changed, 29 inse

[Mesa-dev] [PATCH 1/2] drisw: Do error checking in XCreateDrawable

2011-06-24 Thread Chad Versace
If a calleé returns null, then free local memory and return false. Cc: nob...@dreamwidth.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33758 Note: This is a candidate for the stable branch. Signed-off-by: Chad Versace --- src/glx/drisw_glx.c | 19 ++- 1 files chang

[Mesa-dev] [PATCH 2/2] glx: Do error checking in CreateDrawable

2011-06-24 Thread Chad Versace
If CreateDRIDrawable fails, then return 0 as the GLXDrawable. Cc: nob...@dreamwidth.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33758 Note: This is candidate for the stable branch. Signed-off-by: Chad Versace --- src/glx/glx_pbuffer.c | 17 +++-- 1 files changed, 11

[Mesa-dev] [Bug 33758] CreateDRIDrawable can't fail gracefully

2011-06-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=33758 --- Comment #3 from nobled 2011-06-24 18:29:49 PDT --- This patch by ajax back in May seems relevant, BTW. I'll test it (and Chad's patches) when I get a chance. http://lists.freedesktop.org/archives/mesa-dev/2011-May/007353.html -- Configure