mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
nv50: make unaligned index buffer offsets work again
Messed up in ef7bb28129.
This commit is contained in:
parent
91fb5e0394
commit
a054fd8268
1 changed files with 3 additions and 1 deletions
|
|
@ -568,7 +568,9 @@ nv50_draw_elements(struct nv50_context *nv50, boolean shorten,
|
|||
struct nv04_resource *buf = nv04_resource(nv50->idxbuf.buffer);
|
||||
unsigned pb_start;
|
||||
unsigned pb_bytes;
|
||||
const unsigned base = buf->offset + nv50->idxbuf.offset;
|
||||
const unsigned base = (buf->offset + nv50->idxbuf.offset) & ~3;
|
||||
|
||||
start += ((buf->offset + nv50->idxbuf.offset) & 3) >> (index_size >> 1);
|
||||
|
||||
assert(nouveau_resource_mapped_by_gpu(nv50->idxbuf.buffer));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue