Lines Matching defs:img
271 struct gl_texture_image *img = texObj->Image[face][level];
272 if (img) {
278 buffer = malloc(img->Width * img->Height
279 * img->Depth * 4);
285 0, 0, 0, img->Width, img->Height, img->Depth,
286 GL_RGBA, GL_UNSIGNED_BYTE, buffer, img);
292 write_ppm(s, buffer, img->Width, img->Height, 4, 0, 1, 2, GL_FALSE);
606 _mesa_print_texture(struct gl_context *ctx, struct gl_texture_image *img)
613 st_MapTextureImage(ctx, img, slice,
614 0, 0, img->Width, img->Height, GL_MAP_READ_BIT,
622 switch (img->TexFormat) {
644 for (i = 0; i < img->Height; i++) {
645 for (j = 0; j < img->Width; j++) {
654 data += (srcRowStride - img->Width) * c;
656 /* XXX use img->ImageStride here */
662 st_UnmapTextureImage(ctx, img, slice);