Home | History | Annotate | Download | only in radeon

Lines Matching defs: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,
94 _mesa_resize_framebuffer(radeon->glCtx, &read_rfb->base,
100 if (radeon->state.scissor.enabled)
101 radeonUpdateScissor(radeon->glCtx);
149 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
152 radeon_firevertices(radeon);
161 uint32_t radeonGetAge(radeonContextPtr radeon)
169 ret = drmCommandWriteRead(radeon->dri.fd, DRM_RADEON_GETPARAM,
187 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
194 radeon->front_buffer_dirty = GL_TRUE;
203 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
216 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DRAW_BUFFER, GL_TRUE);
246 radeon->front_cliprects = GL_TRUE;
249 radeon->front_cliprects = GL_FALSE;
262 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DRAW_BUFFER, GL_TRUE);
264 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DRAW_BUFFER, GL_FALSE);
270 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DEPTH_BUFFER, GL_FALSE);
272 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DEPTH_BUFFER, GL_TRUE);
275 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_DEPTH_BUFFER, GL_FALSE);
282 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_STENCIL_BUFFER, GL_FALSE);
287 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_STENCIL_BUFFER, GL_TRUE);
290 radeon->vtbl.fallback(ctx, RADEON_FALLBACK_STENCIL_BUFFER, GL_FALSE);
318 _mesa_reference_renderbuffer(&radeon->state.depth.rb, &rrbDepth->base.Base);
319 _mesa_reference_renderbuffer(&radeon->state.color.rb, &rrbColor->base.Base);
320 radeon->state.color.draw_offset = offset;
336 radeon->NewGLState |= _NEW_SCISSOR;
362 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
365 radeon->is_front_buffer_rendering;
367 radeon->is_front_buffer_rendering = (mode == GL_FRONT_LEFT) ||
373 if (!was_front_buffer_rendering && radeon->is_front_buffer_rendering) {
374 radeon_update_renderbuffers(radeon->dri.context,
375 radeon->dri.context->driDrawablePriv, GL_FALSE);
406 void radeon_window_moved(radeonContextPtr radeon)
409 radeonSetCliprects(radeon);
414 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
415 __DRIcontext *driContext = radeon->dri.context;
420 if (radeon->is_front_buffer_rendering) {
430 radeon_window_moved(radeon);
431 radeon_draw_buffer(ctx, radeon->glCtx->DrawBuffer);
435 static void radeon_print_state_atom(radeonContextPtr radeon, struct radeon_state_atom *state)
443 dwords = (*state->check) (radeon->glCtx, state);
470 GLuint radeonCountStateEmitSize(radeonContextPtr radeon)
476 if (radeon->cmdbuf.cs->cdw && !radeon->hw.all_dirty) {
477 if (!radeon->hw.is_dirty)
479 foreach(atom, &radeon->hw.atomlist) {
481 const GLuint atom_size = atom->check(radeon->glCtx, atom);
484 radeon_print_state_atom(radeon, atom);
489 foreach(atom, &radeon->hw.atomlist) {
490 const GLuint atom_size = atom->check(radeon->glCtx, atom);
493 radeon_print_state_atom(radeon, atom);
503 static INLINE void radeon_emit_atom(radeonContextPtr radeon, struct radeon_state_atom *atom)
505 BATCH_LOCALS(radeon);
508 dwords = (*atom->check) (radeon->glCtx, atom);
511 radeon_print_state_atom(radeon, atom);
514 (*atom->emit)(radeon->glCtx, atom);
528 static INLINE void radeonEmitAtoms(radeonContextPtr radeon, GLboolean emitAll)
532 if (radeon->vtbl.pre_emit_atoms)
533 radeon->vtbl.pre_emit_atoms(radeon);
536 if (radeon->hw.all_dirty || emitAll) {
537 foreach(atom, &radeon->hw.atomlist)
538 radeon_emit_atom( radeon, atom );
540 foreach(atom, &radeon->hw.atomlist) {
542 radeon_emit_atom( radeon, atom );
551 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
554 ret = radeon_cs_space_check(radeon->cmdbuf.cs);
560 void radeonEmitState(radeonContextPtr radeon)
564 if (radeon->vtbl.pre_emit_state)
565 radeon->vtbl.pre_emit_state(radeon);
568 if (radeon->cmdbuf.cs->cdw && !radeon->hw.is_dirty && !radeon->hw.all_dirty)
571 if (!radeon->cmdbuf.cs->cdw) {
575 radeonEmitAtoms(radeon, GL_TRUE);
581 radeonEmitAtoms(radeon, GL_FALSE);
584 radeon->hw.is_dirty = GL_FALSE;
585 radeon->hw.all_dirty = GL_FALSE;
591 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
593 fprintf(stderr, "%s %d\n", __FUNCTION__, radeon->cmdbuf.cs->cdw);
600 if (!radeon->dma.flush && !radeon->cmdbuf.cs->cdw && is_empty_list(&radeon->dma.reserved))
603 if (radeon->dma.flush)
604 radeon->dma.flush( ctx );
606 if (radeon->cmdbuf.cs->cdw)
607 rcommonFlushCmdBuf(radeon, __FUNCTION__);
610 if (_mesa_is_winsys_fbo(ctx->DrawBuffer) && radeon->front_buffer_dirty) {
611 __DRIscreen *const screen = radeon->radeonScreen->driScreen;
615 __DRIdrawable * drawable = radeon_get_drawable(radeon);
620 radeon->front_buffer_dirty = GL_FALSE;
632 radeonContextPtr radeon = RADEON_CONTEXT(ctx);
646 rrb = radeon_get_depthbuffer(radeon);