intel: Add missing I915_PARAM_HAS_COHERENT_PHYS_GTT
PATCH 1/2 intel: Add missing I915_PARAM_HAS_COHERENT_PHYS_GTT
Althogh it might not been used here it is good to keep synchrony with current upstream i915 parameter defines.
Signed-off-by Rodrigo Vivi <[email protected]>
--- include/drm/i915_drm.h | 1 + 1 file changed, 1 insertion(+)
include/drm/i915_drm.h +1 -0
@@ -340,6 +340,7 @@ typedef struct drm_i915_irq_wait {#define I915_PARAM_HAS_EXEC_HANDLE_LUT 26#define I915_PARAM_HAS_WT 27#define I915_PARAM_CMD_PARSER_VERSION 28 +#define I915_PARAM_HAS_COHERENT_PHYS_GTT 29 typedef struct drm_i915_getparam { int param;
Signature · 6 lines
1.9.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 intel: Include VCS2/BSD2 parameter and exec flags definition.
VCS2 is a second engine for Video command streamers. Userspace can now on choose the BSD ring in use for giving batch.
Signed-off-by Rodrigo Vivi <[email protected]>
--- include/drm/i915_drm.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
include/drm/i915_drm.h +8 -1
@@ -341,6 +341,7 @@ typedef struct drm_i915_irq_wait {#define I915_PARAM_HAS_WT 27#define I915_PARAM_CMD_PARSER_VERSION 28#define I915_PARAM_HAS_COHERENT_PHYS_GTT 29 +#define I915_PARAM_HAS_BSD2 30 typedef struct drm_i915_getparam { int param;
@@ -737,7 +738,13 @@ struct drm_i915_gem_execbuffer2 {*/ #define I915_EXEC_HANDLE_LUT (1<<12) -#define __I915_EXEC_UNKNOWN_FLAGS -(I915_EXEC_HANDLE_LUT<<1) +/** Used for switching BSD rings on the platforms with two BSD rings */ +#define I915_EXEC_BSD_MASK (3<<13) +#define I915_EXEC_BSD_DEFAULT (0<<13)/* default ping-pong mode */ +#define I915_EXEC_BSD_RING1 (1<<13) +#define I915_EXEC_BSD_RING2 (2<<13) + +#define __I915_EXEC_UNKNOWN_FLAGS -(1<<15)#define I915_EXEC_CONTEXT_ID_MASK (0xffffffff)#define i915_execbuffer2_set_context_id (eb2, context) \
Signature · 6 lines
1.9.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx