From: Rob Clark Date: Thu, 2 Jun 2016 20:17:16 +0000 (-0400) Subject: freedreno: assume builtin shaders do compile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=676c77a923d596cfeb393a780a3d6cb82898e71f;p=mesa.git freedreno: assume builtin shaders do compile Maybe we should switch to ureg to build the builtin shaders. But at any rate, if they fail to compile it is because someone messed them up (or changed TGSI syntax?). CID 1362444 Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_program.c b/src/gallium/drivers/freedreno/freedreno_program.c index ae6c65831bb..db6b258e21c 100644 --- a/src/gallium/drivers/freedreno/freedreno_program.c +++ b/src/gallium/drivers/freedreno/freedreno_program.c @@ -81,7 +81,8 @@ static void * assemble_tgsi(struct pipe_context *pctx, .tokens = toks, }; - tgsi_text_translate(src, toks, ARRAY_SIZE(toks)); + bool ret = tgsi_text_translate(src, toks, ARRAY_SIZE(toks)); + assume(ret); if (frag) return pctx->create_fs_state(pctx, &cso);