History

drm/i915: Expose I915_EXEC_RESOURCE_STREAMER flag and getparam

Ensures that the batch buffer is executed by the resource streamer. And will let userspace know whether Resource Streamer is supported in the kernel. v2: Don't skip 1<<15 for the exec flags (Jani Nikula) v3: Use HAS_RESOURCE_STREAMER macro for execbuf validation (Chris Wilson) (from getparam patch) v2: Update I915_PARAM_HAS_RESOURCE_STREAMER so it's after I915_PARAM_HAS_GPU_RESET. v3: Only advertise RS support for hardware that supports it. v4: Add HAS_RESOURCE_STREAMER() macro (Chris)

Abdiel Janulgue committed 11 years ago

Commit a9ed33c1 parent 69225284 files · +27 −1Browse files

Showing the changes to include/uapi/drm (1 of 4 files). Show all

Unified · Split

include/uapi/drm/i915_drm.h+7−1
@@ -355,6 +355,7 @@ typedef struct drm_i915_irq_wait { · 354 unmodified lines
355355 #define I915_PARAM_SUBSLICE_TOTAL 33
356356 #define I915_PARAM_EU_TOTAL 34
357357 #define I915_PARAM_HAS_GPU_RESET 35
358+#define I915_PARAM_HAS_RESOURCE_STREAMER 36
358359
359360 typedef struct drm_i915_getparam {
360361 int param;
@@ -765,7 +766,12 @@ struct drm_i915_gem_execbuffer2 { · 404 unmodified lines
765766 #define I915_EXEC_BSD_RING1 (1<<13)
766767 #define I915_EXEC_BSD_RING2 (2<<13)
767768
768−#define __I915_EXEC_UNKNOWN_FLAGS -(1<<15)
769+/** Tell the kernel that the batchbuffer is processed by
770+ * the resource streamer.
771+ */
772+#define I915_EXEC_RESOURCE_STREAMER (1<<15)
773+
774+#define __I915_EXEC_UNKNOWN_FLAGS -(I915_EXEC_RESOURCE_STREAMER<<1)
769775
770776 #define I915_EXEC_CONTEXT_ID_MASK (0xffffffff)
771777 #define i915_execbuffer2_set_context_id(eb2, context) \