svga: Don't unnecessarily reemit BindGBShader commands v2
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 13 Jun 2014 07:46:54 +0000 (09:46 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 3 Jul 2014 20:26:00 +0000 (22:26 +0200)
commit556a415033223108eb5706364604b3400f497c58
tree10e17010700d7a538dd1989f5dad465c8e973e65
parent824197efd526dec5623b37f2c6078c212c81eb2b
svga: Don't unnecessarily reemit BindGBShader commands v2

The Linux winsys can no longer relocate shader code, so avoid
reemitting BindGBShader commands. They are costly.

v2: Correctly handle errors from SVGA3D_BindGBShader()

Reported-by: Michael Banack <banackm@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/drivers/svga/svga_shader.c
src/gallium/drivers/svga/svga_state_fs.c
src/gallium/drivers/svga/svga_state_vs.c