]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "drm/i915: Kill GTT mappings when moving from GTT domain"
authorEric Anholt <eric@anholt.net>
Tue, 14 Jun 2011 23:43:09 +0000 (16:43 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 21 Jun 2011 18:11:02 +0000 (11:11 -0700)
commit3235cc2db7587515cf70ee8005cddc608ce20890
tree3f5ff85abc0d78717cb11249f9b340d90f714ad3
parent1b5d18530ba5f694b60c7b50b8ed9463906f16aa
Revert "drm/i915: Kill GTT mappings when moving from GTT domain"

This reverts commit 9a1d3f2f2bce4db232539fd10436e26bcec2cd1d.
Userland has always been required to set the object's domain to GTT
before using it through a GTT mapping, it's not something that the
kernel is supposed to enforce.  (The pagefault support is so that we
can handle multiple mappings without userland having to pin across
them, not so that userland can use GTT after GPU domains without
telling the kernel).

Fixes 19.2% +/- 0.8% (n=6) performance regression in cairo-gl
firefox-talos-gfx on my T420 latop.

Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c