Skip to content

Commit

Permalink
Cache address-space-legalization of kIROp_Store (#4480)
Browse files Browse the repository at this point in the history
* Cache address-space-legalization  of `kIROp_Store`

without caching we will infinetly loop re-processing the same `kIROp_Store`

* uncomment tests which should now work with metal

* disable gfx backend failing tests
  • Loading branch information
ArielG-NV authored Jun 27, 2024
1 parent cb61011 commit 5dd8f29
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/slang/slang-ir-specialize-address-space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ namespace Slang
if (addrSpace != AddressSpace::Generic)
{
mapVarValueToAddrSpace[inst->getOperand(0)] = addrSpace;
mapInstToAddrSpace[inst] = addrSpace;
changed = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// aggregate type that includes an opaque type

//TEST(compute):COMPARE_COMPUTE:
// GFX backend fails
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl

struct Things
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Test that a function/method can have an `out` parameter of opaque type

//TEST(compute):COMPARE_COMPUTE:
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl

//TEST_INPUT:set gX = ubuffer(data=[16 17 18 19], stride=4)
RWStructuredBuffer<int> gX;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// aggregate type that includes an opaque type

//TEST(compute):COMPARE_COMPUTE:
// GFX backend fails
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl

struct Things
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Test that a function/method can have an `out` parameter of opaque type

//TEST(compute):COMPARE_COMPUTE:
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl

//TEST_INPUT:set gThings = ubuffer(data=[16 17 18 19], stride=4)
RWStructuredBuffer<int> gThings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// aggregate type that includes an opaque type

//TEST(compute):COMPARE_COMPUTE:
// GFX backend fails
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl

struct Things
Expand Down

0 comments on commit 5dd8f29

Please sign in to comment.