projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gallium: decrease the size of pipe_vertex_buffer - 24 -> 16 bytes
[mesa.git]
/
src
/
gallium
/
drivers
/
nouveau
/
nv50
/
nv50_push.c
diff --git
a/src/gallium/drivers/nouveau/nv50/nv50_push.c
b/src/gallium/drivers/nouveau/nv50/nv50_push.c
index 6a53ad097685e05411ff1258ba3280516072907a..d3419012e980da8191f3ea3fb8d9dee5460e984b 100644
(file)
--- a/
src/gallium/drivers/nouveau/nv50/nv50_push.c
+++ b/
src/gallium/drivers/nouveau/nv50/nv50_push.c
@@
-264,11
+264,11
@@
nv50_push_vbo(struct nv50_context *nv50, const struct pipe_draw_info *info)
const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[i];
const uint8_t *data;
const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[i];
const uint8_t *data;
- if (unlikely(
vb->
buffer))
+ if (unlikely(
!vb->is_user_
buffer))
data = nouveau_resource_map_offset(&nv50->base,
data = nouveau_resource_map_offset(&nv50->base,
- nv04_resource(vb->buffer), vb->buffer_offset, NOUVEAU_BO_RD);
+ nv04_resource(vb->buffer
.resource
), vb->buffer_offset, NOUVEAU_BO_RD);
else
else
- data = vb->
user_buff
er;
+ data = vb->
buffer.us
er;
if (apply_bias && likely(!(nv50->vertex->instance_bufs & (1 << i))))
data += (ptrdiff_t)info->index_bias * vb->stride;
if (apply_bias && likely(!(nv50->vertex->instance_bufs & (1 << i))))
data += (ptrdiff_t)info->index_bias * vb->stride;