projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e781b9e
)
nv50: fix vtxbuf cleanup
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sat, 20 May 2017 08:17:22 +0000
(
04:17
-0400)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Sat, 20 May 2017 08:20:11 +0000
(
04:20
-0400)
Use a user-buffer-aware cleanup function.
Fixes: c24c3b94ed ("gallium: decrease the size of pipe_vertex_buffer - 24 -> 16 bytes")
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nv50/nv50_context.c
b/src/gallium/drivers/nouveau/nv50/nv50_context.c
index d2c37ac276d6cbe9d33ead4618efd62ac6f98026..1ca6a0a178a4089685ce8795565333386a9ef7a7 100644
(file)
--- a/
src/gallium/drivers/nouveau/nv50/nv50_context.c
+++ b/
src/gallium/drivers/nouveau/nv50/nv50_context.c
@@
-140,7
+140,7
@@
nv50_context_unreference_resources(struct nv50_context *nv50)
assert(nv50->num_vtxbufs <= PIPE_MAX_ATTRIBS);
for (i = 0; i < nv50->num_vtxbufs; ++i)
- pipe_
resource_reference(&nv50->vtxbuf[i].buffer.resource, NULL
);
+ pipe_
vertex_buffer_unreference(&nv50->vtxbuf[i]
);
for (s = 0; s < 3; ++s) {
assert(nv50->num_textures[s] <= PIPE_MAX_SAMPLERS);