Skip to content

Commit

Permalink
Add UnormInt2_101010EXT ImageChannelDataType (#444)
Browse files Browse the repository at this point in the history
Used by the following OpenCL extension: KhronosGroup/OpenCL-Docs#1223


Change-Id: I2bffc986855a4c2960b5e0f851e52474754144a1

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
  • Loading branch information
kpet committed Aug 21, 2024
1 parent 1b75a4a commit 69ab0f3
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.bf
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ namespace Spv
UnormInt101010_2 = 16,
UnsignedIntRaw10EXT = 19,
UnsignedIntRaw12EXT = 20,
UnormInt2_101010EXT = 21,
Max = 0x7fffffff,
}

Expand Down
5 changes: 5 additions & 0 deletions include/spirv/unified1/spirv.core.grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -12693,6 +12693,11 @@
"enumerant" : "UnsignedIntRaw12EXT",
"value" : 20,
"version": "1.0"
},
{
"enumerant" : "UnormInt2_101010EXT",
"value" : 21,
"version": "1.0"
}
]
},
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ public enum ImageChannelDataType
UnormInt101010_2 = 16,
UnsignedIntRaw10EXT = 19,
UnsignedIntRaw12EXT = 20,
UnormInt2_101010EXT = 21,
Max = 0x7fffffff,
}

Expand Down
2 changes: 2 additions & 0 deletions include/spirv/unified1/spirv.h
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ typedef enum SpvImageChannelDataType_ {
SpvImageChannelDataTypeUnormInt101010_2 = 16,
SpvImageChannelDataTypeUnsignedIntRaw10EXT = 19,
SpvImageChannelDataTypeUnsignedIntRaw12EXT = 20,
SpvImageChannelDataTypeUnormInt2_101010EXT = 21,
SpvImageChannelDataTypeMax = 0x7fffffff,
} SpvImageChannelDataType;

Expand Down Expand Up @@ -3243,6 +3244,7 @@ inline const char* SpvImageChannelDataTypeToString(SpvImageChannelDataType value
case SpvImageChannelDataTypeUnormInt101010_2: return "UnormInt101010_2";
case SpvImageChannelDataTypeUnsignedIntRaw10EXT: return "UnsignedIntRaw10EXT";
case SpvImageChannelDataTypeUnsignedIntRaw12EXT: return "UnsignedIntRaw12EXT";
case SpvImageChannelDataTypeUnormInt2_101010EXT: return "UnormInt2_101010EXT";
default: return "Unknown";
}
}
Expand Down
2 changes: 2 additions & 0 deletions include/spirv/unified1/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ enum ImageChannelDataType {
ImageChannelDataTypeUnormInt101010_2 = 16,
ImageChannelDataTypeUnsignedIntRaw10EXT = 19,
ImageChannelDataTypeUnsignedIntRaw12EXT = 20,
ImageChannelDataTypeUnormInt2_101010EXT = 21,
ImageChannelDataTypeMax = 0x7fffffff,
};

Expand Down Expand Up @@ -3239,6 +3240,7 @@ inline const char* ImageChannelDataTypeToString(ImageChannelDataType value) {
case ImageChannelDataTypeUnormInt101010_2: return "UnormInt101010_2";
case ImageChannelDataTypeUnsignedIntRaw10EXT: return "UnsignedIntRaw10EXT";
case ImageChannelDataTypeUnsignedIntRaw12EXT: return "UnsignedIntRaw12EXT";
case ImageChannelDataTypeUnormInt2_101010EXT: return "UnormInt2_101010EXT";
default: return "Unknown";
}
}
Expand Down
2 changes: 2 additions & 0 deletions include/spirv/unified1/spirv.hpp11
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ enum class ImageChannelDataType : unsigned {
UnormInt101010_2 = 16,
UnsignedIntRaw10EXT = 19,
UnsignedIntRaw12EXT = 20,
UnormInt2_101010EXT = 21,
Max = 0x7fffffff,
};

Expand Down Expand Up @@ -3239,6 +3240,7 @@ inline const char* ImageChannelDataTypeToString(ImageChannelDataType value) {
case ImageChannelDataTypeUnormInt101010_2: return "UnormInt101010_2";
case ImageChannelDataTypeUnsignedIntRaw10EXT: return "UnsignedIntRaw10EXT";
case ImageChannelDataTypeUnsignedIntRaw12EXT: return "UnsignedIntRaw12EXT";
case ImageChannelDataTypeUnormInt2_101010EXT: return "UnormInt2_101010EXT";
default: return "Unknown";
}
}
Expand Down
3 changes: 2 additions & 1 deletion include/spirv/unified1/spirv.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@
"UnormInt24": 15,
"UnormInt101010_2": 16,
"UnsignedIntRaw10EXT": 19,
"UnsignedIntRaw12EXT": 20
"UnsignedIntRaw12EXT": 20,
"UnormInt2_101010EXT": 21
}
},
{
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ spv = {
UnormInt101010_2 = 16,
UnsignedIntRaw10EXT = 19,
UnsignedIntRaw12EXT = 20,
UnormInt2_101010EXT = 21,
Max = 0x7fffffff,
},

Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@
'UnormInt101010_2' : 16,
'UnsignedIntRaw10EXT' : 19,
'UnsignedIntRaw12EXT' : 20,
'UnormInt2_101010EXT' : 21,
},

'ImageOperandsShift' : {
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spv.d
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ enum ImageChannelDataType : uint
UnormInt101010_2 = 16,
UnsignedIntRaw10EXT = 19,
UnsignedIntRaw12EXT = 20,
UnormInt2_101010EXT = 21,
Max = 0x7fffffff,
}

Expand Down

0 comments on commit 69ab0f3

Please sign in to comment.