i915g: implement cache flushing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Feb 2011 22:40:27 +0000 (23:40 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 27 Feb 2011 21:10:46 +0000 (22:10 +0100)
commitd42c9433b0a3d9b3a198261d8037ce0d4595452d
tree663b65b395504391a908e828c562bbc41ca14e5b
parentf90fa55347c641cd0bcdde121909045f0dedbd66
i915g: implement cache flushing

With an extremely dumb strategy. But it's the same i915c employs.

Also improve the hw_atom code slightly by statically specifying the
required batch space. For extremely variably stuff (shaders, constants)
it would probably be better to add a new parameter to the hw_atom->validate
function.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_blit.c
src/gallium/drivers/i915/i915_context.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_flush.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i915/i915_state_static.c