History

drm/i915: Drop I915_CONTEXT_PARAM_NO_ZEROMAP

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

Jason Ekstrand committed 5 years ago

Commit 6ff6d611 parent 74e4b904 files · +6 −23Browse files

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

Unified · Split

include/uapi/drm/i915_drm.h+4−0
@@ -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 0x11640#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 0x21645#define I915_CONTEXT_PARAM_NO_ZEROMAP 0x2
1642#define I915_CONTEXT_PARAM_GTT_SIZE 0x31646#define I915_CONTEXT_PARAM_GTT_SIZE 0x3
1643#define I915_CONTEXT_PARAM_NO_ERROR_CAPTURE 0x41647#define I915_CONTEXT_PARAM_NO_ERROR_CAPTURE 0x4

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t