nouveau: rewrite winsys in terms of drm_api, support dri2 state tracker
authorBen Skeggs <bskeggs@redhat.com>
Tue, 17 Mar 2009 22:22:35 +0000 (08:22 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 17 Mar 2009 23:44:40 +0000 (09:44 +1000)
commite00ae524e236afba1305150cacd634eaa1f5460b
treee6173fc3a85b6f6b66691e4a880257a39764fd6e
parentb46fcf25be4d1d5a5d072fbce03c2490bf41203f
nouveau: rewrite winsys in terms of drm_api, support dri2 state tracker

drm_api is a set of hooks used by the dri2 state tracker, this wraps our
dri1 code around the same set of hooks.

Currently the dri2 build will produce nouveau_dri2.so which you'll need
to install as nouveau_dri.so if you wish to try it.  The dri2 state
tracker doesn't make it easy for a driver to support both paths in the
same binary.
34 files changed:
src/gallium/drivers/nouveau/nouveau_winsys.h
src/gallium/winsys/drm/nouveau/Makefile
src/gallium/winsys/drm/nouveau/common/Makefile [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_context.c [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_context.h [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_dri.h [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_local.h [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_lock.c [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_screen.c [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_screen.h [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_winsys.c [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.h [deleted file]
src/gallium/winsys/drm/nouveau/common/nouveau_winsys_softpipe.c [deleted file]
src/gallium/winsys/drm/nouveau/dri/Makefile
src/gallium/winsys/drm/nouveau/dri/nouveau_context.c [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/dri/nouveau_context.h [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/dri/nouveau_context_dri.c [deleted file]
src/gallium/winsys/drm/nouveau/dri/nouveau_context_dri.h [deleted file]
src/gallium/winsys/drm/nouveau/dri/nouveau_dri.h [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/dri/nouveau_lock.c [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/dri/nouveau_screen.c [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/dri/nouveau_screen.h [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/dri/nouveau_screen_dri.c [deleted file]
src/gallium/winsys/drm/nouveau/dri/nouveau_screen_dri.h [deleted file]
src/gallium/winsys/drm/nouveau/dri/nouveau_swapbuffers.c
src/gallium/winsys/drm/nouveau/dri/nouveau_swapbuffers.h
src/gallium/winsys/drm/nouveau/dri2/Makefile [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/drm/Makefile [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.h [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/drm/nouveau_winsys.c [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/drm/nouveau_winsys_pipe.c [new file with mode: 0644]
src/gallium/winsys/drm/nouveau/drm/nouveau_winsys_pipe.h [new file with mode: 0644]