[Mesa-dev] [RFC PATCH 03/40] i965/gen7.5: Pass resource streamer enable flags on batchbuffer start
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Sun Jan 4 06:04:17 PST 2015
This is passed on the kernel to enable the resource streamer enable bit
on MI_BATCHBUFFER_START
v3: Use I915_EXEC_RESOURCE_STREAMER. Kernel folks want the batchbuffer
flags to be more concise.
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
src/mesa/drivers/dri/i965/intel_batchbuffer.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 2bd11d7..1150e3d 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -33,6 +33,10 @@
#include "intel_fbo.h"
#include "brw_context.h"
+#ifndef I915_EXEC_RESOURCE_STREAMER
+#define I915_EXEC_RESOURCE_STREAMER (1<<13)
+#endif
+
static void
intel_batchbuffer_reset(struct brw_context *brw);
@@ -257,7 +261,8 @@ do_flush_locked(struct brw_context *brw)
if (brw->gen >= 6 && batch->ring == BLT_RING) {
flags = I915_EXEC_BLT;
} else {
- flags = I915_EXEC_RENDER;
+ flags = I915_EXEC_RENDER |
+ (brw->has_resource_streamer ? I915_EXEC_RESOURCE_STREAMER : 0);
}
if (batch->needs_sol_reset)
flags |= I915_EXEC_GEN7_SOL_RESET;
--
1.9.1
More information about the mesa-dev
mailing list