~ubuntu-branches/ubuntu/raring/mesa/raring-proposed

« back to all changes in this revision

Viewing changes to src/gallium/drivers/r600/r600_hw_context.c

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2013-03-14 12:18:29 UTC
  • mfrom: (1.7.14)
  • Revision ID: package-import@ubuntu.com-20130314121829-bv7c0z6t1pob5ket
Tags: 9.0.3-0ubuntu1
New upstream release. (LP: #1134466)

Show diffs side-by-side

added added

removed removed

Lines of Context:
635
635
{
636
636
        struct r600_atom *state;
637
637
 
 
638
        if (!ctx->ws->cs_memory_below_limit(ctx->cs, ctx->vram, ctx->gtt)) {
 
639
                ctx->gtt = 0;
 
640
                ctx->vram = 0;
 
641
                r600_flush(&ctx->context, NULL, RADEON_FLUSH_ASYNC);
 
642
                return;
 
643
        }
 
644
        /* all will be accounted once relocation are emited */
 
645
        ctx->gtt = 0;
 
646
        ctx->vram = 0;
 
647
 
638
648
        /* The number of dwords we already used in the CS so far. */
639
649
        num_dw += ctx->cs->cdw;
640
650
 
953
963
 
954
964
        ctx->pm4_dirty_cdwords = 0;
955
965
        ctx->flags = 0;
 
966
        ctx->gtt = 0;
 
967
        ctx->vram = 0;
956
968
 
957
969
        /* Begin a new CS. */
958
970
        r600_emit_atom(ctx, &ctx->start_cs_cmd.atom);