mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Externals: Update glslang.
This updates glslang to commit 4fc7a33910fb8e40b970d160e1b38ab3f67fe0f3 which is the current version listed in the known_good.json file for the version 1.2.131.2 of the Vulkan-ValidationLayers repo.
This commit is contained in:
18
Externals/glslang/SPIRV/SPVRemapper.cpp
vendored
Executable file → Normal file
18
Externals/glslang/SPIRV/SPVRemapper.cpp
vendored
Executable file → Normal file
@ -220,11 +220,11 @@ namespace spv {
|
||||
bool spirvbin_t::isConstOp(spv::Op opCode) const
|
||||
{
|
||||
switch (opCode) {
|
||||
case spv::OpConstantNull:
|
||||
case spv::OpConstantSampler:
|
||||
error("unimplemented constant type");
|
||||
return true;
|
||||
|
||||
case spv::OpConstantNull:
|
||||
case spv::OpConstantTrue:
|
||||
case spv::OpConstantFalse:
|
||||
case spv::OpConstantComposite:
|
||||
@ -1326,10 +1326,6 @@ namespace spv {
|
||||
case spv::OpTypeReserveId: return 300002;
|
||||
case spv::OpTypeQueue: return 300003;
|
||||
case spv::OpTypePipe: return 300004;
|
||||
|
||||
case spv::OpConstantNull: return 300005;
|
||||
case spv::OpConstantSampler: return 300006;
|
||||
|
||||
case spv::OpConstantTrue: return 300007;
|
||||
case spv::OpConstantFalse: return 300008;
|
||||
case spv::OpConstantComposite:
|
||||
@ -1346,6 +1342,18 @@ namespace spv {
|
||||
hash += w * spv[typeStart+w];
|
||||
return hash;
|
||||
}
|
||||
case spv::OpConstantNull:
|
||||
{
|
||||
std::uint32_t hash = 500009 + hashType(idPos(spv[typeStart+1]));
|
||||
return hash;
|
||||
}
|
||||
case spv::OpConstantSampler:
|
||||
{
|
||||
std::uint32_t hash = 600011 + hashType(idPos(spv[typeStart+1]));
|
||||
for (unsigned w=3; w < wordCount; ++w)
|
||||
hash += w * spv[typeStart+w];
|
||||
return hash;
|
||||
}
|
||||
|
||||
default:
|
||||
error("unknown type opcode");
|
||||
|
Reference in New Issue
Block a user