summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-09-22 15:07:15 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-09-22 15:08:22 -0400
commit9ec0b2a45e18c045fd3dbcdf846fad7faf97494c (patch)
treef31b9a5524a36ba7c403f4811c5abb665790d78b /src/gallium/state_trackers/dri
parentf060ae9ab6492446dbaf4d55665822c11a72d509 (diff)
downloadexternal_mesa3d-9ec0b2a45e18c045fd3dbcdf846fad7faf97494c.zip
external_mesa3d-9ec0b2a45e18c045fd3dbcdf846fad7faf97494c.tar.gz
external_mesa3d-9ec0b2a45e18c045fd3dbcdf846fad7faf97494c.tar.bz2
dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontext
We can't expect to have a context when this is called, and we don't need one so just require a __DRIscreen instead. Reported by Yu Dai <yu.dai@intel.com>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index 596309b..135f66c 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -305,11 +305,11 @@ dri2_lookup_egl_image(struct dri_context *ctx, void *handle)
}
static __DRIimage *
-dri2_create_image_from_name(__DRIcontext *context,
+dri2_create_image_from_name(__DRIscreen *_screen,
int width, int height, int format,
int name, int pitch, void *loaderPrivate)
{
- struct dri_screen *screen = dri_screen(context->driScreenPriv);
+ struct dri_screen *screen = dri_screen(_screen);
__DRIimage *img;
struct pipe_resource templ;
struct winsys_handle whandle;