summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorRoman Li <Roman.Li@amd.com>2019-04-25 11:02:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-05-24 12:20:50 -0500
commit1894478ad1f8fd7366edc5cee49ee9caea0e3d52 (patch)
treea3fb560a3e872bb510c54562077022ffc6224223 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentb2293ac23776123b896479b6a53463753c648d3b (diff)
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 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions