Skip to content

Commit d27f243

Browse files
committed
- correctly handle descriptor sizes of length 1 (no arrays)
1 parent b7fa719 commit d27f243

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pmfx_pipeline.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,9 @@ def get_descriptor_array_size(resource):
408408
if resource["array_size"] == -1:
409409
return None
410410
else:
411-
return resource["array_size"]
412-
return None
411+
if resource["array_size"] != None:
412+
return resource["array_size"]
413+
return 1
413414

414415

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

0 commit comments

Comments
 (0)