[Mesa-dev] [PATCH 2/3] nvc0: make sure to validate compute global buffers on Fermi

Pierre Moreau pierre.morrow at free.fr
Wed Feb 24 19:40:11 UTC 2016


Acked-by: Pierre Moreau <pierre.morrow at free.fr>

On 06:44 PM - Feb 24 2016, Samuel Pitoiset wrote:
> No reason to not validate those global buffers and this might avoid
> fails if someone try to use the global memory from compute programs.
> 
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/nvc0/nvc0_compute.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
> index 7809a11..a664aaf 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
> @@ -304,8 +304,10 @@ nvc0_compute_state_validate(struct nvc0_context *nvc0)
>        nvc0_compute_validate_textures(nvc0);
>     if (nvc0->dirty_cp & NVC0_NEW_CP_SAMPLERS)
>        nvc0_compute_validate_samplers(nvc0);
> +   if (nvc0->dirty_cp & NVC0_NEW_CP_GLOBALS)
> +      nvc0_compute_validate_globals(nvc0);
>  
> -   /* TODO: surfaces, global memory buffers */
> +   /* TODO: surfaces */
>  
>     nvc0_bufctx_fence(nvc0, nvc0->bufctx_cp, false);
>  
> -- 
> 2.6.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160224/6c3b7321/attachment.sig>


More information about the mesa-dev mailing list