- 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, q->domain);
- q->cs_buf = r300->rws->buffer_get_cs_handle(q->buf);
-
+ q->buf = r300->rws->buffer_create(r300->rws,
+ r300screen->info.gart_page_size,
+ r300screen->info.gart_page_size,
+ RADEON_DOMAIN_GTT,
+ RADEON_FLAG_NO_INTERPROCESS_SHARING);
+ if (!q->buf) {
+ FREE(q);
+ return NULL;
+ }