This is passed on the kernel to enable the resource streamer enable bit
on MI_BATCHBUFFER_START

v3: Use I915_EXEC_RESOURCE_STREAMER. Previous patch didn't build.

Cc: Paul Berry <[email protected]>
Cc: Kenneth Graunke <[email protected]>
Cc: Chad Versace <[email protected]>
Cc: Eric Anholt <[email protected]>
Signed-off-by: Abdiel Janulgue <[email protected]>
---
 src/mesa/drivers/dri/i965/intel_batchbuffer.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c 
b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 0aa2551..3a0b470 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -194,7 +194,8 @@ do_flush_locked(struct brw_context *brw)
       int flags;
 
       if (brw->gen < 6 || !batch->is_blit) {
-        flags = I915_EXEC_RENDER;
+        flags = I915_EXEC_RENDER |
+            (brw->has_resource_streamer ? I915_EXEC_RESOURCE_STREAMER : 0);
       } else {
         flags = I915_EXEC_BLT;
       }
-- 
1.7.9.5

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to