projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c70b060
)
radeonsi: fix a crash in si_destroy_context if we fail early
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 24 May 2017 16:17:38 +0000
(18:17 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Sun, 28 May 2017 23:52:16 +0000
(
01:52
+0200)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_pipe.c
b/src/gallium/drivers/radeonsi/si_pipe.c
index 909a959bc1cb9b2a966ead62cfddd481f29c661b..de4e5da0e03ebdba0ccab7b9d4a0d0166dced442 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_pipe.c
+++ b/
src/gallium/drivers/radeonsi/si_pipe.c
@@
-45,7
+45,8
@@
static void si_destroy_context(struct pipe_context *context)
* properly.
*/
struct pipe_framebuffer_state fb = {};
- context->set_framebuffer_state(context, &fb);
+ if (context->set_framebuffer_state)
+ context->set_framebuffer_state(context, &fb);
si_release_all_descriptors(sctx);