Re: [Mesa-dev] [PATCH 4/4] intel: Allocate s8_z24 non-texture renderbuffers when using separate stencil

2011-06-19 Thread Eric Anholt
On Sun, 19 Jun 2011 14:51:28 -0700, Chad Versace wrote: > On Sun, 19 Jun 2011 10:15:49 -0700, Eric Anholt wrote: > Non-text part: multipart/signed > > On Fri, 17 Jun 2011 15:43:43 -0700, Chad Versace > > wrote: > > > Now all infrastructure is in place to support s8_z24 non-texture > > > renderb

Re: [Mesa-dev] [PATCH 3/4] intel: Unobfuscate intel_alloc_renderbuffer_storage

2011-06-19 Thread Kenneth Graunke
On 06/19/2011 03:27 PM, Chad Versace wrote: [snip] Yes. I neglected to duplicate that the (!irb->region) check in the S8 case. I'll add it to the patch. But, "leaving that check below" is no longer possible due to patch 4 --- !irb->region is always false for the wrapped S8_Z24 case. So the check

[Mesa-dev] [Bug 38483] git mesa gallium configuration error

2011-06-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38483 --- Comment #2 from Jos van Wolput 2011-06-19 21:21:18 PDT --- (In reply to comment #1) > There is a new option for selecting Gallium drivers. > > Try: --with-gallium-drivers= ./autogen.sh --with-gallium-drivers=r600,swrast no longer complaint

[Mesa-dev] [Bug 38483] git mesa gallium configuration error

2011-06-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38483 Marek Olšák changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 38483] New: git mesa gallium configuration error

2011-06-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38483 Summary: git mesa gallium configuration error Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: med

[Mesa-dev] [PATCH 6/6] i965: Set breakpoints

2011-06-19 Thread Ben Widawsky
Add the breakpoint flag for all instructions when doing wm shader debugging. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_wm.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c inde

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

2011-06-19 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 1/6] i965: step message register allocation

2011-06-19 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 5/6] i965: function to emit breakpoints

2011-06-19 Thread Ben Widawsky
Provide a function to allow emitting breakpoints in the instruction qword. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_eu.c |6 ++ src/mesa/drivers/dri/i965/brw_eu.h |1 + 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_e

[Mesa-dev] i965 fs shader debugging

2011-06-19 Thread Ben Widawsky
These are the mesa patches that go with the patches that I posted to intel-gfx for intel-gpu-tools: <1308080767-21176-1-git-send-email-...@bwidawsk.net> which begin to allow HW supported shader debugging on Gen6 and above. I'll send out a big patch series with all the components when ready, but I

[Mesa-dev] [PATCH 3/6] i965: Move register spill offsets

2011-06-19 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 4/6] i965: setup system routine

2011-06-19 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 +++---

Re: [Mesa-dev] [PATCH 1/2] xorg/nouveau: rename to nouveau2

2011-06-19 Thread Marek Olšák
Pushed, thanks. The other patch should be pushed by someone who understands it (i.e. not me). You already have 36 commits in Mesa master. You should really apply for an account. Marek On Mon, Jun 20, 2011 at 12:28 AM, Marcin Slusarz wrote: > On Mon, May 16, 2011 at 09:50:29PM +0200, Marcin Slu

Re: [Mesa-dev] [PATCH] st/xorg: initialize drm_mode.type

2011-06-19 Thread Marek Olšák
Pushed, thanks. Marek On Mon, Jun 20, 2011 at 12:09 AM, Marcin Slusarz wrote: > On Sun, Jun 05, 2011 at 09:05:24PM +0200, Marcin Slusarz wrote: >> it's uninitialized, but used by kernel (drm_mode_setcrtc -> >> drm_mode_set_crtcinfo) >> --- >>  src/gallium/state_trackers/xorg/xorg_crtc.c |    1

Re: [Mesa-dev] [PATCH] st/xorg: add GALLIUM_AUXILIARIES to target dependencies

2011-06-19 Thread Marek Olšák
Pushed, thanks. Marek On Mon, Jun 20, 2011 at 12:08 AM, Marcin Slusarz wrote: > On Sun, Jun 05, 2011 at 09:04:49PM +0200, Marcin Slusarz wrote: >> Without it changes to GALLIUM_AUXILIARIES don't induce target rebuild >> --- >>  src/gallium/targets/Makefile.xorg |    2 +- >>  1 files changed, 1 i

Re: [Mesa-dev] [PATCH] gallium/nouveau: remove unused nouveau_screen_bo_user

2011-06-19 Thread Marek Olšák
Pushed, thanks. Marek On Mon, Jun 20, 2011 at 12:06 AM, Marcin Slusarz wrote: > On Mon, May 09, 2011 at 12:35:10AM +0200, Marcin Slusarz wrote: >> >> --- >>  src/gallium/drivers/nouveau/nouveau_screen.c |   14 -- >>  src/gallium/drivers/nouveau/nouveau_screen.h |    2 -- >>  2 files

Re: [Mesa-dev] [PATCH] st/xorg: fix crash triggered by rendercheck -t composite -f a8r8g8b8 -o Src, Saturate

2011-06-19 Thread Marek Olšák
Pushed, thanks. Marek On Mon, Jun 20, 2011 at 12:02 AM, Marcin Slusarz wrote: > On Mon, May 16, 2011 at 09:52:47PM +0200, Marcin Slusarz wrote: >> samplers[0] may remain uninititialized if src picture/pixmap is null >> --- >>  src/gallium/state_trackers/xorg/xorg_composite.c |    2 +- >>  1 file

Re: [Mesa-dev] [PATCH 4/4] intel: Allocate s8_z24 non-texture renderbuffers when using separate stencil

2011-06-19 Thread Chad Versace
On Sun, 19 Jun 2011 10:15:49 -0700, Eric Anholt wrote: Non-text part: multipart/signed > On Fri, 17 Jun 2011 15:43:43 -0700, Chad Versace wrote: > > Now all infrastructure is in place to support s8_z24 non-texture > > renderbuffers for gen7. > > > > Signed-off-by: Chad Versace > > --- > > src/

Re: [Mesa-dev] [PATCH 3/4] intel: Unobfuscate intel_alloc_renderbuffer_storage

2011-06-19 Thread Chad Versace
On Sun, 19 Jun 2011 02:56:51 -0700, Kenneth Graunke wrote: > On 06/17/2011 03:43 PM, Chad Versace wrote: > > Hiz buffer allocation can only occur if the 'else' branch has been taken, > > so move the hiz buffer allocation into the 'else' branch. > > > > Having the hiz buffer allocation dangling ou

Re: [Mesa-dev] [PATCH v3 2/2] xorg/nouveau: blacklist all pre NV30 cards

2011-06-19 Thread Marcin Slusarz
On Sun, Jun 05, 2011 at 10:31:59PM +0200, Marcin Slusarz wrote: > From: Marcin Slusarz > Subject: [PATCH] xorg/nouveau: blacklist all pre NV30 cards > > Bail out early in probe, so other driver (xf86-video-nouveau) can take control > of the card. Doing it in screen_create would be too late. > ---

Re: [Mesa-dev] [PATCH 1/2] xorg/nouveau: rename to nouveau2

2011-06-19 Thread Marcin Slusarz
On Mon, May 16, 2011 at 09:50:29PM +0200, Marcin Slusarz wrote: > > --- > src/gallium/targets/xorg-nouveau/Makefile |2 +- > src/gallium/targets/xorg-nouveau/nouveau_xorg.c | 14 +++--- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/src/gallium/targets/xo

Re: [Mesa-dev] [PATCH] st/xorg: initialize drm_mode.type

2011-06-19 Thread Marcin Slusarz
On Sun, Jun 05, 2011 at 09:05:24PM +0200, Marcin Slusarz wrote: > it's uninitialized, but used by kernel (drm_mode_setcrtc -> > drm_mode_set_crtcinfo) > --- > src/gallium/state_trackers/xorg/xorg_crtc.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/sta

Re: [Mesa-dev] [PATCH] st/xorg: add GALLIUM_AUXILIARIES to target dependencies

2011-06-19 Thread Marcin Slusarz
On Sun, Jun 05, 2011 at 09:04:49PM +0200, Marcin Slusarz wrote: > Without it changes to GALLIUM_AUXILIARIES don't induce target rebuild > --- > src/gallium/targets/Makefile.xorg |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/gallium/targets/Makefile.xorg > b/s

Re: [Mesa-dev] [PATCH] gallium/nouveau: remove unused nouveau_screen_bo_user

2011-06-19 Thread Marcin Slusarz
On Mon, May 09, 2011 at 12:35:10AM +0200, Marcin Slusarz wrote: > > --- > src/gallium/drivers/nouveau/nouveau_screen.c | 14 -- > src/gallium/drivers/nouveau/nouveau_screen.h |2 -- > 2 files changed, 0 insertions(+), 16 deletions(-) > > diff --git a/src/gallium/drivers/nouveau

Re: [Mesa-dev] [PATCH] st/xorg: fix crash triggered by rendercheck -t composite -f a8r8g8b8 -o Src, Saturate

2011-06-19 Thread Marcin Slusarz
On Mon, May 16, 2011 at 09:52:47PM +0200, Marcin Slusarz wrote: > samplers[0] may remain uninititialized if src picture/pixmap is null > --- > src/gallium/state_trackers/xorg/xorg_composite.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/gallium/state_trackers

Re: [Mesa-dev] [PATCH] st/xorg: fix crash triggered by rendercheck -t blend -f a8r8g8b8 -o Clear

2011-06-19 Thread Marcin Slusarz
On Mon, May 16, 2011 at 09:52:05PM +0200, Marcin Slusarz wrote: > > --- > src/gallium/state_trackers/xorg/xorg_composite.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/gallium/state_trackers/xorg/xorg_composite.c > b/src/gallium/state_trackers/xorg/xorg_c

Re: [Mesa-dev] [PATCH 0/6] glsl: Add support for switch statements

2011-06-19 Thread Dan McCabe
On 06/19/2011 02:21 PM, Eric Anholt wrote: On Sat, 18 Jun 2011 09:29:32 +0200, Keith Packard wrote: On Fri, 17 Jun 2011 17:43:14 -0700, Dan McCabe wrote: break; // implicit exit from loop at end of switch } while (true); Seems like this could just be } whil

Re: [Mesa-dev] [PATCH 0/6] glsl: Add support for switch statements

2011-06-19 Thread Eric Anholt
On Sat, 18 Jun 2011 09:29:32 +0200, Keith Packard wrote: > On Fri, 17 Jun 2011 17:43:14 -0700, Dan McCabe wrote: > > > break; // implicit exit from loop at end of switch > > } while (true); > > Seems like this could just be > > } while (false); > > as I

Re: [Mesa-dev] [PATCH 4/4] intel: Allocate s8_z24 non-texture renderbuffers when using separate stencil

2011-06-19 Thread Eric Anholt
On Fri, 17 Jun 2011 15:43:43 -0700, Chad Versace wrote: > Now all infrastructure is in place to support s8_z24 non-texture > renderbuffers for gen7. > > Signed-off-by: Chad Versace > --- > src/mesa/drivers/dri/intel/intel_fbo.c | 84 ++- > 1 files changed, 81 inser

[Mesa-dev] Error building on Windows with SCons

2011-06-19 Thread Campbell Barton
Hi There, Im trying to build Mesa so we can distribute it with Blender3D on Windows (we already do this on Linux). But I have have been unsable to build mesa 7.10.3 (Latest MingW XP, tested python 2.5, 2.7) Simply running 'm;\python25\Scripts\scons.bat' I always get this error: # --- snip scons:

Re: [Mesa-dev] [PATCH 3/4] intel: Unobfuscate intel_alloc_renderbuffer_storage

2011-06-19 Thread Kenneth Graunke
On 06/17/2011 03:43 PM, Chad Versace wrote: Hiz buffer allocation can only occur if the 'else' branch has been taken, so move the hiz buffer allocation into the 'else' branch. Having the hiz buffer allocation dangling outside of the if-tree was just damn confusing. Signed-off-by: Chad Versace -

Re: [Mesa-dev] [PATCH] glsl: add support for textureSize

2011-06-19 Thread Kenneth Graunke
On 06/19/2011 01:24 AM, Dave Airlie wrote: From: Dave Airlie I just used an opcode I called txs, TGSI has a RESINFO opcode this corresponds to. Signed-off-by: Dave Airlie Ah, sorry...I'd actually done all of this a few months ago, but got snagged trying to make ir_to_mesa not die a horrible

Re: [Mesa-dev] [PATCH] glsl-1.30: add compiler test for textureSize.

2011-06-19 Thread Dave Airlie
On Sun, Jun 19, 2011 at 6:23 PM, Dave Airlie wrote: > From: Dave Airlie Oops sent this by mistake to this list, its on piglit list. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] glsl: add support for textureSize

2011-06-19 Thread Dave Airlie
From: Dave Airlie I just used an opcode I called txs, TGSI has a RESINFO opcode this corresponds to. Signed-off-by: Dave Airlie --- src/glsl/builtins/profiles/130.frag |2 - src/glsl/builtins/tools/texture_builtins.py | 59 +- src/glsl/ir.cpp

[Mesa-dev] [PATCH] glsl-1.30: add compiler test for textureSize.

2011-06-19 Thread Dave Airlie
From: Dave Airlie Just does a basic test to check the compiler can handle textureSize from GLSL 1.30. Signed-off-by: Dave Airlie --- .../glsl-1.30/compiler/texture/textureSize.frag| 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 tests/spec/glsl-1