On Mon, 10 Oct 2011 20:27:44 -0600, Brian Paul <brian.e.p...@gmail.com> wrote: > From: Brian Paul <bri...@vmware.com> > > Only swrast and the drivers that fall back to swrast need these fields now. > This removes the last of the fields related to software rendering from > gl_texture_image.
> + /* Allocate the swrast_texture_image::ImageOffsets array now */ > + switch (texobj->Target) { > + case GL_TEXTURE_3D: > + case GL_TEXTURE_2D_ARRAY: > + slices = image->Depth; > + break; > + case GL_TEXTURE_1D_ARRAY: > + slices = image->Height; > + break; > + default: > + slices = 1; > + } > + assert(!intel_image->base.ImageOffsets); > + intel_image->base.ImageOffsets = malloc(slices * sizeof(GLuint)); This (and the corresponding code in the other drivers) should live in swrast with the IsPowerOfTwo and *Scale setup I think.
pgp4sI1TMTTMl.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev