I believe that the Linux kernel DRM (direct rendering) modules are supposed to check the
command stream to ensure that cannot happen.
I suppose that with a very optimized DMA design, this might not be possible. In that case
you'd have to trust the X server and OpenGL driver to take care of it.