This should help catch odd bugs at the callsites rather than much later
on with completely bogus bo indices.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
bkref = cli_kref_get(push->client, bo);
krel = &krec->reloc[krec->nr_reloc++];
bkref = cli_kref_get(push->client, bo);
krel = &krec->reloc[krec->nr_reloc++];
+ assert(pkref);
+ assert(bkref);
krel->reloc_bo_index = pkref - krec->buffer;
krel->reloc_bo_offset = (push->cur - nvpb->ptr) * 4;
krel->bo_index = bkref - krec->buffer;
krel->reloc_bo_index = pkref - krec->buffer;
krel->reloc_bo_offset = (push->cur - nvpb->ptr) * 4;
krel->bo_index = bkref - krec->buffer;
if (bo) {
kref = cli_kref_get(push->client, bo);
if (bo) {
kref = cli_kref_get(push->client, bo);
kpsh = &krec->push[krec->nr_push++];
kpsh->bo_index = kref - krec->buffer;
kpsh->offset = offset;
kpsh = &krec->push[krec->nr_push++];
kpsh->bo_index = kref - krec->buffer;
kpsh->offset = offset;
if (cli_push_get(push->client, bo) == push) {
kref = cli_kref_get(push->client, bo);
if (cli_push_get(push->client, bo) == push) {
kref = cli_kref_get(push->client, bo);
if (kref->read_domains)
flags |= NOUVEAU_BO_RD;
if (kref->write_domains)
if (kref->read_domains)
flags |= NOUVEAU_BO_RD;
if (kref->write_domains)