summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_context.h
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2011-03-06 12:36:46 +0100
committerDaniel Vetter <[email protected]>2011-03-10 23:04:20 +0100
commitfb3b712b84528b192834d3ba3df557b25bbe6e6e (patch)
treefe93766c5267e1b63df5b82bb2348d11e66a4ee5 /src/gallium/drivers/i915/i915_context.h
parent6ad4a11b3e14fcccf662d8ccc58486c16ce0c9f4 (diff)
i915g: implement surface clear functions using hw-clear
Tested by temporarily using util_clear even when not using the blitter. Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_context.h')
-rw-r--r--src/gallium/drivers/i915/i915_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_context.h b/src/gallium/drivers/i915/i915_context.h
index ed3fb4796b3..96abaf3f23a 100644
--- a/src/gallium/drivers/i915/i915_context.h
+++ b/src/gallium/drivers/i915/i915_context.h
@@ -38,6 +38,7 @@
#include "tgsi/tgsi_scan.h"
#include "util/u_slab.h"
+#include "util/u_blitter.h"
struct i915_winsys;
@@ -239,6 +240,8 @@ struct i915_context {
struct i915_winsys_batchbuffer *batch;
+ struct blitter_context* blitter;
+
/** Vertex buffer */
struct i915_winsys_buffer *vbo;
size_t vbo_offset;
@@ -332,6 +335,9 @@ void i915_clear_blitter(struct pipe_context *pipe, unsigned buffers, const float
double depth, unsigned stencil);
void i915_clear_render(struct pipe_context *pipe, unsigned buffers, const float *rgba,
double depth, unsigned stencil);
+void i915_clear_emit(struct pipe_context *pipe, unsigned buffers, const float *rgba,
+ double depth, unsigned stencil,
+ unsigned destx, unsigned desty, unsigned width, unsigned height);
/***********************************************************************