tilegrid: always add height

Signed-off-by: John McMaster <[email protected]>
This commit is contained in:
John McMaster
2018-10-23 13:23:50 -07:00
parent a27486271c
commit 0403a23c8f
+6 -3
View File
@@ -461,12 +461,15 @@ def add_tile_bits(tile_db, baseaddr, offset, frames, words, height=None):
# Index of first word used within each frame # Index of first word used within each frame
block["offset"] = offset block["offset"] = offset
# Number of words consumed in each frame # Number of words consumed in each frame
block["words"] = words block["height"] = height
# related to words... # related to words...
# deprecated field? Don't worry about for now # deprecated field? Don't worry about for now
if height is not None: # DSP has some differences between height and words
block["height"] = height block["words"] = words
if height is None:
height = words
block["height"] = height
def db_add_bits(database, segments): def db_add_bits(database, segments):