Have non-ES profiles always use EpqNone (no precision qualifier) rather than using highp. This keeps precision qualifiers out of error messages, IL dumps, etc., and avoids the precision propagation algorithm.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20364 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
e406f1c71c
commit
59ddbafb62
4 changed files with 13 additions and 14 deletions
|
|
@ -2442,17 +2442,20 @@ precision_qualifier
|
|||
: HIGH_PRECISION {
|
||||
parseContext.profileRequires($1.line, ENoProfile, 130, 0, "highp precision qualifier");
|
||||
$$.init($1.line);
|
||||
$$.qualifier.precision = EpqHigh;
|
||||
if (parseContext.profile == EEsProfile)
|
||||
$$.qualifier.precision = EpqHigh;
|
||||
}
|
||||
| MEDIUM_PRECISION {
|
||||
parseContext.profileRequires($1.line, ENoProfile, 130, 0, "mediump precision qualifier");
|
||||
$$.init($1.line);
|
||||
$$.qualifier.precision = EpqMedium;
|
||||
if (parseContext.profile == EEsProfile)
|
||||
$$.qualifier.precision = EpqMedium;
|
||||
}
|
||||
| LOW_PRECISION {
|
||||
parseContext.profileRequires($1.line, ENoProfile, 130, 0, "lowp precision qualifier");
|
||||
$$.init($1.line);
|
||||
$$.qualifier.precision = EpqLow;
|
||||
if (parseContext.profile == EEsProfile)
|
||||
$$.qualifier.precision = EpqLow;
|
||||
}
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue