Lines Matching defs:index
94 * index param so it should be useless; but radeonsi needs it in some cases,
388 int index;
427 index = -1;
429 index = target_to_index(q);
431 index = 0;
434 pipe->get_query_result_resource(pipe, q->pq, flags, result_type, index,
453 * index.
457 get_query_binding_point(struct gl_context *ctx, GLenum target, GLuint index)
488 return &ctx->Query.PrimitivesGenerated[index];
493 return &ctx->Query.PrimitivesWritten[index];
498 return &ctx->Query.TransformFeedbackOverflow[index];
671 query_error_check_index(struct gl_context *ctx, GLenum target, GLuint index)
677 if (index >= ctx->Const.MaxVertexStreams) {
679 "glBeginQueryIndexed(index>=MaxVertexStreams)");
684 if (index > 0) {
685 _mesa_error(ctx, GL_INVALID_VALUE, "glBeginQueryIndexed(index>0)");
693 _mesa_BeginQueryIndexed(GLenum target, GLuint index, GLuint id)
700 _mesa_enum_to_string(target), index, id);
702 if (!query_error_check_index(ctx, target, index))
707 bindpt = get_query_binding_point(ctx, target, index);
789 q->Stream = index;
799 _mesa_EndQueryIndexed(GLenum target, GLuint index)
806 _mesa_enum_to_string(target), index);
808 if (!query_error_check_index(ctx, target, index))
813 bindpt = get_query_binding_point(ctx, target, index);
926 _mesa_GetQueryIndexediv(GLenum target, GLuint index, GLenum pname,
935 index,
938 if (!query_error_check_index(ctx, target, index))
972 bindpt = get_query_binding_point(ctx, target, index);