aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorSinclair Yeh <[email protected]>2016-04-21 18:29:31 +0000
committerSinclair Yeh <[email protected]>2016-04-28 18:07:30 +0000
commit7851496a32319237456919575e5f4ba62f74cc7d (patch)
tree3115350947df1fcf593116917c7d9c4bbb0f8aa1 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/vmwgfx: use vmw_cmd_dx_cid_check for query commands. (diff)
downloadkernel-7851496a32319237456919575e5f4ba62f74cc7d.tar.gz
kernel-7851496a32319237456919575e5f4ba62f74cc7d.zip
drm/vmwgfx: Fix order of operation
mode->hdisplay * (var->bits_per_pixel + 7) gets evaluated before the division, potentially making the pitch larger than it should be. Since the original intention is to do a div-round-up, just use the macro instead. Signed-off-by: Sinclair Yeh <[email protected]> Reviewed-by: Thomas Hellstrom <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions