svga: Fix surface view error handling
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 4 Sep 2015 10:26:05 +0000 (03:26 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 7 Sep 2015 08:25:08 +0000 (01:25 -0700)
commitf1ef89eaab765789d777a5bd1bdfcb7811e3a22d
treeac5e1b87e873131952f108ad91938ae0afc35899
parent1432a182414352e853bfdad997591598e621fd73
svga: Fix surface view error handling

Make sure errors are correcly propagated.
Also don't flush during state emission if emission fails.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_surface.c