[Mesa-dev] [PATCH] mesa: Convert _mesa_generate_mipmap to MapTexImage()-based access.

Brian Paul brianp at vmware.com
Wed Sep 28 14:50:15 PDT 2011


On 09/27/2011 01:27 PM, Eric Anholt wrote:
> From: Brian Paul<brianp at vmware.com>
>
> Now that we can zero-copy generate the mipmaps into brand new
> glTexImage()-generated storage using MapTextureImage(), we no longer
> need to allocate image->Data in mipmap generate.  This requires
> deleting the drivers' old overrides of the miptree tracking after
> calling _mesa_generate_mipmap at the same time, or the drivers
> promptly lose our newly-generated data.
> ---
>   src/mesa/drivers/dri/intel/intel_tex.c         |   30 +---
>   src/mesa/drivers/dri/nouveau/nouveau_texture.c |   10 -
>   src/mesa/drivers/dri/radeon/radeon_texture.c   |   50 +-----
>   src/mesa/main/mipmap.c                         |  270 +++++++++++++-----------
>   src/mesa/main/mipmap.h                         |    4 +-
>   src/mesa/state_tracker/st_gen_mipmap.c         |  205 +------------------
>   6 files changed, 153 insertions(+), 416 deletions(-)

There's a failure using gallium drivers because we haven't added a 
st/mesa AllocTextureImageBuffer() driver hook yet.  I have a patch for 
that but I need a little more time to test.  I'll try to do that in 
the next day or so.

-Brian


More information about the mesa-dev mailing list