[Mesa-dev] [PATCH] nv50: Mark compute states as dirty on context switch

Samuel Pitoiset samuel.pitoiset at gmail.com
Sun Mar 13 21:22:17 UTC 2016


Well, without a new validation path for compute on Tesla this won't 
change anything because nv50_state_validate() is 3d-related and it 
should be never called by compute.

On 03/13/2016 10:11 PM, Pierre Moreau wrote:
> Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
> ---
>   src/gallium/drivers/nouveau/nv50/nv50_state_validate.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/nouveau/nv50/nv50_state_validate.c b/src/gallium/drivers/nouveau/nv50/nv50_state_validate.c
> index 5536978..d06ba4a 100644
> --- a/src/gallium/drivers/nouveau/nv50/nv50_state_validate.c
> +++ b/src/gallium/drivers/nouveau/nv50/nv50_state_validate.c
> @@ -437,6 +437,7 @@ nv50_switch_pipe_context(struct nv50_context *ctx_to)
>         ctx_to->state = ctx_to->screen->save_state;
>
>      ctx_to->dirty = ~0;
> +   ctx_to->dirty_cp = ~0;
>      ctx_to->viewports_dirty = ~0;
>      ctx_to->scissors_dirty = ~0;
>
>


More information about the mesa-dev mailing list