Lines Matching refs:swImg
69 struct swrast_texture_image *swImg = swrast_texture_image(texImage); in _swrast_alloc_texture_image_buffer() local
74 assert(!swImg->Buffer); in _swrast_alloc_texture_image_buffer()
75 swImg->Buffer = _mesa_align_malloc(bytes, 512); in _swrast_alloc_texture_image_buffer()
76 if (!swImg->Buffer) in _swrast_alloc_texture_image_buffer()
80 swImg->RowStride = texImage->Width; in _swrast_alloc_texture_image_buffer()
86 swImg->ImageOffsets = (GLuint *) malloc(texImage->Depth * sizeof(GLuint)); in _swrast_alloc_texture_image_buffer()
87 if (!swImg->ImageOffsets) in _swrast_alloc_texture_image_buffer()
91 swImg->ImageOffsets[i] = i * texImage->Width * texImage->Height; in _swrast_alloc_texture_image_buffer()
110 struct swrast_texture_image *swImg = swrast_texture_image(texImage); in _swrast_init_texture_image() local
115 swImg->_IsPowerOfTwo = GL_TRUE; in _swrast_init_texture_image()
117 swImg->_IsPowerOfTwo = GL_FALSE; in _swrast_init_texture_image()
122 swImg->WidthScale = 1.0; in _swrast_init_texture_image()
123 swImg->HeightScale = 1.0; in _swrast_init_texture_image()
124 swImg->DepthScale = 1.0; in _swrast_init_texture_image()
127 swImg->WidthScale = (GLfloat) texImage->Width; in _swrast_init_texture_image()
128 swImg->HeightScale = (GLfloat) texImage->Height; in _swrast_init_texture_image()
129 swImg->DepthScale = (GLfloat) texImage->Depth; in _swrast_init_texture_image()