Vulkan: Declare common SPIR-V ids in the compiler

The SPIR-V transformer no longer needs to discover these ids.

Bug: angleproject:7220
Change-Id: I7082e831308eaac97ace3c128f398ff5f5497739
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4573825
Reviewed-by: Yuxin Hu <yuxinhu@google.com>
Reviewed-by: Charlie Lao <cclao@google.com>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Shahbaz Youssefi
2023-05-31 11:12:33 -04:00
committed by Angle LUCI CQ
parent 5f833ff2ae
commit 4ff41604e7
8 changed files with 324 additions and 379 deletions

View File

@@ -26,7 +26,7 @@
// Version number for shader translation API.
// It is incremented every time the API changes.
#define ANGLE_SH_VERSION 332
#define ANGLE_SH_VERSION 333
enum ShShaderSpec
{
@@ -1026,7 +1026,6 @@ enum ReservedIds
kIdIntOne,
kIdIntTwo,
kIdIntThree,
kIdFloatHalf,
// Type pointers
kIdIntInputTypePointer,
@@ -1037,6 +1036,7 @@ enum ReservedIds
kIdTransformPositionFunction,
// Transform feedback support
kIdXfbExtensionPosition,
kIdXfbEmulationGetOffsetsFunction,
kIdXfbEmulationCaptureFunction,
kIdXfbEmulationBufferZero,
@@ -1084,8 +1084,6 @@ constexpr uint32_t kDriverUniformsMiscAlphaToCoverageMask = 0x1;
extern const char kAtomicCountersBlockName[];
// Transform feedback emulation support
extern const char kXfbEmulationGetOffsetsFunctionName[];
extern const char kXfbEmulationCaptureFunctionName[];
extern const char kXfbEmulationBufferBlockName[];
extern const char kXfbEmulationBufferName[];
extern const char kXfbEmulationBufferFieldName[];
@@ -1093,9 +1091,6 @@ extern const char kXfbEmulationBufferFieldName[];
// Transform feedback extension support
extern const char kXfbExtensionPositionOutName[];
// Pre-rotation support
extern const char kTransformPositionFunctionName[];
// EXT_shader_framebuffer_fetch and EXT_shader_framebuffer_fetch_non_coherent
extern const char kInputAttachmentName[];