svga: check return value from svga_set_shader( SVGA3D_SHADERTYPE_GS, NULL)
authorBrian Paul <brianp@vmware.com>
Thu, 22 Jun 2017 18:58:39 +0000 (12:58 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Jun 2017 19:33:48 +0000 (13:33 -0600)
commit041f8ae9f6bab39361263f6c767ea5294f1aa011
tree9003dcf741439eebfb18ea859c6b6ba928a8813d
parent3fbdab8778d3b55ed6053a3781e92aeff85ca174
svga: check return value from svga_set_shader( SVGA3D_SHADERTYPE_GS, NULL)

If the call fails we need to flush the command buffer and retry.  In this
case, we were failing to unbind the GS which led to subsequent errors.

This fixes a bug replaying a Cinebench R15 apitrace in a Linux guest.
VMware bug 1894451

cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_gs.c