Home | History | Annotate | Download | only in radeon

Lines Matching refs:radeon

6 initial release of the Radeon 8500 driver under the XFree86 license.
73 void radeonSetCliprects(radeonContextPtr radeon)
75 __DRIdrawable *const drawable = radeon_get_drawable(radeon);
76 __DRIdrawable *const readable = radeon_get_readable(radeon);
86 _mesa_resize_framebuffer(&radeon->glCtx, &draw_rfb->base,
93 _mesa_resize_framebuffer(&radeon->glCtx, &read_rfb->base,
98 if (radeon->state.scissor.enabled)
99 radeonUpdateScissor(&radeon->glCtx);
147 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
150 radeon_firevertices(radeon);
159 uint32_t radeonGetAge(radeonContextPtr radeon)
167 ret = drmCommandWriteRead(radeon->radeonScreen->driScreen->fd, DRM_RADEON_GETPARAM,
185 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
192 radeon->front_buffer_dirty = GL_TRUE;
201 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
214 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DRAW_BUFFER, GL_TRUE);
244 radeon->front_cliprects = GL_TRUE;
247 radeon->front_cliprects = GL_FALSE;
260 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DRAW_BUFFER, GL_TRUE);
262 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DRAW_BUFFER, GL_FALSE);
268 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DEPTH_BUFFER, GL_FALSE);
270 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DEPTH_BUFFER, GL_TRUE);
273 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DEPTH_BUFFER, GL_FALSE);
280 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_STENCIL_BUFFER, GL_FALSE);
285 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_STENCIL_BUFFER, GL_TRUE);
288 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_STENCIL_BUFFER, GL_FALSE);
316 _mesa_reference_renderbuffer(&radeon->state.depth.rb, &rrbDepth->base.Base);
317 _mesa_reference_renderbuffer(&radeon->state.color.rb, &rrbColor->base.Base);
318 radeon->state.color.draw_offset = offset;
325 radeon->NewGLState |= _NEW_SCISSOR;
349 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
352 radeon->is_front_buffer_rendering;
354 radeon->is_front_buffer_rendering = (mode == GL_FRONT_LEFT) ||
360 if (!was_front_buffer_rendering && radeon->is_front_buffer_rendering) {
361 radeon_update_renderbuffers(radeon->driContext,
362 radeon->driContext->driDrawablePriv, GL_FALSE);
393 void radeon_window_moved(radeonContextPtr radeon)
396 radeonSetCliprects(radeon);
401 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
402 __DRIcontext *driContext = radeon->driContext;
406 if (radeon->is_front_buffer_rendering) {
416 radeon_window_moved(radeon);
417 radeon_draw_buffer(ctx, radeon->glCtx.DrawBuffer);
421 static void radeon_print_state_atom(radeonContextPtr radeon, struct radeon_state_atom *state)
429 dwords = state->check(&radeon->glCtx, state);
456 GLuint radeonCountStateEmitSize(radeonContextPtr radeon)
462 if (radeon->cmdbuf.cs->cdw && !radeon->hw.all_dirty) {
463 if (!radeon->hw.is_dirty)
465 foreach(atom, &radeon->hw.atomlist) {
467 const GLuint atom_size = atom->check(&radeon->glCtx, atom);
470 radeon_print_state_atom(radeon, atom);
475 foreach(atom, &radeon->hw.atomlist) {
476 const GLuint atom_size = atom->check(&radeon->glCtx, atom);
479 radeon_print_state_atom(radeon, atom);
489 static inline void radeon_emit_atom(radeonContextPtr radeon, struct radeon_state_atom *atom)
491 BATCH_LOCALS(radeon);
494 dwords = atom->check(&radeon->glCtx, atom);
497 radeon_print_state_atom(radeon, atom);
500 atom->emit(&radeon->glCtx, atom);
514 static inline void radeonEmitAtoms(radeonContextPtr radeon, GLboolean emitAll)
519 if (radeon->hw.all_dirty || emitAll) {
520 foreach(atom, &radeon->hw.atomlist)
521 radeon_emit_atom( radeon, atom );
523 foreach(atom, &radeon->hw.atomlist) {
525 radeon_emit_atom( radeon, atom );
532 void radeonEmitState(radeonContextPtr radeon)
536 if (radeon->vtbl.pre_emit_state)
537 radeon->vtbl.pre_emit_state(radeon);
540 if (radeon->cmdbuf.cs->cdw && !radeon->hw.is_dirty && !radeon->hw.all_dirty)
543 if (!radeon->cmdbuf.cs->cdw) {
547 radeonEmitAtoms(radeon, GL_TRUE);
553 radeonEmitAtoms(radeon, GL_FALSE);
556 radeon->hw.is_dirty = GL_FALSE;
557 radeon->hw.all_dirty = GL_FALSE;
563 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
565 fprintf(stderr, "%s %d\n", __func__, radeon->cmdbuf.cs->cdw);
572 if (!radeon->dma.flush && !radeon->cmdbuf.cs->cdw && is_empty_list(&radeon->dma.reserved))
575 if (radeon->dma.flush)
576 radeon->dma.flush( ctx );
578 if (radeon->cmdbuf.cs->cdw)
579 radeon, __func__);
582 if (_mesa_is_winsys_fbo(ctx->DrawBuffer) && radeon->front_buffer_dirty) {
583 __DRIscreen *const screen = radeon->radeonScreen->driScreen;
587 __DRIdrawable * drawable = radeon_get_drawable(radeon);
592 radeon->front_buffer_dirty = GL_FALSE;
604 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
618 rrb = radeon_get_depthbuffer(radeon);