- if (r300screen->caps.family == CHIP_FAMILY_RV530)
- q->num_pipes = r300screen->caps.num_z_pipes;
- else
- q->num_pipes = r300screen->caps.num_frag_pipes;
-
- insert_at_tail(&r300->query_list, q);
-
- /* Open up the occlusion query buffer. */
- q->buf = r300->rws->buffer_create(r300->rws, q->buffer_size, 4096,
- PIPE_BIND_CUSTOM, PIPE_USAGE_STREAM,
- q->domain);
- q->cs_buf = r300->rws->buffer_get_cs_handle(q->buf);