[Mesa-dev] [PATCH] swr: don't clear all dirty bits when changing so targets
Cherniak, Bruce
bruce.cherniak at intel.com
Mon Nov 28 19:27:38 UTC 2016
oops.. obvious typo.
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
> On Nov 25, 2016, at 8:09 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>
> Among other things, blits would clear existing SO targets which would
> cause a bunch of updates from u_blitter to be missed.
>
> Fixes fbo-scissor-blit fbo, probably among many others.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> src/gallium/drivers/swr/swr_state.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
> index 8541aca..f1cf4ae 100644
> --- a/src/gallium/drivers/swr/swr_state.cpp
> +++ b/src/gallium/drivers/swr/swr_state.cpp
> @@ -1559,7 +1559,7 @@ swr_set_so_targets(struct pipe_context *pipe,
>
> swr->num_so_targets = num_targets;
>
> - swr->dirty = SWR_NEW_SO;
> + swr->dirty |= SWR_NEW_SO;
> }
>
>
> --
> 2.7.3
>
More information about the mesa-dev
mailing list