dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontext
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 22 Sep 2010 19:07:15 +0000 (15:07 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 22 Sep 2010 19:08:22 +0000 (15:08 -0400)
commit9ec0b2a45e18c045fd3dbcdf846fad7faf97494c
treef31b9a5524a36ba7c403f4811c5abb665790d78b
parentf060ae9ab6492446dbaf4d55665822c11a72d509
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>
include/GL/internal/dri_interface.h
src/egl/drivers/dri2/egl_dri2.c
src/gallium/state_trackers/dri/drm/dri2.c
src/mesa/drivers/dri/intel/intel_screen.c