projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72df3a7
)
svga: check svga_have_vgpu10() in svga_delete_blend_state()
author
Brian Paul
<brianp@vmware.com>
Thu, 22 Feb 2018 20:22:11 +0000
(13:22 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 2 Mar 2018 19:23:50 +0000
(12:23 -0700)
We were calling SVGA3D_vgpu10_DestroyBlendState() when vgpu10 was not
enabled (bs->id==0 by default), resulting in lots of device errors.
Reviewed-by: Neha Bhende<bhenden@vmware.com>
src/gallium/drivers/svga/svga_pipe_blend.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_pipe_blend.c
b/src/gallium/drivers/svga/svga_pipe_blend.c
index a29fbd3ac28e6fab6b2cec3e4da1bf03c5e56f47..04855fa7c95210ce26be5eca1cdeb9f8c01b43a7 100644
(file)
--- a/
src/gallium/drivers/svga/svga_pipe_blend.c
+++ b/
src/gallium/drivers/svga/svga_pipe_blend.c
@@
-361,7
+361,7
@@
static void svga_delete_blend_state(struct pipe_context *pipe,
struct svga_blend_state *bs =
(struct svga_blend_state *) blend;
- if (bs->id != SVGA3D_INVALID_ID) {
+ if (
svga_have_vgpu10(svga) &&
bs->id != SVGA3D_INVALID_ID) {
enum pipe_error ret;
ret = SVGA3D_vgpu10_DestroyBlendState(svga->swc, bs->id);