Lines Matching full:indexes
255 extract_uint_indexes(GLuint n, GLuint indexes[], in extract_uint_indexes() argument
282 indexes[i] = (*ubsrc & mask) ? 1 : 0; in extract_uint_indexes()
296 indexes[i] = (*ubsrc & mask) ? 1 : 0; in extract_uint_indexes()
313 indexes[i] = s[i]; in extract_uint_indexes()
321 indexes[i] = s[i]; in extract_uint_indexes()
332 indexes[i] = value; in extract_uint_indexes()
337 indexes[i] = s[i]; in extract_uint_indexes()
349 indexes[i] = value; in extract_uint_indexes()
354 indexes[i] = s[i]; in extract_uint_indexes()
366 indexes[i] = value; in extract_uint_indexes()
371 indexes[i] = s[i]; in extract_uint_indexes()
383 indexes[i] = value; in extract_uint_indexes()
388 indexes[i] = s[i]; in extract_uint_indexes()
400 indexes[i] = (GLuint) value; in extract_uint_indexes()
405 indexes[i] = (GLuint) s[i]; in extract_uint_indexes()
418 indexes[i] = (GLuint) _mesa_half_to_float(value); in extract_uint_indexes()
423 indexes[i] = (GLuint) _mesa_half_to_float(s[i]); in extract_uint_indexes()
435 indexes[i] = value & 0xff; /* lower 8 bits */ in extract_uint_indexes()
440 indexes[i] = s[i] & 0xff; /* lower 8 bits */ in extract_uint_indexes()
452 indexes[i] = value & 0xff; /* lower 8 bits */ in extract_uint_indexes()
457 indexes[i] = s[i*2+1] & 0xff; /* lower 8 bits */ in extract_uint_indexes()
530 GLuint *indexes = malloc(n * sizeof(GLuint)); in _mesa_unpack_stencil_span() local
532 if (!indexes) { in _mesa_unpack_stencil_span()
537 extract_uint_indexes(n, indexes, GL_STENCIL_INDEX, srcType, source, in _mesa_unpack_stencil_span()
541 /* shift and offset indexes */ in _mesa_unpack_stencil_span()
542 _mesa_shift_and_offset_ci(ctx, n, indexes); in _mesa_unpack_stencil_span()
550 indexes[i] = (GLuint)ctx->PixelMaps.StoS.Map[ indexes[i] & mask ]; in _mesa_unpack_stencil_span()
561 dst[i] = (GLubyte) (indexes[i] & 0xff); in _mesa_unpack_stencil_span()
570 dst[i] = (GLushort) (indexes[i] & 0xffff); in _mesa_unpack_stencil_span()
575 memcpy(dest, indexes, n * sizeof(GLuint)); in _mesa_unpack_stencil_span()
582 dst[i*2+1] = indexes[i] & 0xff; /* lower 8 bits */ in _mesa_unpack_stencil_span()
590 free(indexes); in _mesa_unpack_stencil_span()
1556 GLuint *indexes; in _mesa_unpack_color_index_to_rgba_float() local
1560 indexes = malloc(count * sizeof(GLuint)); in _mesa_unpack_color_index_to_rgba_float()
1561 if (!indexes) { in _mesa_unpack_color_index_to_rgba_float()
1568 free(indexes); in _mesa_unpack_color_index_to_rgba_float()
1573 /* Convert indexes to RGBA float */ in _mesa_unpack_color_index_to_rgba_float()
1582 extract_uint_indexes(count, indexes, srcFormat, srcType, srcPtr, srcPacking); in _mesa_unpack_color_index_to_rgba_float()
1585 _mesa_shift_and_offset_ci(ctx, count, indexes); in _mesa_unpack_color_index_to_rgba_float()
1587 _mesa_map_ci_to_rgba(ctx, count, indexes, (float (*)[4])dstPtr); in _mesa_unpack_color_index_to_rgba_float()
1590 * with color indexes. in _mesa_unpack_color_index_to_rgba_float()
1598 free(indexes); in _mesa_unpack_color_index_to_rgba_float()