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.c131 const struct swrast_texture_image *swImg = \
136 const GLubyte *texture = (const GLubyte *) swImg->ImageSlices[0]; \
189 const struct swrast_texture_image *swImg = \
194 const GLubyte *texture = (const GLubyte *) swImg->ImageSlices[0]; \
546 const struct swrast_texture_image *swImg = \
550 info.texture = (const GLchan *) swImg->ImageSlices[0]; \
815 const struct swrast_texture_image *swImg = \
817 info.texture = (const GLchan *) swImg->ImageSlices[0]; \
1051 const struct swrast_texture_image *swImg; in _swrast_choose_triangle() local
1063 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.c500 const struct swrast_texture_image *swImg = in interpolate_texcoords() local
513 texW = swImg->WidthScale; in interpolate_texcoords()
514 texH = swImg->HeightScale; in interpolate_texcoords()