gallium/dri2: Fix dri2_dup_image
authorAxel Davy <axel.davy@ens.fr>
Thu, 30 Jan 2014 15:10:54 +0000 (16:10 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 6 Feb 2014 06:22:00 +0000 (22:22 -0800)
commit57f94bff71877d45cde6d6dd283972084adb5df2
tree064e91453e1028484ddeff2819de4d97a4955e3a
parentbba1105d52efdf26b9cdf4e389f68d928e5ca3b2
gallium/dri2: Fix dri2_dup_image

dri2_dup_image was not copying the dri_format field.

This was causing some bugs, for example:
. we create an gbm_bo.
. we get an EGLImage from the gbm_bo.
. Bug: impossible to get again the gbm_bo from the EGLImage by
  importing. (gbm dri2 backend)

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/dri/drm/dri2.c