Lines Matching refs:swImg
92 struct swrast_texture_image *swImg = swrast_texture_image(texImage); in _swrast_alloc_texture_image_buffer() local
103 assert(!swImg->Buffer); in _swrast_alloc_texture_image_buffer()
104 swImg->Buffer = align_malloc(bytesPerSlice * slices, 512); in _swrast_alloc_texture_image_buffer()
105 if (!swImg->Buffer) in _swrast_alloc_texture_image_buffer()
109 swImg->RowStride = _mesa_format_row_stride(texImage->TexFormat, in _swrast_alloc_texture_image_buffer()
113 swImg->ImageSlices[i] = swImg->Buffer + bytesPerSlice * i; in _swrast_alloc_texture_image_buffer()
130 struct swrast_texture_image *swImg = swrast_texture_image(texImage); in _swrast_init_texture_image() local
135 swImg->_IsPowerOfTwo = GL_TRUE; in _swrast_init_texture_image()
137 swImg->_IsPowerOfTwo = GL_FALSE; in _swrast_init_texture_image()
142 swImg->WidthScale = 1.0; in _swrast_init_texture_image()
143 swImg->HeightScale = 1.0; in _swrast_init_texture_image()
144 swImg->DepthScale = 1.0; in _swrast_init_texture_image()
147 swImg->WidthScale = (GLfloat) texImage->Width; in _swrast_init_texture_image()
148 swImg->HeightScale = (GLfloat) texImage->Height; in _swrast_init_texture_image()
149 swImg->DepthScale = (GLfloat) texImage->Depth; in _swrast_init_texture_image()
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()