svga: check svga_have_vgpu10() in svga_delete_blend_state()
authorBrian Paul <brianp@vmware.com>
Thu, 22 Feb 2018 20:22:11 +0000 (13:22 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 2 Mar 2018 19:23:50 +0000 (12:23 -0700)
commitb871a77316f301ae0262fb38036e3583c2a464c8
tree21a75a0d4eb37fa271ea5d43fc2471da3a2754e0
parent72df3a7a3957a13c4a667ffb2295ced7b91e5620
svga: check svga_have_vgpu10() in svga_delete_blend_state()

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