gallium: introduce target directory
authorKeith Whitwell <keithw@vmware.com>
Mon, 8 Mar 2010 19:11:35 +0000 (19:11 +0000)
committerKeith Whitwell <keithw@vmware.com>
Mon, 8 Mar 2010 19:11:35 +0000 (19:11 +0000)
commit99f11d0e18e1ff5a433c84d52ffc13b9684c2650
tree37e702c2ed563bcef7b89db84a15a9c8b96f9048
parent90b3baf9b3d0236cbecb171f2e742c9157dd312d
gallium: introduce target directory

Currently there are still at least two functions bundled up inside the
winsys concept:

a) that of a backend resource manager, sometimes capable of performing
   present() operations,

b) the initialization code/routine for the whole driver stack.

The inclusion of (b) makes it difficult to share implementations of
(a) between different drivers.  For instance, a clean xlib winsys
could be of use for software-rasterized VG, GLES, EGL, etc, stacks.
But that is only true as long as there is no dependency from the
winsys to higher level code, as would be the case when we include (b)
in this component.

This change creates a new gallium/targets subtree, specifically for
implementing the glue needed to build individual driver stacks, and
moves that code out of a single example winsys, namely xlib.

Other drivers continue to build unchanged, but hopefully can migrate
to this structure over time.
21 files changed:
configs/autoconf.in
configs/default
configs/linux-cell
configs/linux-dri
configs/linux-egl
configs/linux-i965
configs/linux-opengl-es
src/gallium/include/state_tracker/xlib_sw_winsys.h
src/gallium/state_trackers/glx/xlib/SConscript
src/gallium/state_trackers/glx/xlib/xm_winsys.h
src/gallium/targets/Makefile [new file with mode: 0644]
src/gallium/targets/SConscript [new file with mode: 0644]
src/gallium/targets/libgl-xlib/Makefile [new file with mode: 0644]
src/gallium/targets/libgl-xlib/SConscript [new file with mode: 0644]
src/gallium/targets/libgl-xlib/xlib.c [new file with mode: 0644]
src/gallium/winsys/xlib/Makefile
src/gallium/winsys/xlib/SConscript
src/gallium/winsys/xlib/xlib.c [deleted file]
src/gallium/winsys/xlib/xlib.h
src/gallium/winsys/xlib/xlib_brw_context.c [deleted file]
src/gallium/winsys/xlib/xlib_sw_winsys.c