[Mesa-dev] [PATCH] swr: mark streamout buffers as written
Cherniak, Bruce
bruce.cherniak at intel.com
Sat Nov 19 15:30:51 UTC 2016
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
> On Nov 17, 2016, at 7:49 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list