diff options
author | Charmaine Lee <[email protected]> | 2016-01-20 10:35:56 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-03-21 13:37:40 -0600 |
commit | 47856e59456361f2218e03d997d2735e1a848230 (patch) | |
tree | b45205ee9ed04a6bdb1f80374ed36f53a85cc326 /src/gallium/drivers/svga/svga_draw.c | |
parent | 47cfc83440c3030999a08c0b5fccae860294608c (diff) |
svga: rebind stream output targets
To ensure stream output target surfaces are available for the draw commands,
we need to rebind the current stream output targets at the first draw in the
command buffer.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_draw.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_draw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c index 3eda09acc7c..96f82381708 100644 --- a/src/gallium/drivers/svga/svga_draw.c +++ b/src/gallium/drivers/svga/svga_draw.c @@ -459,6 +459,11 @@ draw_vgpu10(struct svga_hwtnl *hwtnl, if (ret != PIPE_OK) return ret; + /* Rebind stream output targets */ + ret = svga_rebind_stream_output_targets(svga); + if (ret != PIPE_OK) + return ret; + /* Rebind index buffer */ if (svga->state.hw_draw.ib) { struct svga_winsys_context *swc = svga->swc; |