Skip to content

Commit

Permalink
- correctly handle descriptor sizes of length 1 (no arrays)
Browse files Browse the repository at this point in the history
  • Loading branch information
polymonster committed May 3, 2023
1 parent b7fa719 commit d27f243
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pmfx_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,9 @@ def get_descriptor_array_size(resource):
if resource["array_size"] == -1:
return None
else:
return resource["array_size"]
return None
if resource["array_size"] != None:
return resource["array_size"]
return 1


# parses the register for the resource unit, ie. : register(t0)
Expand Down

0 comments on commit d27f243

Please sign in to comment.