[Beignet] [PATCH] Flush the queue after enqueue.
Zou Nan hai
nanhai.zou at intel.com
Tue Aug 13 16:29:18 PDT 2013
Flush the queue after enqueue.
This can fix some random fails in unit tests.
Signed-off-by: Zou Nan hai <nanhai.zou at intel.com>
---
src/intel/intel_gpgpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
index 357fcaf..1301b66 100644
--- a/src/intel/intel_gpgpu.c
+++ b/src/intel/intel_gpgpu.c
@@ -375,6 +375,7 @@ intel_gpgpu_check_binded_buf_address(intel_gpgpu_t *gpgpu)
static void
intel_gpgpu_flush(intel_gpgpu_t *gpgpu)
{
+ intel_batchbuffer_emit_mi_flush(gpgpu->batch);
intel_batchbuffer_flush(gpgpu->batch);
intel_gpgpu_check_binded_buf_address(gpgpu);
}
--
1.7.9.5
More information about the Beignet
mailing list