egl/dri2: Avoid sign extension when building modifier
authorDaniel Stone <daniels@collabora.com>
Mon, 5 Jun 2017 13:30:02 +0000 (14:30 +0100)
committerDaniel Stone <daniels@collabora.com>
Thu, 8 Jun 2017 21:27:30 +0000 (22:27 +0100)
commit11e549ae3f3ce022fb22af933a7d16bbb23e3882
tree5929e37fb3bc852e286d05392e04ee4fd737fc97
parent142536a0e32455a485d979d11188fd861882f437
egl/dri2: Avoid sign extension when building modifier

Since the EGL attributes are signed integers, a straight OR would
also perform sign extension,

Fixes: 6f10e7c37a ("egl/dri2: Create EGLImages with dmabuf modifiers")
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/egl/drivers/dri2/egl_dri2.c