nvc0: make sure to validate compute global buffers on Fermi
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 24 Feb 2016 17:44:55 +0000 (18:44 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 26 Feb 2016 13:00:23 +0000 (14:00 +0100)
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@gmail.com>
Acked-by: Pierre Moreau <pierre.morrow@free.fr>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c

index 7809a11eeae6a89764ce70f1360a3323453777a8..a664aaf47ce250fb5b5e006088753ba494966f3e 100644 (file)
@@ -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);