Lines Matching refs:swImg
90 struct swrast_texture_image *swImg = swrast_texture_image(texImage); in _swrast_alloc_texture_image_buffer() local
101 assert(!swImg->Buffer); in _swrast_alloc_texture_image_buffer()
102 swImg->Buffer = _mesa_align_malloc(bytesPerSlice * slices, 512); in _swrast_alloc_texture_image_buffer()
103 if (!swImg->Buffer) in _swrast_alloc_texture_image_buffer()
107 swImg->RowStride = _mesa_format_row_stride(texImage->TexFormat, in _swrast_alloc_texture_image_buffer()
111 swImg->ImageSlices[i] = swImg->Buffer + bytesPerSlice * i; in _swrast_alloc_texture_image_buffer()
128 struct swrast_texture_image *swImg = swrast_texture_image(texImage); in _swrast_init_texture_image() local
133 swImg->_IsPowerOfTwo = GL_TRUE; in _swrast_init_texture_image()
135 swImg->_IsPowerOfTwo = GL_FALSE; in _swrast_init_texture_image()
140 swImg->WidthScale = 1.0; in _swrast_init_texture_image()
141 swImg->HeightScale = 1.0; in _swrast_init_texture_image()
142 swImg->DepthScale = 1.0; in _swrast_init_texture_image()
145 swImg->WidthScale = (GLfloat) texImage->Width; in _swrast_init_texture_image()
146 swImg->HeightScale = (GLfloat) texImage->Height; in _swrast_init_texture_image()
147 swImg->DepthScale = (GLfloat) texImage->Depth; in _swrast_init_texture_image()
150 assert(!swImg->ImageSlices); in _swrast_init_texture_image()
151 swImg->ImageSlices = calloc(texture_slices(texImage), sizeof(void *)); in _swrast_init_texture_image()
152 if (!swImg->ImageSlices) in _swrast_init_texture_image()