Lines Matching refs:ImageSlices
113 swImg->ImageSlices[i] = swImg->Buffer + bytesPerSlice * i; in _swrast_alloc_texture_image_buffer()
152 assert(!swImg->ImageSlices); in _swrast_init_texture_image()
153 swImg->ImageSlices = calloc(texture_slices(texImage), sizeof(void *)); in _swrast_init_texture_image()
154 if (!swImg->ImageSlices) in _swrast_init_texture_image()
173 free(swImage->ImageSlices); in _swrast_free_texture_image_buffer()
174 swImage->ImageSlices = NULL; in _swrast_free_texture_image_buffer()
244 assert(swImage->Buffer == swImage->ImageSlices[0]); in _swrast_map_teximage()
246 map = swImage->ImageSlices[slice]; in _swrast_map_teximage()
283 assert(swImage->ImageSlices[0] == swImage->Buffer); in _swrast_map_texture()
287 if (!swImage->ImageSlices) { in _swrast_map_texture()
288 swImage->ImageSlices = in _swrast_map_texture()
290 if (!swImage->ImageSlices) in _swrast_map_texture()
300 if (swImage->ImageSlices[i]) in _swrast_map_texture()
309 swImage->ImageSlices[i] = map; in _swrast_map_texture()
342 if (!swImage->ImageSlices) in _swrast_unmap_texture()
348 if (swImage->ImageSlices[i]) { in _swrast_unmap_texture()
350 swImage->ImageSlices[i] = NULL; in _swrast_unmap_texture()