[Mesa-dev] [PATCH 0/5] Add a meta-based PBO texture upload path

Jason Ekstrand jason at jlekstrand.net
Thu Jan 8 16:47:12 PST 2015


This little series adds a PBO texture upload path based on meta.  We do so
by adding a little driver hook for creating a 2D or 2D array texture from a
gl_buffer_object and then using this together with BlitFramebuffers to do
the upload.  Since Intel hardware can take basically any buffer and treat
it as a linear texture, this works fairly well.

This series requires the texture upload modifications posted by Samuel and
Iago

Git branch for review or merging:
http://cgit.freedesktop.org/~jekstrand/mesa/log/?h=review/meta-pbo-upload

Jason Ekstrand (5):
  i965/mipmap_tree: Add a depth parameter to create_for_bo
  mesa/dd: Add a function for creating a texture from a buffer object
  i965: Implement SetTextureStorageForBufferObject
  meta: Add a BlitFramebuffers-based implementation of TexSubImage
  i965: Use _mesa_meta_TexSubImage for PBO's and cases where the texture
    is busy

 src/mesa/Makefile.sources                      |   1 +
 src/mesa/drivers/common/meta.h                 |   9 ++
 src/mesa/drivers/common/meta_tex_subimage.c    | 211 +++++++++++++++++++++++++
 src/mesa/drivers/dri/i965/intel_fbo.c          |   1 +
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c  |   9 +-
 src/mesa/drivers/dri/i965/intel_mipmap_tree.h  |   1 +
 src/mesa/drivers/dri/i965/intel_pixel_draw.c   |   2 +-
 src/mesa/drivers/dri/i965/intel_pixel_read.c   |   2 +-
 src/mesa/drivers/dri/i965/intel_tex.c          |  44 ++++++
 src/mesa/drivers/dri/i965/intel_tex_image.c    |  18 ++-
 src/mesa/drivers/dri/i965/intel_tex_subimage.c |  10 ++
 src/mesa/main/dd.h                             |  14 ++
 12 files changed, 313 insertions(+), 9 deletions(-)
 create mode 100644 src/mesa/drivers/common/meta_tex_subimage.c

-- 
2.2.0



More information about the mesa-dev mailing list