diff options
| author | Roman Li <Roman.Li@amd.com> | 2019-04-25 18:02:30 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-05-24 20:20:50 +0300 |
| commit | 1894478ad1f8fd7366edc5cee49ee9caea0e3d52 (patch) | |
| tree | a3fb560a3e872bb510c54562077022ffc6224223 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | b2293ac23776123b896479b6a53463753c648d3b (diff) | |
| download | linux-1894478ad1f8fd7366edc5cee49ee9caea0e3d52.tar.xz | |
drm/amd/display: Fill plane attrs only for valid pxl format
[Why]
In fill_plane_buffer_attributes() we calculate chroma/luma
assuming that the surface_pixel_format is always valid.
If it's not the case, there's a risk of divide by zero error.
[How]
Check if format valid before calculating pixel format attributes
Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
