Lines Matching refs:sarea_priv
84 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_core() local
85 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_core()
99 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_context() local
100 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_context()
125 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_setup() local
126 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_setup()
141 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_masks() local
142 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_masks()
160 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_window() local
161 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_window()
175 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_tex0() local
176 drm_r128_context_regs_t *ctx = &sarea_priv->context_state; in r128_emit_tex0()
177 drm_r128_texture_regs_t *tex = &sarea_priv->tex_state[0]; in r128_emit_tex0()
201 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_tex1() local
202 drm_r128_texture_regs_t *tex = &sarea_priv->tex_state[1]; in r128_emit_tex1()
223 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_emit_state() local
224 unsigned int dirty = sarea_priv->dirty; in r128_emit_state()
230 sarea_priv->dirty &= ~R128_UPLOAD_CORE; in r128_emit_state()
235 sarea_priv->dirty &= ~R128_UPLOAD_CONTEXT; in r128_emit_state()
240 sarea_priv->dirty &= ~R128_UPLOAD_SETUP; in r128_emit_state()
245 sarea_priv->dirty &= ~R128_UPLOAD_MASKS; in r128_emit_state()
250 sarea_priv->dirty &= ~R128_UPLOAD_WINDOW; in r128_emit_state()
255 sarea_priv->dirty &= ~R128_UPLOAD_TEX0; in r128_emit_state()
260 sarea_priv->dirty &= ~R128_UPLOAD_TEX1; in r128_emit_state()
264 sarea_priv->context_state.tex_cntl_c &= ~R128_TEX_CACHE_FLUSH; in r128_emit_state()
266 sarea_priv->dirty &= ~R128_REQUIRE_QUIESCENCE; in r128_emit_state()
355 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_clear() local
356 int nbox = sarea_priv->nbox; in r128_cce_dispatch_clear()
357 struct drm_clip_rect *pbox = sarea_priv->boxes; in r128_cce_dispatch_clear()
460 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_swap() local
461 int nbox = sarea_priv->nbox; in r128_cce_dispatch_swap()
462 struct drm_clip_rect *pbox = sarea_priv->boxes; in r128_cce_dispatch_swap()
513 dev_priv->sarea_priv->last_frame++; in r128_cce_dispatch_swap()
518 OUT_RING(dev_priv->sarea_priv->last_frame); in r128_cce_dispatch_swap()
528 dev_priv->current_page, dev_priv->sarea_priv->pfCurrentPage); in r128_cce_dispatch_flip()
552 dev_priv->sarea_priv->last_frame++; in r128_cce_dispatch_flip()
553 dev_priv->sarea_priv->pfCurrentPage = dev_priv->current_page = in r128_cce_dispatch_flip()
559 OUT_RING(dev_priv->sarea_priv->last_frame); in r128_cce_dispatch_flip()
568 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_vertex() local
569 int format = sarea_priv->vc_format; in r128_cce_dispatch_vertex()
575 DRM_DEBUG("buf=%d nbox=%d\n", buf->idx, sarea_priv->nbox); in r128_cce_dispatch_vertex()
578 r128_print_dirty("dispatch_vertex", sarea_priv->dirty); in r128_cce_dispatch_vertex()
583 if (sarea_priv->dirty & ~R128_UPLOAD_CLIPRECTS) in r128_cce_dispatch_vertex()
588 if (i < sarea_priv->nbox) { in r128_cce_dispatch_vertex()
590 &sarea_priv->boxes[i], in r128_cce_dispatch_vertex()
591 sarea_priv->nbox - i); in r128_cce_dispatch_vertex()
607 } while (i < sarea_priv->nbox); in r128_cce_dispatch_vertex()
611 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_vertex()
627 dev_priv->sarea_priv->last_dispatch++; in r128_cce_dispatch_vertex()
629 sarea_priv->dirty &= ~R128_UPLOAD_CLIPRECTS; in r128_cce_dispatch_vertex()
630 sarea_priv->nbox = 0; in r128_cce_dispatch_vertex()
669 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_indirect()
685 dev_priv->sarea_priv->last_dispatch++; in r128_cce_dispatch_indirect()
694 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_dispatch_indices() local
695 int format = sarea_priv->vc_format; in r128_cce_dispatch_indices()
705 r128_print_dirty("dispatch_indices", sarea_priv->dirty); in r128_cce_dispatch_indices()
710 if (sarea_priv->dirty & ~R128_UPLOAD_CLIPRECTS) in r128_cce_dispatch_indices()
737 if (i < sarea_priv->nbox) { in r128_cce_dispatch_indices()
739 &sarea_priv->boxes[i], in r128_cce_dispatch_indices()
740 sarea_priv->nbox - i); in r128_cce_dispatch_indices()
746 } while (i < sarea_priv->nbox); in r128_cce_dispatch_indices()
750 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_indices()
765 dev_priv->sarea_priv->last_dispatch++; in r128_cce_dispatch_indices()
767 sarea_priv->dirty &= ~R128_UPLOAD_CLIPRECTS; in r128_cce_dispatch_indices()
768 sarea_priv->nbox = 0; in r128_cce_dispatch_indices()
1210 drm_r128_sarea_t *sarea_priv; in r128_cce_clear() local
1220 sarea_priv = dev_priv->sarea_priv; in r128_cce_clear()
1222 if (sarea_priv->nbox > R128_NR_SAREA_CLIPRECTS) in r128_cce_clear()
1223 sarea_priv->nbox = R128_NR_SAREA_CLIPRECTS; in r128_cce_clear()
1230 dev_priv->sarea_priv->dirty |= R128_UPLOAD_CONTEXT | R128_UPLOAD_MASKS; in r128_cce_clear()
1249 dev_priv->sarea_priv->pfCurrentPage = dev_priv->current_page; in r128_do_init_pageflip()
1298 drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv; in r128_cce_swap() local
1307 if (sarea_priv->nbox > R128_NR_SAREA_CLIPRECTS) in r128_cce_swap()
1308 sarea_priv->nbox = R128_NR_SAREA_CLIPRECTS; in r128_cce_swap()
1311 dev_priv->sarea_priv->dirty |= (R128_UPLOAD_CONTEXT | in r128_cce_swap()