diff options
author | Rob Clark <[email protected]> | 2016-06-02 16:17:16 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-06-02 16:29:32 -0400 |
commit | 676c77a923d596cfeb393a780a3d6cb82898e71f (patch) | |
tree | fde4c730e38dbb8210a6edc49817f9f778dec229 /src/gallium/drivers/freedreno/freedreno_program.c | |
parent | 060c8d245deb83aeb412de98810cad6052aafb78 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_program.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_program.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |