mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-21 11:10:04 +00:00
add support for SPV_INTEL_global_variable_host_access (#5786)
This commit is contained in:
parent
04ad1e1ce3
commit
20788a4c5f
@ -673,6 +673,7 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
|
||||
case SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT:
|
||||
case SPV_OPERAND_TYPE_FPENCODING:
|
||||
case SPV_OPERAND_TYPE_OPTIONAL_FPENCODING:
|
||||
case SPV_OPERAND_TYPE_HOST_ACCESS_QUALIFIER:
|
||||
case SPV_OPERAND_TYPE_LOAD_CACHE_CONTROL:
|
||||
case SPV_OPERAND_TYPE_STORE_CACHE_CONTROL:
|
||||
case SPV_OPERAND_TYPE_NAMED_MAXIMUM_NUMBER_OF_REGISTERS: {
|
||||
|
@ -418,6 +418,16 @@ INSTANTIATE_TEST_SUITE_P(
|
||||
"OpDecorate %1 CacheControlStoreINTEL 3 StreamingINTEL\n",
|
||||
})));
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
HostAccessINTEL, RoundTripInstructionsTest,
|
||||
Combine(::testing::Values(SPV_ENV_UNIVERSAL_1_0),
|
||||
::testing::ValuesIn(std::vector<std::string>{
|
||||
"OpDecorate %1 HostAccessINTEL NoneINTEL \"none\"\n",
|
||||
"OpDecorate %1 HostAccessINTEL ReadINTEL \"read\"\n",
|
||||
"OpDecorate %1 HostAccessINTEL WriteINTEL \"write\"\n",
|
||||
"OpDecorate %1 HostAccessINTEL ReadWriteINTEL \"readwrite\"\n",
|
||||
})));
|
||||
|
||||
using MaskSorting = TextToBinaryTest;
|
||||
|
||||
TEST_F(MaskSorting, MasksAreSortedFromLSBToMSB) {
|
||||
|
Loading…
Reference in New Issue
Block a user