[Mesa-dev] [PATCH] swr: mark streamout buffers as written
Ilia Mirkin
imirkin at alum.mit.edu
Fri Nov 18 01:49:33 UTC 2016
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/swr/swr_state.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
index 1c58d2a..520faea 100644
--- a/src/gallium/drivers/swr/swr_state.cpp
+++ b/src/gallium/drivers/swr/swr_state.cpp
@@ -682,6 +682,13 @@ swr_update_resource_status(struct pipe_context *pipe,
swr_resource_read(ib->buffer);
}
+ /* transform feedback buffers */
+ for (uint32_t i = 0; i < ctx->num_so_targets; i++) {
+ struct pipe_stream_output_target *target = ctx->so_targets[i];
+ if (target && target->buffer)
+ swr_resource_write(target->buffer);
+ }
+
/* texture sampler views */
for (uint32_t j : {PIPE_SHADER_VERTEX, PIPE_SHADER_FRAGMENT}) {
for (uint32_t i = 0; i < ctx->num_sampler_views[j]; i++) {
--
2.7.3
More information about the mesa-dev
mailing list