mirror of
https://github.com/openharmony/third_party_spirv-tools.git
synced 2026-07-20 19:27:02 -04:00
移植spirv-tools,适配vkgl测试套件的编译
Signed-off-by: wangshi <wangshi@kaihong.com>
This commit is contained in:
+3
-5
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2015-2022 The Khronos Group Inc.
|
||||
// Copyright (c) 2015-2020 The Khronos Group Inc.
|
||||
// Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights
|
||||
// reserved.
|
||||
//
|
||||
@@ -40,12 +40,12 @@ struct OpcodeDescPtrLen {
|
||||
static const spv_opcode_table_t kOpcodeTable = {ARRAY_SIZE(kOpcodeTableEntries),
|
||||
kOpcodeTableEntries};
|
||||
|
||||
// Represents a vendor tool entry in the SPIR-V XML Registry.
|
||||
// Represents a vendor tool entry in the SPIR-V XML Regsitry.
|
||||
struct VendorTool {
|
||||
uint32_t value;
|
||||
const char* vendor;
|
||||
const char* tool; // Might be empty string.
|
||||
const char* vendor_tool; // Combination of vendor and tool.
|
||||
const char* vendor_tool; // Combiantion of vendor and tool.
|
||||
};
|
||||
|
||||
const VendorTool vendor_tools[] = {
|
||||
@@ -528,7 +528,6 @@ bool spvOpcodeIsNonUniformGroupOperation(SpvOp opcode) {
|
||||
case SpvOpGroupNonUniformLogicalXor:
|
||||
case SpvOpGroupNonUniformQuadBroadcast:
|
||||
case SpvOpGroupNonUniformQuadSwap:
|
||||
case SpvOpGroupNonUniformRotateKHR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
@@ -632,7 +631,6 @@ bool spvOpcodeIsDebug(SpvOp opcode) {
|
||||
case SpvOpString:
|
||||
case SpvOpLine:
|
||||
case SpvOpNoLine:
|
||||
case SpvOpModuleProcessed:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user