nvc0: translate compute shaders at program creation
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Oct 2016 16:08:44 +0000 (18:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Oct 2016 17:46:18 +0000 (19:46 +0200)
This makes shader-db reports results for compute shaders.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_state.c

index aac296c..928b785 100644 (file)
@@ -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;
 }