Преглед на файлове

nvc0: reset texture base address after read transfer

tags/android-x86-2.2-r2
Christoph Bumiller преди 14 години
родител
ревизия
c62fc50c88
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4
    2
      src/gallium/drivers/nvc0/nvc0_transfer.c

+ 4
- 2
src/gallium/drivers/nvc0/nvc0_transfer.c Целия файл

@@ -318,6 +318,7 @@ nvc0_miptree_transfer_new(struct pipe_context *pctx,
tx->rect[1].domain = NOUVEAU_BO_GART;

if (usage & PIPE_TRANSFER_READ) {
unsigned base = tx->rect[0].base;
unsigned i;
for (i = 0; i < tx->nlayers; ++i) {
nvc0_m2mf_transfer_rect(pscreen, &tx->rect[1], &tx->rect[0],
@@ -328,9 +329,10 @@ nvc0_miptree_transfer_new(struct pipe_context *pctx,
tx->rect[0].base += mt->layer_stride;
tx->rect[1].base += size;
}
tx->rect[0].z = z;
tx->rect[0].base = base;
tx->rect[1].base = 0;
}
tx->rect[0].z = z;
tx->rect[1].base = 0;

return &tx->base;
}

Loading…
Отказ
Запис