freedreno: assume builtin shaders do compile
authorRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 20:17:16 +0000 (16:17 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 20:29:32 +0000 (16:29 -0400)
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 <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_program.c

index ae6c65831bb262f434e6907fca196947f9abec81..db6b258e21c0be31a025925309f7c30887cdb1af 100644 (file)
@@ -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);