Mesa (master): nvc0: translate compute shaders at program creation

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Oct 20 17:48:15 UTC 2016


Module: Mesa
Branch: master
Commit: 24e15aa198401d5e8d937d6f8a24757e08820d79
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=24e15aa198401d5e8d937d6f8a24757e08820d79

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Oct 20 18:08:44 2016 +0200

nvc0: translate compute shaders at program creation

This makes shader-db reports results for compute shaders.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
index aac296c..928b785 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;
 }
 




More information about the mesa-commit mailing list