Lines Matching refs:ctx
475 * Args: ctx - the context
485 _mesa_unpack_stencil_span( struct gl_context *ctx, GLuint n,
516 !ctx->Pixel.MapStencilFlag &&
522 !ctx->Pixel.MapStencilFlag &&
535 _mesa_error(ctx, GL_OUT_OF_MEMORY, "stencil unpacking");
544 _mesa_shift_and_offset_ci(ctx, n, indexes);
547 if (ctx->Pixel.MapStencilFlag) {
549 const GLuint mask = ctx->PixelMaps.StoS.Size - 1;
552 indexes[i] = (GLuint)ctx->PixelMaps.StoS.Map[ indexes[i] & mask ];
598 _mesa_pack_stencil_span( struct gl_context *ctx, GLuint n,
605 _mesa_error(ctx, GL_OUT_OF_MEMORY, "stencil packing");
609 if (ctx->Pixel.IndexShift || ctx->Pixel.IndexOffset ||
610 ctx->Pixel.MapStencilFlag) {
613 _mesa_apply_stencil_transfer_ops(ctx, n, stencil);
770 _mesa_unpack_depth_span( struct gl_context *ctx, GLuint n,
784 if (ctx->Pixel.DepthScale == 1.0F && ctx->Pixel.DepthBias == 0.0F) {
827 _mesa_error(ctx, GL_OUT_OF_MEMORY, "pixel unpacking");
862 ctx->Pixel.DepthScale == 1.0F &&
863 ctx->Pixel.DepthBias == 0.0F) {
931 const GLfloat scale = ctx->Pixel.DepthScale;
932 const GLfloat bias = ctx->Pixel.DepthBias;
1003 _mesa_pack_depth_span( struct gl_context *ctx, GLuint n, GLvoid *dest,
1009 _mesa_error(ctx, GL_OUT_OF_MEMORY, "pixel packing");
1013 if (ctx->Pixel.DepthScale != 1.0F || ctx->Pixel.DepthBias != 0.0F) {
1015 _mesa_scale_and_bias_depth(ctx, n, depthCopy);
1139 _mesa_pack_depth_stencil_span(struct gl_context *ctx,GLuint n,
1150 _mesa_error(ctx, GL_OUT_OF_MEMORY, "pixel packing");
1156 if (ctx->Pixel.DepthScale != 1.0F || ctx->Pixel.DepthBias != 0.0F) {
1158 _mesa_scale_and_bias_depth(ctx, n, depthCopy);
1162 if (ctx->Pixel.IndexShift ||
1163 ctx->Pixel.IndexOffset ||
1164 ctx->Pixel.MapStencilFlag) {
1166 _mesa_apply_stencil_transfer_ops(ctx, n, stencilCopy);
1551 _mesa_unpack_color_index_to_rgba_float(struct gl_context *ctx, GLuint dims,
1564 _mesa_error(ctx, GL_OUT_OF_MEMORY, "pixel unpacking");
1571 _mesa_error(ctx, GL_OUT_OF_MEMORY, "pixel unpacking");
1587 _mesa_shift_and_offset_ci(ctx, count, indexes);
1589 _mesa_map_ci_to_rgba(ctx, count, indexes, (float (*)[4])dstPtr);
1595 _mesa_apply_rgba_transfer_ops(ctx, transferOps, count, (float (*)[4])dstPtr);
1606 _mesa_unpack_color_index_to_rgba_ubyte(struct gl_context *ctx, GLuint dims,
1617 rgba = _mesa_unpack_color_index_to_rgba_float(ctx, dims,