[Mesa-dev] Intel TexImage cleanup

Eric Anholt eric at anholt.net
Thu Sep 22 14:27:48 PDT 2011


On Thu, 22 Sep 2011 14:37:24 -0600, Brian Paul <brianp at vmware.com> wrote:
> On 09/22/2011 01:34 PM, Eric Anholt wrote:
> > Only 75 lines of code deletion to offer here.
> >
> > My goal was to delete the whole CPU upload part of intelTexImage by
> > moving the mt setup to AllocTextureImageBuffer and using the
> > MapTextureImage-based Mesa core.  However, because we don't have all
> > of core converted to MapTextureImage, there are places that call
> > AllocTextureImageBuffer then immediately expect ->Data to be present,
> > which we wouldn't be able to provide.
> 
> You're talking about in mipmap.c, for example, right?  After the 
> AllocTextureImageBuffer() call we should be calling 
> ctx->Driver.MapTextureImage() to map the src/dst mipmap levels.
> 
> The core/fallback GetTexImage() code also needs to call 
> ctx->Driver.Map/UnmapTextureImage().  And swrast.  It's on my to-do 
> list but I might not get to it for a while.
> 
> Eventually, there should be no use of gl_texture_image->Data anywhere 
> in core Mesa or swrast.  It should really be a driver-private concept.

Yeah, I was honestly surprised because I thought we'd landed all of
those changes already :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110922/4b5cb1fc/attachment-0001.pgp>


More information about the mesa-dev mailing list