Before calling _mesa_create_context(), initialize a dd_function_table struct
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 20 Jan 2004 02:49:27 +0000 (02:49 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 20 Jan 2004 02:49:27 +0000 (02:49 +0000)
commitd3fd7ba8af15bead2f770d68a893449adeb11397
tree2c92f7cb35f2776d6c461378f93b556fc1ca080d
parent988a8862c8379c0312d40353ee4b35537dff59a1
Before calling _mesa_create_context(), initialize a dd_function_table struct
by calling _mesa_init_driver_functions() and then plugging in the driver-
specific functions.
In particular, make sure ctx->Driver.NewTextureObject points to the
appropriate driver function so that _all_ texture objects are augmented
with the driver-specific data.
Put in a bunch of assertions in the texture-related driver functions that
texObj->DriverData is valid.  Remove old dead code in near future.
79 files changed:
src/mesa/Makefile.X11
src/mesa/drivers/dri/fb/fb_dri.c
src/mesa/drivers/dri/ffb/Makefile.solo
src/mesa/drivers/dri/gamma/Makefile.solo
src/mesa/drivers/dri/gamma/gamma_context.c
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_tex.c
src/mesa/drivers/dri/i810/Makefile.solo
src/mesa/drivers/dri/i810/i810context.c
src/mesa/drivers/dri/i810/i810ioctl.c
src/mesa/drivers/dri/i810/i810ioctl.h
src/mesa/drivers/dri/i810/i810tex.c
src/mesa/drivers/dri/i810/i810tex.h
src/mesa/drivers/dri/i830/Makefile.solo
src/mesa/drivers/dri/i830/i830_context.c
src/mesa/drivers/dri/i830/i830_ioctl.c
src/mesa/drivers/dri/i830/i830_ioctl.h
src/mesa/drivers/dri/i830/i830_tex.c
src/mesa/drivers/dri/i830/i830_tex.h
src/mesa/drivers/dri/mga/Makefile.solo
src/mesa/drivers/dri/mga/mga_xmesa.c
src/mesa/drivers/dri/mga/mgadd.c
src/mesa/drivers/dri/mga/mgadd.h
src/mesa/drivers/dri/mga/mgaioctl.c
src/mesa/drivers/dri/mga/mgaioctl.h
src/mesa/drivers/dri/mga/mgatex.c
src/mesa/drivers/dri/mga/mgatex.h
src/mesa/drivers/dri/r128/Makefile.solo
src/mesa/drivers/dri/r128/r128_context.c
src/mesa/drivers/dri/r128/r128_dd.c
src/mesa/drivers/dri/r128/r128_dd.h
src/mesa/drivers/dri/r128/r128_ioctl.c
src/mesa/drivers/dri/r128/r128_ioctl.h
src/mesa/drivers/dri/r128/r128_tex.c
src/mesa/drivers/dri/r128/r128_tex.h
src/mesa/drivers/dri/r200/Makefile.solo
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/r200/r200_context.h
src/mesa/drivers/dri/r200/r200_ioctl.c
src/mesa/drivers/dri/r200/r200_ioctl.h
src/mesa/drivers/dri/r200/r200_state.c
src/mesa/drivers/dri/r200/r200_state.h
src/mesa/drivers/dri/r200/r200_swtcl.c
src/mesa/drivers/dri/r200/r200_tex.c
src/mesa/drivers/dri/r200/r200_tex.h
src/mesa/drivers/dri/radeon/Makefile.solo
src/mesa/drivers/dri/radeon/radeon_context.c
src/mesa/drivers/dri/radeon/radeon_context.h
src/mesa/drivers/dri/radeon/radeon_tex.c
src/mesa/drivers/dri/radeon/radeon_tex.h
src/mesa/drivers/dri/sis/Makefile.solo
src/mesa/drivers/dri/sis/sis_context.c
src/mesa/drivers/dri/sis/sis_dd.c
src/mesa/drivers/dri/sis/sis_dd.h
src/mesa/drivers/dri/sis/sis_tex.c
src/mesa/drivers/dri/sis/sis_tex.h
src/mesa/drivers/dri/tdfx/Makefile.solo
src/mesa/drivers/dri/tdfx/tdfx_context.c
src/mesa/drivers/dri/tdfx/tdfx_dd.c
src/mesa/drivers/dri/tdfx/tdfx_dd.h
src/mesa/drivers/dri/tdfx/tdfx_render.c
src/mesa/drivers/dri/tdfx/tdfx_render.h
src/mesa/drivers/dri/tdfx/tdfx_state.c
src/mesa/drivers/dri/tdfx/tdfx_tex.c
src/mesa/drivers/dri/tdfx/tdfx_tex.h
src/mesa/drivers/fbdev/glfbdev.c
src/mesa/drivers/glide/fxapi.c
src/mesa/drivers/glide/fxddtex.c
src/mesa/drivers/glide/fxdrv.h
src/mesa/drivers/osmesa/osmesa.c
src/mesa/drivers/windows/gdi/wmesa.c
src/mesa/drivers/x11/xm_api.c
src/mesa/drivers/x11/xm_dd.c
src/mesa/drivers/x11/xmesaP.h
src/mesa/main/bufferobj.c
src/mesa/main/context.c
src/mesa/main/context.h
src/mesa/main/dd.h
src/mesa/sources