/external/mesa3d/src/mesa/main/ |
D | format_pack.c | 455 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 …]
|
D | pack.c | 485 #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 …]
|
D | format_unpack.c | 223 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 …]
|
D | mipmap.c | 259 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 …]
|
D | api_arrayelt.c | 350 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 …]
|
D | image.c | 51 _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()
|
D | macros.h | 126 #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) )
|
D | pixel.c | 282 _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()
|
D | glformats.c | 83 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()
|
D | api_loopback.c | 129 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/ |
D | s_texfetch_tmp.h | 94 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 …]
|
D | s_masking.c | 72 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()
|
D | s_blend.c | 88 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 …]
|
D | s_fog.c | 172 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()
|
D | s_alpha.c | 120 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_alpha_test() 121 GLushort ref; in _swrast_alpha_test() 144 GLushort ref; in _swrast_alpha_test()
|
D | s_chan.h | 55 typedef GLushort GLchan; 96 #define CHAN_TO_USHORT(c) ((GLushort) (CLAMP((c), 0.0f, 1.0f) * 65535.0))
|
D | s_zoom.c | 222 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/ |
D | utils.cc | 240 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/ |
D | nouveau_array.c | 49 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/ |
D | r200_tcl.c | 106 #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/ |
D | stw_icd.h | 73 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/ |
D | radeon_tcl.c | 109 #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/ |
D | xm_line.c | 220 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/ |
D | brw_sf_emit.c | 328 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/ |
D | glsStateChangePerfTestCases.cpp | 104 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()
|