diff options
| author | Noah Abradjian <[email protected]> | 2019-11-22 16:07:24 -0500 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-12-18 16:09:08 -0500 |
| commit | b9f1246df179522bc28fda50b720553c845863db (patch) | |
| tree | 1945d5590926cde83bba5ddb7fac2dd49839656c /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | cf27a6d15d950ed1beb3926469c9eaa6907bbf88 (diff) | |
drm/amd/display: Collapse resource arrays when pipe is disabled
[Why]
Currently, pipe resources are assigned to an index that matches the pipe position.
However, if pipe 1 or 2 is disabled, there will be a gap in the arrays which causes a crash when iterating based on pipe_count.
[How]
Fix resource construct to assign resources to minimum available array index.
Signed-off-by: Noah Abradjian <[email protected]>
Reviewed-by: Yongqiang Sun <[email protected]>
Acked-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions