[Mesa-dev] [PATCH 0/6 v2] Private window system depth/stencil buffers

Chad Versace chad.versace at linux.intel.com
Mon Jul 16 15:02:33 PDT 2012


[chad]: I'm resubmitting Eric's series with fixes because he is on vacation
and I really want to see this committed soon. I have a pending series that
directly depends on this one. [/end]

We've been talking about doing this for a long time -- ignore the
piece of the GLX spec about clients sharing auxiliary buffers across
address spaces, and just allocate our own buffers.  Ever since HiZ we
think it's probably been broken, and it was probably just going to get
worse with window system MSAA buffers without reams of code for
communicating the state between processes.

This doesn't convert back buffers (we would need a swapbuffers and
copyregion interface that took a BO instead of an attachment point) or
the fake front buffer (I'd really like to bring that into the client,
but that requires new interfaces between the loader and driver so the
driver can implement glXWaitGL/X).

Passed piglit, and I resized a glxgears a bunch, but we know we're
weak on glx testing in piglit.

v2: [chad] In patch 2, I fixed a bug on gen < 6 and removed some additional
    dead code; see commit message for details. Then I rebased the series atop
    master. Other than that, the series is unchanged except for the addition
    of my reviewed-by.

Eric Anholt (6):
  intel: Add a function for creating a private window system buffer.
  intel: Convert to using private depth/stencil buffers (v2)
  intel: Remove dead intel_framebuffer_has_hiz().
  intel: Replace the non-getBuffersWithFormat compat path with an error
    message.
  intel: Drop other checks for old loader version.
  intel: Add a comment explaining why we early return on matching BO
    names.

 src/mesa/drivers/dri/intel/intel_context.c | 683 +++--------------------------
 src/mesa/drivers/dri/intel/intel_fbo.c     |  28 +-
 src/mesa/drivers/dri/intel/intel_fbo.h     |   7 +-
 src/mesa/drivers/dri/intel/intel_screen.c  |  25 +-
 src/mesa/drivers/dri/intel/intel_screen.h  |  58 ---
 5 files changed, 86 insertions(+), 715 deletions(-)

-- 
1.7.11.2



More information about the mesa-dev mailing list