mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 17:00:27 +01:00
tgsi: Perform a sanity check after reading a shader from text.
This commit is contained in:
parent
3c5ec98e45
commit
10d1dc68a4
1 changed files with 5 additions and 1 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include "tgsi_text.h"
|
||||
#include "tgsi_build.h"
|
||||
#include "tgsi_parse.h"
|
||||
#include "tgsi_sanity.h"
|
||||
#include "tgsi_util.h"
|
||||
|
||||
static boolean is_alpha_underscore( const char *cur )
|
||||
|
|
@ -1064,5 +1065,8 @@ tgsi_text_translate(
|
|||
ctx.tokens_cur = tokens;
|
||||
ctx.tokens_end = tokens + num_tokens;
|
||||
|
||||
return translate( &ctx );
|
||||
if (!translate( &ctx ))
|
||||
return FALSE;
|
||||
|
||||
return tgsi_sanity_check( tokens );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue