summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-10-20 18:08:44 +0200
committerSamuel Pitoiset <[email protected]>2016-10-20 19:46:18 +0200
commit24e15aa198401d5e8d937d6f8a24757e08820d79 (patch)
tree2afb92f20a222732fb8532ad43469c01921f089d /src
parentffd9060b2388dcb4bc4d4e564dab23541f641830 (diff)
nvc0: translate compute shaders at program creation
This makes shader-db reports results for compute shaders. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
index aac296c2b58..928b7855651 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
@@ -685,6 +685,10 @@ nvc0_cp_state_create(struct pipe_context *pipe,
prog->pipe.tokens = tgsi_dup_tokens((const struct tgsi_token *)cso->prog);
+ prog->translated = nvc0_program_translate(
+ prog, nvc0_context(pipe)->screen->base.device->chipset,
+ &nouveau_context(pipe)->debug);
+
return (void *)prog;
}