projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17cbe45
)
nv50: fix crash in nv50_program_destroy
author
Ben Skeggs
<skeggsb@gmail.com>
Mon, 5 Jan 2009 04:56:19 +0000
(15:56 +1100)
committer
Ben Skeggs
<skeggsb@gmail.com>
Mon, 5 Jan 2009 21:05:57 +0000
(08:05 +1100)
src/gallium/drivers/nv50/nv50_program.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv50/nv50_program.c
b/src/gallium/drivers/nv50/nv50_program.c
index
147a98a
..
8414d06
100644
(file)
--- a/
src/gallium/drivers/nv50/nv50_program.c
+++ b/
src/gallium/drivers/nv50/nv50_program.c
@@
-1718,7
+1718,7
@@
nv50_fragprog_validate(struct nv50_context *nv50)
void
nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p)
{
- struct pipe_
winsys *ws = nv50->pipe.winsys
;
+ struct pipe_
screen *pscreen = nv50->pipe.screen
;
while (p->exec_head) {
struct nv50_program_exec *e = p->exec_head;
@@
-1730,7
+1730,7
@@
nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p)
p->exec_size = 0;
if (p->buffer)
- pipe_buffer_reference(
ws
, &p->buffer, NULL);
+ pipe_buffer_reference(
pscreen
, &p->buffer, NULL);
nv50->screen->nvws->res_free(&p->data);