/* The movntdqa instructions used for memcpy-from-wc require 16-byte alignment, * as well as SSE4.1 support. i915_memcpy_from_wc() will report if it cannot * perform the operation. To check beforehand, pass in the parameters to * to i915_can_memcpy_from_wc() - since we only care about the low 4 bits, * you only need to pass in the minor offsets, page-aligned pointers are * always valid. * * For just checking for SSE4.1, in the foreknowledge that the future use * will be correctly aligned, just use i915_has_memcpy_from_wc().
*/ #define i915_can_memcpy_from_wc(dst, src, len) \
i915_memcpy_from_wc((void *)((unsignedlong)(dst) | (unsignedlong)(src) | (len)), NULL, 0)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.