Lines Matching refs:sarea_priv

91 	drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv;  in r128_emit_core()  local
92 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_core()
106 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_context() local
107 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_context()
132 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_setup() local
133 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_setup()
148 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_masks() local
149 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_masks()
167 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_window() local
168 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_window()
182 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_tex0() local
183 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_tex0()
184 drm_r128_texture_regs_t *tex = &sarea_priv->tex_state[0]; in r128_emit_tex0()
208 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_tex1() local
209 drm_r128_texture_regs_t *tex = &sarea_priv->tex_state[1]; in r128_emit_tex1()
230 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_state() local
231 unsigned int dirty = sarea_priv->dirty; in r128_emit_state()
237 sarea_priv->dirty &= ~R128_UPLOAD_CORE; in r128_emit_state()
242 sarea_priv->dirty &= ~R128_UPLOAD_CONTEXT; in r128_emit_state()
247 sarea_priv->dirty &= ~R128_UPLOAD_SETUP; in r128_emit_state()
252 sarea_priv->dirty &= ~R128_UPLOAD_MASKS; in r128_emit_state()
257 sarea_priv->dirty &= ~R128_UPLOAD_WINDOW; in r128_emit_state()
262 sarea_priv->dirty &= ~R128_UPLOAD_TEX0; in r128_emit_state()
267 sarea_priv->dirty &= ~R128_UPLOAD_TEX1; in r128_emit_state()
271 sarea_priv->context_state.tex_cntl_c &= ~R128_TEX_CACHE_FLUSH; in r128_emit_state()
273 sarea_priv->dirty &= ~R128_REQUIRE_QUIESCENCE; in r128_emit_state()
362 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_clear() local
363 int nbox = sarea_priv->nbox; in r128_cce_dispatch_clear()
364 struct drm_clip_rect *pbox = sarea_priv->boxes; in r128_cce_dispatch_clear()
467 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_swap() local
468 int nbox = sarea_priv->nbox; in r128_cce_dispatch_swap()
469 struct drm_clip_rect *pbox = sarea_priv->boxes; in r128_cce_dispatch_swap()
520 dev_priv->sarea_priv->last_frame++; in r128_cce_dispatch_swap()
525 OUT_RING(dev_priv->sarea_priv->last_frame); in r128_cce_dispatch_swap()
535 dev_priv->current_page, dev_priv->sarea_priv->pfCurrentPage); in r128_cce_dispatch_flip()
559 dev_priv->sarea_priv->last_frame++; in r128_cce_dispatch_flip()
560 dev_priv->sarea_priv->pfCurrentPage = dev_priv->current_page = in r128_cce_dispatch_flip()
566 OUT_RING(dev_priv->sarea_priv->last_frame); in r128_cce_dispatch_flip()
575 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_vertex() local
576 int format = sarea_priv->vc_format; in r128_cce_dispatch_vertex()
582 DRM_DEBUG("buf=%d nbox=%d\n", buf->idx, sarea_priv->nbox); in r128_cce_dispatch_vertex()
585 r128_print_dirty("dispatch_vertex", sarea_priv->dirty); in r128_cce_dispatch_vertex()
590 if (sarea_priv->dirty & ~R128_UPLOAD_CLIPRECTS) in r128_cce_dispatch_vertex()
595 if (i < sarea_priv->nbox) { in r128_cce_dispatch_vertex()
597 &sarea_priv->boxes[i], in r128_cce_dispatch_vertex()
598 sarea_priv->nbox - i); in r128_cce_dispatch_vertex()
614 } while (i < sarea_priv->nbox); in r128_cce_dispatch_vertex()
618 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_vertex()
634 dev_priv->sarea_priv->last_dispatch++; in r128_cce_dispatch_vertex()
636 sarea_priv->dirty &= ~R128_UPLOAD_CLIPRECTS; in r128_cce_dispatch_vertex()
637 sarea_priv->nbox = 0; in r128_cce_dispatch_vertex()
676 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_indirect()
692 dev_priv->sarea_priv->last_dispatch++; in r128_cce_dispatch_indirect()
701 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_indices() local
702 int format = sarea_priv->vc_format; in r128_cce_dispatch_indices()
712 r128_print_dirty("dispatch_indices", sarea_priv->dirty); in r128_cce_dispatch_indices()
717 if (sarea_priv->dirty & ~R128_UPLOAD_CLIPRECTS) in r128_cce_dispatch_indices()
744 if (i < sarea_priv->nbox) { in r128_cce_dispatch_indices()
746 &sarea_priv->boxes[i], in r128_cce_dispatch_indices()
747 sarea_priv->nbox - i); in r128_cce_dispatch_indices()
753 } while (i < sarea_priv->nbox); in r128_cce_dispatch_indices()
757 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_indices()
772 dev_priv->sarea_priv->last_dispatch++; in r128_cce_dispatch_indices()
774 sarea_priv->dirty &= ~R128_UPLOAD_CLIPRECTS; in r128_cce_dispatch_indices()
775 sarea_priv->nbox = 0; in r128_cce_dispatch_indices()
1206 drm_r128_sarea_t *sarea_priv; in r128_cce_clear() local
1216 sarea_priv = dev_priv->sarea_priv; in r128_cce_clear()
1218 if (sarea_priv->nbox > R128_NR_SAREA_CLIPRECTS) in r128_cce_clear()
1219 sarea_priv->nbox = R128_NR_SAREA_CLIPRECTS; in r128_cce_clear()
1226 dev_priv->sarea_priv->dirty |= R128_UPLOAD_CONTEXT | R128_UPLOAD_MASKS; in r128_cce_clear()
1245 dev_priv->sarea_priv->pfCurrentPage = dev_priv->current_page; in r128_do_init_pageflip()
1294 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_swap() local
1303 if (sarea_priv->nbox > R128_NR_SAREA_CLIPRECTS) in r128_cce_swap()
1304 sarea_priv->nbox = R128_NR_SAREA_CLIPRECTS; in r128_cce_swap()
1307 dev_priv->sarea_priv->dirty |= (R128_UPLOAD_CONTEXT | in r128_cce_swap()