Rev 3263 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3263 | Rev 3266 | ||
---|---|---|---|
Line 3774... | Line 3774... | ||
3774 | DBG(("%s: handle=%d, pos=%d, delta=%d, domains=%08x\n", |
3774 | DBG(("%s: handle=%d, pos=%d, delta=%d, domains=%08x\n", |
3775 | __FUNCTION__, bo ? bo->handle : 0, pos, delta, read_write_domain)); |
3775 | __FUNCTION__, bo ? bo->handle : 0, pos, delta, read_write_domain)); |
Line 3776... | Line 3776... | ||
3776 | 3776 | ||
Line 3777... | Line 3777... | ||
3777 | assert((read_write_domain & 0x7fff) == 0 || bo != NULL); |
3777 | assert((read_write_domain & 0x7fff) == 0 || bo != NULL); |
- | 3778 | ||
- | 3779 | if( bo != NULL && bo->handle == -2) |
|
- | 3780 | { |
|
- | 3781 | if (bo->exec == NULL) |
|
- | 3782 | kgem_add_bo(kgem, bo); |
|
- | 3783 | ||
- | 3784 | if (read_write_domain & 0x7fff && !bo->dirty) { |
|
- | 3785 | assert(!bo->snoop || kgem->can_blt_cpu); |
|
3778 | 3786 | __kgem_bo_mark_dirty(bo); |
|
- | 3787 | } |
|
Line 3779... | Line 3788... | ||
3779 | // if( bo != NULL && bo->handle == -1) |
3788 | return 0; |
3780 | // return 0; |
3789 | }; |
3781 | 3790 | ||
3782 | index = kgem->nreloc++; |
3791 | index = kgem->nreloc++; |