egl/drm: Fix misused x and y offsets in swrast_put_image2()
authorGwan-gyeong Mun <elongbug@gmail.com>
Wed, 19 Jul 2017 14:05:30 +0000 (15:05 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 1 Aug 2017 17:37:58 +0000 (18:37 +0100)
commit3a5e3aa5a53cff55a5e31766d713a41ffa5a93d7
tree5342f97ea28344927a9219b7cb30a42581f6e667
parent04a40f7d2ad8fc9556c4c3a8742bbf2c948d28a0
egl/drm: Fix misused x and y offsets in swrast_put_image2()

It fixes misused x and y variables on the calculation of the memory copy regions.

Cc: Giovanni Campagna <gcampagna@src.gnome.org>
Fixes: 8430af5ebe1ee8119e14 "Add support for swrast to the DRM EGL platform"
Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
[Eric: use gbm_bo_get_bpp() instead of local function, split clamp patch]
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/platform_drm.c