Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-04 Thread Younes Manton
2011/6/4 Jose Fonseca : > I think we need to have a proper review round of the gallium interfaces, so > that we have an interface everybody feels that we can support going forward, > which did not happen last round. > > That said, I don't think much attention has been given to this branch outside

Re: [Mesa-dev] [PATCH] faster util_next_power_of_two() function

2011-06-04 Thread Benjamin Bellec
Le 05/06/2011 03:05, Matt Turner a écrit : > On Sat, Jun 4, 2011 at 7:14 PM, Benjamin Bellec wrote: >> Le 03/06/2011 06:09, Matt Turner a écrit : >>> Also, if you want to check if the value is already a power-of-two, >>> instead of a case statement for every POT (including 0), just do the >>> stan

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-04 Thread Jose Fonseca
I think we need to have a proper review round of the gallium interfaces, so that we have an interface everybody feels that we can support going forward, which did not happen last round. That said, I don't think much attention has been given to this branch outside from those working on it. So th

Re: [Mesa-dev] [PATCH] faster util_next_power_of_two() function

2011-06-04 Thread Matt Turner
On Sat, Jun 4, 2011 at 7:14 PM, Benjamin Bellec wrote: > Le 03/06/2011 06:09, Matt Turner a écrit : >> Also, if you want to check if the value is already a power-of-two, >> instead of a case statement for every POT (including 0), just do the >> standard is-power-of-two check: >> >> (x & (x - 1)) =

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-04 Thread Matt Turner
2011/6/4 Christian König : > Am Samstag, den 04.06.2011, 15:20 -0400 schrieb Matt Turner: >> Is there a reason that this can't be merged to master? > Since float buffer support was merged to master I can't see any more > obstacles. Just gone over the branch one more time and fixed some > problem cr

[Mesa-dev] [PATCH 10/10] intel: Request DRI2 buffers for separate stencil and hiz

2011-06-04 Thread Chad Versace
When it is sensible to do so, 1) intelCreateBuffer() now attaches separate depth and stencil buffers to the framebuffer it creates. 2) intel_update_renderbuffers() requests for the framebuffer a separate stencil buffer (DRI2BufferStencil). The criteria for "sensible" i

[Mesa-dev] [PATCH 09/10] intel: Add assertions to intelCreateBuffer()

2011-06-04 Thread Chad Versace
Assert that the GLX config has an expected depth/stencil bit combination: one of d24/s8, d16/s0, d0/s0. These are the only depth/stencil configurations that we advertise. Remove the check for software stencil, because given the assertions' constraints the check always fails. CC: Eric Anholt CC:

[Mesa-dev] [PATCH 08/10] intel: Refactor intel_update_renderbuffers()

2011-06-04 Thread Chad Versace
Extract the code that queries DRI2 to obtain the DRIdrawable's buffers into intel_query_dri2_buffers_no_separate_stencil(). Extract the code that assigns the DRI buffer's DRM region to the corresponding renderbuffer into intel_process_dri2_buffer_no_separate_stencil(). Rationale - The nex

[Mesa-dev] [PATCH 07/10] intel: Add function intel_renderbuffer_set_hiz_region()

2011-06-04 Thread Chad Versace
It's the analog of intel_renderbuffer_set_region(), but for the hiz region of course. CC: Eric Anholt CC: Ian Romanick CC: Kenneth Graunke CC: Kristian Høgsberg Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_fbo.c | 12 src/mesa/drivers/dri/intel/intel_fbo.h

[Mesa-dev] [PATCH 06/10] intel/intel_context.c: Remove unused functions

2011-06-04 Thread Chad Versace
Remove functions intel_override_hiz() and intel_override_separate_stencil(). They are now located in intel_screen.c. CC: Eric Anholt CC: Ian Romanick CC: Kenneth Graunke CC: Kristian Høgsberg Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_context.c | 48 --

[Mesa-dev] [PATCH 05/10] intel: Add flags to intel_screen for hiz and separate stencil

2011-06-04 Thread Chad Versace
Add the fields below to intel_screen. The expression in parens is the value to which intelInitScreen2() currently sets the field. GLboolean hw_has_separate_stencil (true iff gen >= 7) GLboolean hw_must_use_separate_stencil (true iff gen >= 7) GLboolean hw_has_hiz

[Mesa-dev] [PATCH 04/10] intel: Define enum intel_dri2_has_hiz

2011-06-04 Thread Chad Versace
... which indicates if the X driver supports DRI2BufferHiz and DRI2BufferStencil. I'm placing this in its own commit due to the large comment block. CC: Eric Anholt CC: Ian Romanick CC: Kenneth Graunke CC: Kristian Høgsberg Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_sc

[Mesa-dev] [PATCH 03/10] dri2: Add token for DRI2BufferHiz

2011-06-04 Thread Chad Versace
CC: Eric Anholt CC: Ian Romanick CC: Kenneth Graunke CC: Kristian Høgsberg Signed-off-by: Chad Versace --- include/GL/internal/dri_interface.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h in

[Mesa-dev] [PATCH 02/10] dri: Add support for DRI2BufferStencil and DRI2BufferHiz

2011-06-04 Thread Chad Versace
Before this commit, if a client were to request a stencil or hiz buffer, then I830DRI2CreateBuffer() allocated and returned an X-tiled buffer by accident. (DRI2BufferStencil and DRI2BufferHiz were unintentionally caught by the default case of a switch statement.) Now, I830DRI2CreateBuffer() correc

[Mesa-dev] [PATCH 01/10] Add attachment token DRI2BufferHiz

2011-06-04 Thread Chad Versace
... and bump version to 2.6. CC: Eric Anholt CC: Ian Romanick CC: Kenneth Graunke CC: Kristian Høgsberg Signed-off-by: Chad Versace --- configure.ac |2 +- dri2proto.txt |6 +- dri2tokens.h |1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/

[Mesa-dev] [PATCH 0/10] i965: Implement hiz and separate stencil for window framebuffer

2011-06-04 Thread Chad Versace
Patch 01: dri2proto Patch 02: xf86-video-intel Patch 03-10: mesa I'm aware that this patch series is painful to review. Thank you in advance for your reviewed-by's. There is a related patch series on the intel-gfx list that adds the necessary functionality to xf86-video-intel. See the thread with

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-04 Thread Christian König
Am Samstag, den 04.06.2011, 15:20 -0400 schrieb Matt Turner: > Is there a reason that this can't be merged to master? Since float buffer support was merged to master I can't see any more obstacles. Just gone over the branch one more time and fixed some problem created by merging. > It seems like t

Re: [Mesa-dev] [PATCH 2/2] intel: Define span functions for S8 renderbuffers

2011-06-04 Thread Chad Versace
On 06/03/2011 03:36 PM, Kenneth Graunke wrote: > On 06/03/2011 12:47 PM, Chad Versace wrote: >> Since the stencil buffer is interleaved, the generic Mesa renderbuffer >> accessors do not suffice. Custom span functions are necessary. >> >> Signed-off-by: Chad Versace > > I know you had done this wi

Re: [Mesa-dev] [PATCH 1/2] i965/brw: Emit state for hiz and separate stencil buffers

2011-06-04 Thread Chad Versace
On 06/03/2011 03:33 PM, Kenneth Graunke wrote: > On 06/03/2011 12:47 PM, Chad Versace wrote: >> When emitting 3DSTATE_DEPTH_BUFFER, also emit 3DSTATE_HIER_DEPTH_BUFFER if >> there is a hiz buffer. Ditto for 3DSTATE_STENCIL_BUFFER and a separate >> stencil buffer. >> >> Signed-off-by: Chad Versace >

Re: [Mesa-dev] [PATCH] faster util_next_power_of_two() function

2011-06-04 Thread Benjamin Bellec
Le 03/06/2011 01:40, Brian Paul a écrit : > I'd like to avoid the warning if at all possible. If you replace (val >>> 32) with (val >> (sizeof(unsigned) * 4)) does that silence it? Yes it fix, but as Matt Turner said, it's not necessary to check this. Btw we don't check that in the other function

[Mesa-dev] [Bug 37862] Mesa 7.11-devel implementation error: _mesa_texstore_null() is called

2011-06-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37862 --- Comment #5 from Marek Olšák 2011-06-04 12:21:06 PDT --- Use autogen.sh with --enable-gallium-r600, then type make. These: lib/libGL.so* lib/gallium/r600_dri.so are the files you should use. -- Configure bugmail: https://bugs.freedesktop.

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-04 Thread Matt Turner
2011/4/26 Christian König : > Hi Andy and everybody on the list, > > sorry for the late reply, but i've been on vacation the last couple of > days. > > Am Dienstag, den 12.04.2011, 21:38 +0100 schrieb Andy Furniss: >> In addition to the quit crash I notice that resizing will also crash. > Should be

Re: [Mesa-dev] [PATCH 1/4] Gallium: fix indentation in u_blitter.c

2011-06-04 Thread Stéphane Marchesin
2011/6/4 Brian Paul : > 2011/6/3 Stéphane Marchesin : >> --- >>  src/gallium/auxiliary/util/u_blitter.c |    2 +- >>  1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/src/gallium/auxiliary/util/u_blitter.c >> b/src/gallium/auxiliary/util/u_blitter.c >> index a4c3990..528f344 100

[Mesa-dev] [Bug 37862] Mesa 7.11-devel implementation error: _mesa_texstore_null() is called

2011-06-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37862 --- Comment #4 from Pepi 2011-06-04 08:43:09 PDT --- Thanks Marek, I downloaded it from: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6491e9593d5cbc5644eb02593a2f562447efdcbb Extract it. Make it with: "make linux-x86-64". But then...what?

Re: [Mesa-dev] [PATCH 1/4] Gallium: fix indentation in u_blitter.c

2011-06-04 Thread Brian Paul
2011/6/3 Stéphane Marchesin : > --- >  src/gallium/auxiliary/util/u_blitter.c |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/gallium/auxiliary/util/u_blitter.c > b/src/gallium/auxiliary/util/u_blitter.c > index a4c3990..528f344 100644 > --- a/src/gallium/auxilia

Re: [Mesa-dev] [PATCH 1/4] Gallium: fix indentation in u_blitter.c

2011-06-04 Thread Marek Olšák
Looks good. Marek 2011/6/4 Stéphane Marchesin : > --- >  src/gallium/auxiliary/util/u_blitter.c |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/gallium/auxiliary/util/u_blitter.c > b/src/gallium/auxiliary/util/u_blitter.c > index a4c3990..528f344 100644 > --- a