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 <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2016-06-02 16:17:16 -04:00
parent 060c8d245d
commit 676c77a923

View 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);