SPV: Fix issue #369, don't support gl_NumSamples -> SPIR-V.
This commit is contained in:
parent
f37f4d23fc
commit
bc5196c003
5 changed files with 15 additions and 6 deletions
|
|
@ -2,5 +2,5 @@
|
|||
// For the version, it uses the latest git tag followed by the number of commits.
|
||||
// For the date, it uses the current date (when then script is run).
|
||||
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1726"
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1727"
|
||||
#define GLSLANG_DATE "02-Jan-2017"
|
||||
|
|
|
|||
|
|
@ -3010,14 +3010,18 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|||
"flat in int gl_PrimitiveID;"
|
||||
);
|
||||
|
||||
if (version >= 400)
|
||||
if (version >= 400) {
|
||||
stageBuiltins[EShLangFragment].append(
|
||||
"flat in int gl_SampleID;"
|
||||
" in vec2 gl_SamplePosition;"
|
||||
"flat in int gl_SampleMaskIn[];"
|
||||
" out int gl_SampleMask[];"
|
||||
"uniform int gl_NumSamples;"
|
||||
);
|
||||
if (spvVersion.spv == 0)
|
||||
stageBuiltins[EShLangFragment].append(
|
||||
"uniform int gl_NumSamples;"
|
||||
);
|
||||
}
|
||||
|
||||
if (version >= 430)
|
||||
stageBuiltins[EShLangFragment].append(
|
||||
|
|
@ -3074,8 +3078,11 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|||
" in mediump vec2 gl_SamplePosition;"
|
||||
"flat in highp int gl_SampleMaskIn[];"
|
||||
" out highp int gl_SampleMask[];"
|
||||
"uniform lowp int gl_NumSamples;"
|
||||
);
|
||||
if (spvVersion.spv == 0)
|
||||
stageBuiltins[EShLangFragment].append( // GL_OES_sample_variables
|
||||
"uniform lowp int gl_NumSamples;"
|
||||
);
|
||||
}
|
||||
stageBuiltins[EShLangFragment].append(
|
||||
"highp float gl_FragDepthEXT;" // GL_EXT_frag_depth
|
||||
|
|
|
|||
|
|
@ -2502,7 +2502,6 @@ void TParseContext::atomicUintCheck(const TSourceLoc& loc, const TType& type, co
|
|||
|
||||
void TParseContext::transparentCheck(const TSourceLoc& loc, const TType& type, const TString& /*identifier*/)
|
||||
{
|
||||
// double standard due to gl_NumSamples
|
||||
if (parsingBuiltins)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue