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

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