[Mesa-dev] [PATCH] r600g: fix streamout on evergreen
Marek Olšák
maraeo at gmail.com
Wed Jan 18 13:51:22 PST 2012
Well spotted, thanks!
Reviewed-by: Marek Olšák <maraeo at gmail.com>
Marek
On Wed, Jan 18, 2012 at 10:46 AM, Vadim Girlin <vadimgirlin at gmail.com> wrote:
> Enable it in the evergreen_context_draw if needed.
> Same as already done in the r600_context_draw for r6xx/r7xx.
>
> Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
> ---
> src/gallium/drivers/r600/evergreen_hw_context.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/src/gallium/drivers/r600/evergreen_hw_context.c b/src/gallium/drivers/r600/evergreen_hw_context.c
> index e75eaf2..9401d82 100644
> --- a/src/gallium/drivers/r600/evergreen_hw_context.c
> +++ b/src/gallium/drivers/r600/evergreen_hw_context.c
> @@ -1168,6 +1168,12 @@ void evergreen_context_draw(struct r600_context *ctx, const struct r600_draw *dr
> r600_context_block_resource_emit_dirty(ctx, dirty_block);
> }
>
> + /* Enable stream out if needed. */
> + if (ctx->streamout_start) {
> + r600_context_streamout_begin(ctx);
> + ctx->streamout_start = FALSE;
> + }
> +
> /* draw packet */
> pm4 = &ctx->pm4[ctx->pm4_cdwords];
> pm4[0] = PKT3(PKT3_INDEX_TYPE, 0, ctx->predicate_drawing);
> --
> 1.7.7.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list