From: Chris Wilson Date: Sat, 11 Aug 2012 14:41:04 +0000 (+0100) Subject: drm/i915: Only pwrite through the GTT if there is space in the aperture X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~20^2~30^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86a1ee26bb60e1ab8984e92f0e9186c354670aed;p=pandora-kernel.git drm/i915: Only pwrite through the GTT if there is space in the aperture Avoid stalling and waiting for the GPU by checking to see if there is sufficient inactive space in the aperture for us to bind the buffer prior to writing through the GTT. If there is inadequate space we will have to stall waiting for the GPU, and incur overheads moving objects about. Instead, only incur the clflush overhead on the target object by writing through shmem. Signed-off-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed