]> Git Repo - linux.git/commit - drivers/gpu/drm/i915/i915_gpu_error.c
drm/i915: Consolidate checks for memcpy-from-wc support
authorChris Wilson <[email protected]>
Fri, 6 Jan 2017 15:20:09 +0000 (15:20 +0000)
committerChris Wilson <[email protected]>
Fri, 6 Jan 2017 16:02:07 +0000 (16:02 +0000)
commitc4d3ae6852bd9f024611d2e8722736ca553e1e43
tree8401c340d8946f98d8e3c6a7b692a4476efa3eb3
parent7ec73b7e36d0bf165cea77770a490fcdf4418e93
drm/i915: Consolidate checks for memcpy-from-wc support

In order to silence sparse:

../drivers/gpu/drm/i915/i915_gpu_error.c:200:39: warning: Using plain integer as NULL pointer

add a helper to check whether we have sse4.1 and that the desired
alignment is valid for acceleration.

v2: Explain the macros and split the two use cases between
i915_has_memcpy_from_wc() and i915_can_memcpy_from_wc().

Reported-by: Ville Syrjälä <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_guc_submission.c
This page took 0.062747 seconds and 4 git commands to generate.