Lines Matching refs:swImg
92 struct swrast_texture_image *swImg = swrast_texture_image(texImage);
103 assert(!swImg->Buffer);
104 swImg->Buffer = align_malloc(bytesPerSlice * slices, 512);
105 if (!swImg->Buffer)
109 swImg->RowStride = _mesa_format_row_stride(texImage->TexFormat,
113 swImg->ImageSlices[i] = swImg->Buffer + bytesPerSlice * i;
130 struct swrast_texture_image *swImg = swrast_texture_image(texImage);
135 swImg->_IsPowerOfTwo = GL_TRUE;
137 swImg->_IsPowerOfTwo = GL_FALSE;
142 swImg->WidthScale = 1.0;
143 swImg->HeightScale = 1.0;
144 swImg->DepthScale = 1.0;
147 swImg->WidthScale = (GLfloat) texImage->Width;
148 swImg->HeightScale = (GLfloat) texImage->Height;
149 swImg->DepthScale = (GLfloat) texImage->Depth;
152 assert(!swImg->ImageSlices);
153 swImg->ImageSlices = calloc(texture_slices(texImage), sizeof(void *));
154 if (!swImg->ImageSlices)