From 676c77a923d596cfeb393a780a3d6cb82898e71f Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 2 Jun 2016 16:17:16 -0400 Subject: [PATCH] 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 --- src/gallium/drivers/freedreno/freedreno_program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2