summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nvc0
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-02-24 18:44:55 +0100
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-02-26 14:00:23 +0100
commite1f5c76047ef961a71a67da9dd55de4b09144bc0 (patch)
treefc759e7be20163991075e1bade983ff44f43f400 /src/gallium/drivers/nouveau/nvc0
parentdcf793883378b7c4d2d815409a28dd9bbd7bd633 (diff)
downloadexternal_mesa3d-e1f5c76047ef961a71a67da9dd55de4b09144bc0.zip
external_mesa3d-e1f5c76047ef961a71a67da9dd55de4b09144bc0.tar.gz
external_mesa3d-e1f5c76047ef961a71a67da9dd55de4b09144bc0.tar.bz2
nvc0: make sure to validate compute global buffers on Fermi
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>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_compute.c4
1 files changed, 3 insertions, 1 deletions
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);