summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_batch.h
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2011-03-10 23:04:10 +0100
committerDaniel Vetter <[email protected]>2011-03-10 23:04:10 +0100
commit6358e6371b31671acbfa7c00336673f62ee928c5 (patch)
tree17f26ceeed2d57e82e9bcedd7d1d3292061d48bd /src/gallium/drivers/i915/i915_batch.h
parent8c420db1c4763d8d4d71ce8d835fc09a7a269d4c (diff)
i915g: implement hw clear
Benefits: - spares us a relocation. - needed for zone rendering (if that ever happens). - just awesome. v2: Rename the debug option. Completely disabling the blitter is required for Y tiling to work, so this option will cover other code paths in the future. v3: Implement suggestions by Jakob Bornecrantz. Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_batch.h')
-rw-r--r--src/gallium/drivers/i915/i915_batch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_batch.h b/src/gallium/drivers/i915/i915_batch.h
index 039c8713570..ce2691b2fd7 100644
--- a/src/gallium/drivers/i915/i915_batch.h
+++ b/src/gallium/drivers/i915/i915_batch.h
@@ -37,6 +37,9 @@
#define OUT_BATCH(dword) \
i915_winsys_batchbuffer_dword(i915->batch, dword)
+#define OUT_BATCH_F(f) \
+ i915_winsys_batchbuffer_float(i915->batch, f)
+
#define OUT_RELOC(buf, usage, offset) \
i915_winsys_batchbuffer_reloc(i915->batch, buf, usage, offset, false)