diff options
author | Axel Davy <[email protected]> | 2014-01-30 16:10:54 +0100 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2014-02-05 22:22:00 -0800 |
commit | 57f94bff71877d45cde6d6dd283972084adb5df2 (patch) | |
tree | 064e91453e1028484ddeff2819de4d97a4955e3a /src/gallium | |
parent | bba1105d52efdf26b9cdf4e389f68d928e5ca3b2 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/dri/drm/dri2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 2a5b7b4e4e0..05896440a01 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -777,6 +777,7 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate) pipe_resource_reference(&img->texture, image->texture); img->level = image->level; img->layer = image->layer; + img->dri_format = image->dri_format; /* This should be 0 for sub images, but dup is also used for base images. */ img->dri_components = image->dri_components; img->loader_private = loaderPrivate; |