From: Samuel Pitoiset Date: Thu, 20 Oct 2016 16:08:44 +0000 (+0200) Subject: nvc0: translate compute shaders at program creation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24e15aa198401d5e8d937d6f8a24757e08820d79;p=mesa.git nvc0: translate compute shaders at program creation This makes shader-db reports results for compute shaders. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- 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; }