Home
last modified time | relevance | path

Searched refs:GLushort (Results 1 – 25 of 101) sorted by relevance

12345

/external/mesa3d/src/mesa/main/
Dformat_pack.c455 GLushort *d = ((GLushort *) dst); in pack_ubyte_RGB565()
472 GLushort *d = ((GLushort *) dst); in pack_row_ubyte_RGB565()
482 GLushort *d = ((GLushort *) dst); in pack_row_float_RGB565()
499 GLushort *d = ((GLushort *) dst); in pack_ubyte_RGB565_REV()
506 GLushort *d = ((GLushort *) dst); in pack_float_RGB565_REV()
517 GLushort *d = ((GLushort *) dst); in pack_row_ubyte_RGB565_REV()
527 GLushort *d = ((GLushort *) dst); in pack_row_float_RGB565_REV()
544 GLushort *d = ((GLushort *) dst); in pack_ubyte_ARGB4444()
566 GLushort *d = ((GLushort *) dst); in pack_ubyte_ARGB4444_REV()
588 GLushort *d = ((GLushort *) dst); in pack_ubyte_RGBA5551()
[all …]
Dpack.c485 #define DST_TYPE GLushort
582 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
594 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
606 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
615 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
624 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
637 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
646 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
655 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
668 GLushort *dst = (GLushort *) dstAddr; in _mesa_pack_rgba_span_from_uints()
[all …]
Dformat_unpack.c223 const GLushort *s = ((const GLushort *) src); in unpack_RGB565()
236 const GLushort *s = ((const GLushort *) src); in unpack_RGB565_REV()
250 const GLushort *s = ((const GLushort *) src); in unpack_ARGB4444()
263 const GLushort *s = ((const GLushort *) src); in unpack_ARGB4444_REV()
276 const GLushort *s = ((const GLushort *) src); in unpack_RGBA5551()
289 const GLushort *s = ((const GLushort *) src); in unpack_ARGB1555()
302 const GLushort *s = ((const GLushort *) src); in unpack_ARGB1555_REV()
305 GLushort tmp = (s[i] << 8) | (s[i] >> 8); /* byteswap */ in unpack_ARGB1555_REV()
329 const GLushort *s = ((const GLushort *) src); in unpack_AL88()
342 const GLushort *s = ((const GLushort *) src); in unpack_AL88_REV()
[all …]
Dmipmap.c259 const GLushort(*rowA)[4] = (const GLushort(*)[4]) srcRowA; in do_row()
260 const GLushort(*rowB)[4] = (const GLushort(*)[4]) srcRowB; in do_row()
261 GLushort(*dst)[4] = (GLushort(*)[4]) dstRow; in do_row()
272 const GLushort(*rowA)[3] = (const GLushort(*)[3]) srcRowA; in do_row()
273 const GLushort(*rowB)[3] = (const GLushort(*)[3]) srcRowB; in do_row()
274 GLushort(*dst)[3] = (GLushort(*)[3]) dstRow; in do_row()
284 const GLushort(*rowA)[2] = (const GLushort(*)[2]) srcRowA; in do_row()
285 const GLushort(*rowB)[2] = (const GLushort(*)[2]) srcRowB; in do_row()
286 GLushort(*dst)[2] = (GLushort(*)[2]) dstRow; in do_row()
295 const GLushort *rowA = (const GLushort *) srcRowA; in do_row()
[all …]
Dapi_arrayelt.c350 VertexAttrib1NusvNV(GLuint index, const GLushort *v) in VertexAttrib1NusvNV()
356 VertexAttrib1usvNV(GLuint index, const GLushort *v) in VertexAttrib1usvNV()
362 VertexAttrib2NusvNV(GLuint index, const GLushort *v) in VertexAttrib2NusvNV()
369 VertexAttrib2usvNV(GLuint index, const GLushort *v) in VertexAttrib2usvNV()
376 VertexAttrib3NusvNV(GLuint index, const GLushort *v) in VertexAttrib3NusvNV()
384 VertexAttrib3usvNV(GLuint index, const GLushort *v) in VertexAttrib3usvNV()
391 VertexAttrib4NusvNV(GLuint index, const GLushort *v) in VertexAttrib4NusvNV()
400 VertexAttrib4usvNV(GLuint index, const GLushort *v) in VertexAttrib4usvNV()
870 VertexAttrib1NusvARB(GLuint index, const GLushort *v) in VertexAttrib1NusvARB()
876 VertexAttrib1usvARB(GLuint index, const GLushort *v) in VertexAttrib1usvARB()
[all …]
Dimage.c51 _mesa_swap2( GLushort *p, GLuint n ) in _mesa_swap2()
477 GLushort (*dst2)[4] = (GLushort (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
488 memcpy(dst, tempBuffer, count * 4 * sizeof(GLushort)); in _mesa_convert_colors()
509 const GLushort (*src2)[4] = (const GLushort (*)[4]) src; in _mesa_convert_colors()
524 const GLushort (*src2)[4] = (const GLushort (*)[4]) src; in _mesa_convert_colors()
554 GLushort (*dst2)[4] = (GLushort (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
566 memcpy(dst, tempBuffer, count * 4 * sizeof(GLushort)); in _mesa_convert_colors()
Dmacros.h126 #define BYTE_TO_USHORT(b) ((b) < 0 ? 0 : ((GLushort) (((b) * 65535) / 255)))
127 #define UBYTE_TO_USHORT(b) (((GLushort) (b) << 8) | (GLushort) (b))
128 #define SHORT_TO_USHORT(s) ((s) < 0 ? 0 : ((GLushort) (((s) * 65535 / 32767))))
129 #define INT_TO_USHORT(i) ((i) < 0 ? 0 : ((GLushort) ((i) >> 15)))
130 #define UINT_TO_USHORT(i) ((i) < 0 ? 0 : ((GLushort) ((i) >> 16)))
132 us = ( (GLushort) F_TO_I( CLAMP((f), 0.0F, 1.0F) * 65535.0F) )
134 us = ( (GLushort) F_TO_I( (f) * 65535.0F) )
Dpixel.c282 _mesa_PixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values ) in _mesa_PixelMapusv()
308 values = (const GLushort *) _mesa_map_pbo_source(ctx, &ctx->Unpack, values); in _mesa_PixelMapusv()
440 _mesa_GetnPixelMapusvARB( GLenum map, GLsizei bufSize, GLushort *values ) in _mesa_GetnPixelMapusvARB()
461 values = (GLushort *) _mesa_map_pbo_dest(ctx, &ctx->Pack, values); in _mesa_GetnPixelMapusvARB()
474 values[i] = (GLushort) CLAMP(ctx->PixelMaps.ItoI.Map[i], 0.0, 65535.); in _mesa_GetnPixelMapusvARB()
479 values[i] = (GLushort) CLAMP(ctx->PixelMaps.StoS.Map[i], 0.0, 65535.); in _mesa_GetnPixelMapusvARB()
493 _mesa_GetPixelMapusv( GLenum map, GLushort *values ) in _mesa_GetPixelMapusv()
Dglformats.c83 return sizeof(GLushort); in _mesa_sizeof_type()
119 return sizeof(GLushort); in _mesa_sizeof_packed_type()
142 return sizeof(GLushort); in _mesa_sizeof_packed_type()
257 return sizeof(GLushort); in _mesa_bytes_per_pixel()
266 return sizeof(GLushort); in _mesa_bytes_per_pixel()
281 return sizeof(GLushort); in _mesa_bytes_per_pixel()
Dapi_loopback.c129 loopback_Color3us_f( GLushort red, GLushort green, GLushort blue ) in loopback_Color3us_f()
178 loopback_Color3usv_f( const GLushort *v ) in loopback_Color3usv_f()
230 loopback_Color4us_f( GLushort red, GLushort green, GLushort blue, GLushort alpha ) in loopback_Color4us_f()
282 loopback_Color4usv_f( const GLushort *v) in loopback_Color4usv_f()
980 loopback_SecondaryColor3usEXT_f( GLushort red, GLushort green, GLushort blue ) in loopback_SecondaryColor3usEXT_f()
1033 loopback_SecondaryColor3usvEXT_f( const GLushort *v ) in loopback_SecondaryColor3usvEXT_f()
1394 loopback_VertexAttrib4usvARB(GLuint index, const GLushort * v) in loopback_VertexAttrib4usvARB()
1441 loopback_VertexAttrib4NusvARB(GLuint index, const GLushort * v) in loopback_VertexAttrib4NusvARB()
1492 loopback_VertexAttribI4usv(GLuint index, const GLushort *v) in loopback_VertexAttribI4usv()
/external/mesa3d/src/mesa/swrast/
Ds_texfetch_tmp.h94 const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1); in FETCH()
561 const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1); in FETCH()
562 const GLushort s = *src; in FETCH()
578 const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1); in FETCH()
579 const GLushort s = (*src >> 8) | (*src << 8); /* byte swap */ in FETCH()
595 const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1); in FETCH()
596 const GLushort s = *src; in FETCH()
612 const GLushort s = *TEXEL_ADDR(GLushort, texImage, i, j, k, 1); in FETCH()
627 const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1); in FETCH()
628 const GLushort s = *src; in FETCH()
[all …]
Ds_masking.c72 const GLushort rMask = ctx->Color.ColorMask[buf][RCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
73 const GLushort gMask = ctx->Color.ColorMask[buf][GCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
74 const GLushort bMask = ctx->Color.ColorMask[buf][BCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
75 const GLushort aMask = ctx->Color.ColorMask[buf][ACOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
76 const GLushort (*dst)[4] = (const GLushort (*)[4]) rbPixels; in _swrast_mask_rgba_span()
77 GLushort (*src)[4] = span->array->rgba16; in _swrast_mask_rgba_span()
Ds_blend.c88 bytes = 4 * n * sizeof(GLushort); in blend_noop()
169 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_transparency_ushort()
170 const GLushort (*dest)[4] = (const GLushort (*)[4]) dst; in blend_transparency_ushort()
192 GLushort r = (GLushort) ((rgba[i][RCOMP] - dest[i][RCOMP]) * tt + dest[i][RCOMP]); in blend_transparency_ushort()
193 GLushort g = (GLushort) ((rgba[i][GCOMP] - dest[i][GCOMP]) * tt + dest[i][GCOMP]); in blend_transparency_ushort()
194 GLushort b = (GLushort) ((rgba[i][BCOMP] - dest[i][BCOMP]) * tt + dest[i][BCOMP]); in blend_transparency_ushort()
195 GLushort a = (GLushort) ((rgba[i][ACOMP] - dest[i][ACOMP]) * tt + dest[i][ACOMP]); in blend_transparency_ushort()
274 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_add()
275 const GLushort (*dest)[4] = (const GLushort (*)[4]) dst; in blend_add()
333 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_min()
[all …]
Ds_fog.c172 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_fog_rgba_span()
173 FOG_LOOP(GLushort, LINEAR_FOG); in _swrast_fog_rgba_span()
191 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_fog_rgba_span()
192 FOG_LOOP(GLushort, EXP_FOG); in _swrast_fog_rgba_span()
210 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_fog_rgba_span()
211 FOG_LOOP(GLushort, EXP2_FOG); in _swrast_fog_rgba_span()
235 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_fog_rgba_span()
236 FOG_LOOP(GLushort, BLEND_FOG); in _swrast_fog_rgba_span()
Ds_alpha.c120 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_alpha_test()
121 GLushort ref; in _swrast_alpha_test()
144 GLushort ref; in _swrast_alpha_test()
Ds_chan.h55 typedef GLushort GLchan;
96 #define CHAN_TO_USHORT(c) ((GLushort) (CLAMP((c), 0.0f, 1.0f) * 65535.0))
Ds_zoom.c222 const GLushort (*rgba)[4] = (const GLushort (*)[4]) src; in zoom_span()
257 const GLushort (*rgb)[3] = (const GLushort (*)[3]) src; in zoom_span()
306 ((zoomed.array->ChanType == GL_UNSIGNED_SHORT) ? 4 * sizeof(GLushort) in zoom_span()
/external/autotest/client/deps/glbench/src/
Dutils.cc240 int CreateMesh(GLushort **indices, GLsizeiptr *size, in CreateMesh()
247 GLushort *iptr = *indices = new GLushort[2 * 3 * (width * height)]; in CreateMesh()
255 GLushort first = (j + j2) * (width + 1) + i; in CreateMesh()
256 GLushort second = first + 1; in CreateMesh()
257 GLushort third = first + (width + 1); in CreateMesh()
258 GLushort fourth = third + 1; in CreateMesh()
271 *size = (iptr - *indices) * sizeof(GLushort); in CreateMesh()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_array.c49 EXTRACT_FUNC(GLushort, unsigned, 1);
50 EXTRACT_FUNC(GLushort, float, USHRT_MAX);
78 *extract_u = EXTRACT(GLushort, unsigned); in get_array_extract()
79 *extract_f = EXTRACT(GLushort, float); in get_array_extract()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_tcl.c106 #define ELT_TYPE GLushort
142 static GLushort *r200AllocElts( r200ContextPtr rmesa, GLuint nr ) in r200AllocElts()
147 GLushort *dest = (GLushort *)(rmesa->radeon.tcl.elt_dma_bo->ptr + in r200AllocElts()
222 GLushort *des = (GLushort *)( (uintptr_t)dest & ~0x2 ); \
223 (des)[ off + 1 - 2 * ( off & 1 ) ] = (GLushort)(x); \
227 (dest)[offset] = (GLushort) (x); \
/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_icd.h73 void (GLAPIENTRY * Color3us)(GLushort, GLushort, GLushort);
74 void (GLAPIENTRY * Color3usv)(const GLushort *);
89 void (GLAPIENTRY * Color4us)(GLushort, GLushort, GLushort, GLushort);
90 void (GLAPIENTRY * Color4usv)(const GLushort *);
217 void (GLAPIENTRY * LineStipple)(GLint, GLushort);
303 void (GLAPIENTRY * PixelMapusv)(GLenum, GLint, const GLushort *);
323 void (GLAPIENTRY * GetPixelMapusv)(GLenum, GLushort *);
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_tcl.c109 #define ELT_TYPE GLushort
147 static GLushort *radeonAllocElts( r100ContextPtr rmesa, GLuint nr ) in radeonAllocElts()
211 GLushort *des = (GLushort *)( (uintptr_t)dest & ~0x2 ); \
212 (des)[ off + 1 - 2 * ( off & 1 ) ] = (GLushort)(x); \
216 (dest)[offset] = (GLushort) (x); \
/external/mesa3d/src/mesa/drivers/x11/
Dxm_line.c220 GLushort pixel = PACK_5R6G5B( color[0], color[1], color[2] );
221 #define PIXEL_TYPE GLushort
238 #define PIXEL_TYPE GLushort
369 GLushort pixel = PACK_5R6G5B( color[0], color[1], color[2] );
372 #define PIXEL_TYPE GLushort
395 #define PIXEL_TYPE GLushort
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_sf_emit.c328 GLushort *pc, in calculate_masks()
329 GLushort *pc_persp, in calculate_masks()
330 GLushort *pc_linear) in calculate_masks()
432 GLushort pc, pc_persp, pc_linear; in brw_emit_tri_setup()
516 GLushort pc, pc_persp, pc_linear; in brw_emit_line_setup()
579 GLushort pc, pc_persp, pc_linear, pc_coord_replace; in brw_emit_point_sprite_setup()
675 GLushort pc, pc_persp, pc_linear; in brw_emit_point_setup()
/external/deqp/modules/glshared/
DglsStateChangePerfTestCases.cpp104 void genIndices (vector<GLushort>& indices, int triangleCount) in genIndices()
110 indices.push_back((GLushort)(triangleNdx*3)); in genIndices()
111 indices.push_back((GLushort)(triangleNdx*3+1)); in genIndices()
112 indices.push_back((GLushort)(triangleNdx*3+2)); in genIndices()
241 vector<GLushort> indices; in requireIndexBuffers()
253 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)(indices.size() * sizeof(GLushort)), &(indices[… in requireIndexBuffers()

12345