Home | History | Annotate | Download | only in state_tracker

Lines Matching refs:stq

53    struct st_query_object *stq = ST_CALLOC_STRUCT(st_query_object);
54 if (stq) {
55 stq->base.Id = id;
56 stq->base.Ready = GL_TRUE;
57 stq->pq = NULL;
58 stq->type = PIPE_QUERY_TYPES; /* an invalid value */
59 return &stq->base;
70 struct st_query_object *stq = st_query_object(q);
72 if (stq->pq) {
73 pipe->destroy_query(pipe, stq->pq);
74 stq->pq = NULL;
77 free(stq);
85 struct st_query_object *stq = st_query_object(q);
111 if (stq->pq && stq->type != type) {
113 pipe->destroy_query(pipe, stq->pq);
114 stq->pq = NULL;
115 stq->type = PIPE_QUERY_TYPES; /* an invalid value */
118 if (!stq->pq) {
119 stq->pq = pipe->create_query(pipe, type);
120 stq->type = type;
123 assert(stq->type == type);
125 pipe->begin_query(pipe, stq->pq);
133 struct st_query_object *stq = st_query_object(q);
137 if (q->Target == GL_TIMESTAMP && !stq->pq) {
138 stq->pq = pipe->create_query(pipe, PIPE_QUERY_TIMESTAMP);
139 stq->type = PIPE_QUERY_TIMESTAMP;
142 pipe->end_query(pipe, stq->pq);
150 struct st_query_object *stq = st_query_object(q);
153 assert(!stq->base.Ready);
155 while (!stq->base.Ready &&
157 stq->pq,
172 struct st_query_object *stq = st_query_object(q);
174 q->Ready = pipe->get_query_result(pipe, stq->pq, FALSE, (void*)&q->Result);