diff options
author | David Neto <dneto@google.com> | 2020-07-23 20:42:57 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2020-07-29 17:12:38 -0400 |
commit | 382ab0f058becace23a99ab0eeaf3da2637cd080 (patch) | |
tree | 51013dde269b012898b682ae1dfe7aad524439d5 | |
parent | 28f8a95f08b8aa4a9f4ccad4096736b50e283473 (diff) | |
download | vulkan-validation-layers-382ab0f058becace23a99ab0eeaf3da2637cd080.tar.gz |
Update glslang source files, update static constant names
- HLSL sources moved from ./hlsl to ./glslang/HLSL
- Add CHANGES.md, build_info.py, build_info.h.tmpl
which combine to produce build version information
Use new names for constants imported from SPIRV-Tools
SPIRV-Toosl commit e1a76269b from 2019-03-19 deprecated:
kInstBindlessOut* -> kInstBindlessBoundsOut*
SPIRV-Tools commit 3d62cb814 from 2019-05-29 deprecated:
kInstTessOut* -> kInstTessCtlOut*
kInstCompOutGlobalInvocationId -> kInstCompOutGlobalInvocationIdX
The old names were later removed.
Change-Id: If15bfad8276f91d93008a6f38b79a09106ecde9e
-rwxr-xr-x | build-android/build.py | 5 | ||||
-rw-r--r-- | layers/gpu_validation.cpp | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/build-android/build.py b/build-android/build.py index 7b4d3d32a..80a3f166e 100755 --- a/build-android/build.py +++ b/build-android/build.py @@ -204,12 +204,17 @@ def main(): 'dest_dir': 'third_party/shaderc/third_party/glslang', 'files': ['glslang/OSDependent/osinclude.h', 'Android.mk', + # Build version info is generated frmo the CHANGES.md file. + 'CHANGES.md', + 'build_info.h.tmpl', + 'build_info.py', ], 'dirs': [ 'SPIRV', 'OGLCompilersDLL', 'glslang/GenericCodeGen', 'hlsl', + 'glslang/HLSL', 'glslang/Include', 'glslang/MachineIndependent', 'glslang/OSDependent/Unix', diff --git a/layers/gpu_validation.cpp b/layers/gpu_validation.cpp index 38737a956..c8c3168bb 100644 --- a/layers/gpu_validation.cpp +++ b/layers/gpu_validation.cpp @@ -730,10 +730,10 @@ static void GenerateStageMessage(const uint32_t *debug_record, std::string &msg) << " Instance Index = " << debug_record[kInstVertOutInstanceIndex] << ". "; } break; case spv::ExecutionModelTessellationControl: { - strm << "Stage = Tessellation Control. Invocation ID = " << debug_record[kInstTessOutInvocationId] << ". "; + strm << "Stage = Tessellation Control. Invocation ID = " << debug_record[kInstTessCtlOutInvocationId] << ". "; } break; case spv::ExecutionModelTessellationEvaluation: { - strm << "Stage = Tessellation Eval. Invocation ID = " << debug_record[kInstTessOutInvocationId] << ". "; + strm << "Stage = Tessellation Eval. Invocation ID = " << debug_record[kInstTessCtlOutInvocationId] << ". "; } break; case spv::ExecutionModelGeometry: { strm << "Stage = Geometry. Primitive ID = " << debug_record[kInstGeomOutPrimitiveId] @@ -745,7 +745,7 @@ static void GenerateStageMessage(const uint32_t *debug_record, std::string &msg) << *reinterpret_cast<const float *>(&debug_record[kInstFragOutFragCoordY]) << "). "; } break; case spv::ExecutionModelGLCompute: { - strm << "Stage = Compute. Global invocation ID = " << debug_record[kInstCompOutGlobalInvocationId] << ". "; + strm << "Stage = Compute. Global invocation ID = " << debug_record[kInstCompOutGlobalInvocationIdX] << ". "; } break; case spv::ExecutionModelRayGenerationNV: { strm << "Stage = Ray Generation. Global Launch ID (x,y,z) = (" << debug_record[kInstRayTracingOutLaunchIdX] << ", " @@ -785,12 +785,12 @@ static void GenerateValidationMessage(const uint32_t *debug_record, std::string std::ostringstream strm; switch (debug_record[kInstValidationOutError]) { case 0: { - strm << "Index of " << debug_record[kInstBindlessOutDescIndex] << " used to index descriptor array of length " - << debug_record[kInstBindlessOutDescBound] << ". "; + strm << "Index of " << debug_record[kInstBindlessBoundsOutDescIndex] << " used to index descriptor array of length " + << debug_record[kInstBindlessBoundsOutDescBound] << ". "; vuid_msg = "UNASSIGNED-Descriptor index out of bounds"; } break; case 1: { - strm << "Descriptor index " << debug_record[kInstBindlessOutDescIndex] << " is uninitialized. "; + strm << "Descriptor index " << debug_record[kInstBindlessBoundsOutDescIndex] << " is uninitialized. "; vuid_msg = "UNASSIGNED-Descriptor uninitialized"; } break; default: { |