Hi,
X is a standard for communication between a server and it's clients. The "back end" (or how X talks to video hardware) can be anything.
For normal OSs, X would use some (OS dependant) video driver interface to access the OSs existing video drivers.
For broken OSs, there is no video driver and no video driver interface for X to rely on. An example of this would be old versions of Linux, where "video support" meant text mode consoles and nothing else. In this case the only way to support X is to build video drivers into the X server.
For monolithic kernels (where device drivers are meant to be in the kernel) this can mean breaking the kernel's protection mechanisms to allow the video code in the X server to run. This causes protection/security problems, but also causes compatability problems between X and other processes that use video directly (e.g. any application that uses SVGAlib) and makes it extremely difficult if X crashes (leaving the video in an unknown state). For examples, see the
old GGI/KGI FAQ.
IMHO (for Linux) it's a huge mess caused by original design flaws ("Oh, video is hard, let's ignore it" followed by "Oh, there's no video support, we'll have to hack it into the X server", followed by "the X server is crap because of video driver hacks, let's all do seperate/different things to fix it"). At the moment there's a mixture of different techniques used in Linux, where the X server might use kernel drivers/modules, VESA, or contain it's own video code for direct hardware access.
For a sane design you'd want layers - something like the OSI module (but for video, keyboard, mouse, sound, joystick, etc; rather than for networking). For an example, the bottom layer would be hardware, the next layer would be drivers, the next layer could be console, then the GUI layer, then the application layer at the top.
Cheers,
Brendan