diff options
author | Zhao, Yakui <yakui.zhao@intel.com> | 2014-11-17 12:44:19 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-12-14 00:42:17 +0800 |
commit | 702050f04131a44ef8ac16651708ce8a8d98e4b8 (patch) | |
tree | cffcd6a6db8cc5c60cea6fd7bb0b25d46d895ad1 /src/intel_batchbuffer.h | |
parent | a05772e805a52fbfbe6f28bf369d7760a87e0eed (diff) | |
download | libva-intel-driver-702050f04131a44ef8ac16651708ce8a8d98e4b8.tar.gz |
Allow the batchbuffer to be submitted with override flag
Some machines have two BSD video rings. Sometimes the user-space application
want to specify which BSD ring is to dispatch the video command. In such case
the override flag is needed so that the kernel can handle it.
Reviewed-by: Xiang Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit a213c724a013412357c355bfb10e472ea4d89d73)
Diffstat (limited to 'src/intel_batchbuffer.h')
-rw-r--r-- | src/intel_batchbuffer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel_batchbuffer.h b/src/intel_batchbuffer.h index e4d0994b..41d359db 100644 --- a/src/intel_batchbuffer.h +++ b/src/intel_batchbuffer.h @@ -51,6 +51,14 @@ int intel_batchbuffer_check_free_space(struct intel_batchbuffer *batch, int size int intel_batchbuffer_used_size(struct intel_batchbuffer *batch); void intel_batchbuffer_align(struct intel_batchbuffer *batch, unsigned int alignedment); +typedef enum { + BSD_DEFAULT, + BSD_RING0, + BSD_RING1, +} bsd_ring_flag; + +void intel_batchbuffer_start_atomic_bcs_override(struct intel_batchbuffer *batch, unsigned int size, + bsd_ring_flag override_flag); #define __BEGIN_BATCH(batch, n, f) do { \ assert(f == (batch->flag & I915_EXEC_RING_MASK)); \ |