freedreno: allow ctx->draw_vbo to fail
authorRob Clark <robclark@freedesktop.org>
Tue, 3 May 2016 22:36:52 +0000 (18:36 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 4 May 2016 15:25:55 +0000 (11:25 -0400)
commit2e117a7649c1972cf36ec874d852a3e85d4750fa
tree2620f054edc992bcda3de08a00781129dbe40122
parent291ac872a445f3edebd668b27e910a79e1de5a00
freedreno: allow ctx->draw_vbo to fail

Pretty much only happens if shader variant compile fails.  But in this
case, if we haven't emitted cmdstream, we don't want to set needs_flush.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a2xx/fd2_draw.c
src/gallium/drivers/freedreno/a3xx/fd3_draw.c
src/gallium/drivers/freedreno/a4xx/fd4_draw.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_draw.c