The idea behind this param is to support OpenCL drivers with relocations because OpenCL reserves 0x0 for NULL and, if we placed memory there, it would confuse CL kernels. It was originally sent out as part of a patch series including libdrm [1] and Beignet [2] support. However, the libdrm and Beignet patches never landed in their respective upstream projects so this API has never been used. It's never been used in Mesa or any other driver, either. Dropping this API allows us to delete a small bit of code. [1]: https://lists.freedesktop.org/archives/intel-gfx/2015-May/067030.html [2]: https://lists.freedesktop.org/archives/intel-gfx/2015-May/067031.html
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -1638,6 +1638,10 @@ struct drm_i915_gem_context_param { · 1637 unmodified lines | |||
| 1638 | __u32 size; | 1638 | __u32 size; |
| 1639 | __u64 param; | 1639 | __u64 param; |
| 1640 | #define I915_CONTEXT_PARAM_BAN_PERIOD 0x1 | 1640 | #define I915_CONTEXT_PARAM_BAN_PERIOD 0x1 |
| 1641 | /* I915_CONTEXT_PARAM_NO_ZEROMAP has been removed. On the off chance | ||
| 1642 | * someone somewhere has attempted to use it, never re-use this context | ||
| 1643 | * param number. | ||
| 1644 | */ | ||
| 1641 | #define I915_CONTEXT_PARAM_NO_ZEROMAP 0x2 | 1645 | #define I915_CONTEXT_PARAM_NO_ZEROMAP 0x2 |
| 1642 | #define I915_CONTEXT_PARAM_GTT_SIZE 0x3 | 1646 | #define I915_CONTEXT_PARAM_GTT_SIZE 0x3 |
| 1643 | #define I915_CONTEXT_PARAM_NO_ERROR_CAPTURE 0x4 | 1647 | #define I915_CONTEXT_PARAM_NO_ERROR_CAPTURE 0x4 |