Lines Matching defs:indexes
257 extract_uint_indexes(GLuint n, GLuint indexes[],
284 indexes[i] = (*ubsrc & mask) ? 1 : 0;
298 indexes[i] = (*ubsrc & mask) ? 1 : 0;
315 indexes[i] = s[i];
323 indexes[i] = s[i];
334 indexes[i] = value;
339 indexes[i] = s[i];
351 indexes[i] = value;
356 indexes[i] = s[i];
368 indexes[i] = value;
373 indexes[i] = s[i];
385 indexes[i] = value;
390 indexes[i] = s[i];
402 indexes[i] = (GLuint) value;
407 indexes[i] = (GLuint) s[i];
420 indexes[i] = (GLuint) _mesa_half_to_float(value);
425 indexes[i] = (GLuint) _mesa_half_to_float(s[i]);
437 indexes[i] = value & 0xff; /* lower 8 bits */
442 indexes[i] = s[i] & 0xff; /* lower 8 bits */
454 indexes[i] = value & 0xff; /* lower 8 bits */
459 indexes[i] = s[i*2+1] & 0xff; /* lower 8 bits */
532 GLuint *indexes = malloc(n * sizeof(GLuint));
534 if (!indexes) {
539 extract_uint_indexes(n, indexes, GL_STENCIL_INDEX, srcType, source,
543 /* shift and offset indexes */
544 _mesa_shift_and_offset_ci(ctx, n, indexes);
552 indexes[i] = (GLuint)ctx->PixelMaps.StoS.Map[ indexes[i] & mask ];
563 dst[i] = (GLubyte) (indexes[i] & 0xff);
572 dst[i] = (GLushort) (indexes[i] & 0xffff);
577 memcpy(dest, indexes, n * sizeof(GLuint));
584 dst[i*2+1] = indexes[i] & 0xff; /* lower 8 bits */
592 free(indexes);
1558 GLuint *indexes;
1562 indexes = malloc(count * sizeof(GLuint));
1563 if (!indexes) {
1570 free(indexes);
1575 /* Convert indexes to RGBA float */
1584 extract_uint_indexes(count, indexes, srcFormat, srcType, srcPtr, srcPacking);
1587 _mesa_shift_and_offset_ci(ctx, count, indexes);
1589 _mesa_map_ci_to_rgba(ctx, count, indexes, (float (*)[4])dstPtr);
1592 * with color indexes.
1600 free(indexes);