Home
last modified time | relevance | path

Searched refs:swImg (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/mesa/swrast/
Ds_texture.c90 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()
[all …]
Ds_texfilter.c166 const struct swrast_texture_image *swImg = swrast_texture_image_const(img); in linear_texel_locations() local
171 if (swImg->_IsPowerOfTwo) { in linear_texel_locations()
295 const struct swrast_texture_image *swImg = swrast_texture_image_const(img); in nearest_texel_location() local
303 if (swImg->_IsPowerOfTwo) in nearest_texel_location()
855 const struct swrast_texture_image *swImg = swrast_texture_image_const(img); in sample_1d_nearest() local
866 swImg->FetchTexel(swImg, i, 0, 0, rgba); in sample_1d_nearest()
880 const struct swrast_texture_image *swImg = swrast_texture_image_const(img); in sample_1d_linear() local
903 swImg->FetchTexel(swImg, i0, 0, 0, t0); in sample_1d_linear()
909 swImg->FetchTexel(swImg, i1, 0, 0, t1); in sample_1d_linear()
1122 const struct swrast_texture_image *swImg = swrast_texture_image_const(img); in sample_2d_nearest() local
[all …]
Ds_triangle.c132 const struct swrast_texture_image *swImg = \
137 const GLubyte *texture = (const GLubyte *) swImg->ImageSlices[0]; \
190 const struct swrast_texture_image *swImg = \
195 const GLubyte *texture = (const GLubyte *) swImg->ImageSlices[0]; \
547 const struct swrast_texture_image *swImg = \
551 info.texture = (const GLchan *) swImg->ImageSlices[0]; \
816 const struct swrast_texture_image *swImg = \
818 info.texture = (const GLchan *) swImg->ImageSlices[0]; \
1052 const struct swrast_texture_image *swImg; in _swrast_choose_triangle() local
1064 swImg = swrast_texture_image_const(texImg); in _swrast_choose_triangle()
[all …]
Ds_fragprog.c121 const struct swrast_texture_image *swImg = in fetch_texel_deriv() local
124 const GLfloat texW = (GLfloat) swImg->WidthScale; in fetch_texel_deriv()
125 const GLfloat texH = (GLfloat) swImg->HeightScale; in fetch_texel_deriv()
Ds_span.c502 const struct swrast_texture_image *swImg = in interpolate_texcoords() local
515 texW = swImg->WidthScale; in interpolate_texcoords()
516 texH = swImg->HeightScale; in interpolate_texcoords()