Lines Matching defs:pI830
46 I830Ptr pI830 = I830PTR(pScrn);
62 I830Ptr pI830 = I830PTR(pScrn);
67 OUT_RING(bo->offset + pI830->batch_used - 4);
107 I830Ptr pI830 = I830PTR(pScrn);
110 if (IS_I865G(pI830))
111 pI830->batch_bo = dri_bo_alloc(pI830->bufmgr, "batch", 4096, 4096);
113 pI830->batch_bo = dri_bo_alloc(pI830->bufmgr, "batch", 4096 * 4, 4096);
115 if (dri_bo_map(pI830->batch_bo, 1) != 0)
118 pI830->batch_used = 0;
119 pI830->batch_ptr = pI830->batch_bo->virtual;
124 if (pI830->directRenderingType == DRI_DRI2)
125 pI830->last_3d = LAST_3D_OTHER;
131 I830Ptr pI830 = I830PTR(pScrn);
133 pI830->batch_emit_start = 0;
134 pI830->batch_emitting = 0;
138 if (!pI830->have_gem) {
139 if (IS_I830(pI830) || IS_845G(pI830)) {
140 intel_bufmgr_fake_set_exec_callback(pI830->bufmgr,
144 intel_bufmgr_fake_set_exec_callback(pI830->bufmgr,
148 intel_bufmgr_fake_set_fence_callback(pI830->bufmgr,
158 I830Ptr pI830 = I830PTR(pScrn);
160 if (pI830->batch_ptr != NULL) {
161 dri_bo_unmap(pI830->batch_bo);
162 pI830->batch_ptr = NULL;
164 dri_bo_unreference(pI830->batch_bo);
165 pI830->batch_bo = NULL;
167 dri_bo_unreference(pI830->last_batch_bo);
168 pI830->last_batch_bo = NULL;
175 I830Ptr pI830 = I830PTR(pScrn);
178 if (pI830->batch_used == 0)
182 if (!pI830->have_gem && !flushed) {
185 if (IS_I965G(pI830))
188 *(uint32_t *)(pI830->batch_ptr + pI830->batch_used) = MI_FLUSH | flags;
189 pI830->batch_used += 4;
193 if ((pI830->batch_used & 4) == 0) {
194 *(uint32_t *)(pI830->batch_ptr + pI830->batch_used) = MI_NOOP;
195 pI830->batch_used += 4;
199 *(uint32_t *)(pI830->batch_ptr + pI830->batch_used) = MI_BATCH_BUFFER_END;
200 pI830->batch_used += 4;
202 dri_bo_unmap(pI830->batch_bo);
203 pI830->batch_ptr = NULL;
205 ret = dri_bo_exec(pI830->batch_bo, pI830->batch_used, NULL, 0, 0xffffffff);
212 dri_bo_unreference(pI830->last_batch_bo);
213 pI830->last_batch_bo = pI830->batch_bo;
214 pI830->batch_bo = NULL;
222 if (pI830->have_gem)
223 pI830->need_mi_flush = TRUE;
225 if (pI830->batch_flush_notify)
226 pI830->batch_flush_notify (pScrn);
233 I830Ptr pI830 = I830PTR(scrn);
238 drm_intel_bo_map(pI830->last_batch_bo, TRUE);
239 drm_intel_bo_unmap(pI830->last_batch_bo);