drm/i915: Move the execbuffer domain computations together
authorKeith Packard <keithp@keithp.com>
Fri, 21 Nov 2008 07:23:03 +0000 (23:23 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Dec 2008 01:22:02 +0000 (11:22 +1000)
commit646f0f6e43bf6628b1f0f8ca6c0227ce72e8ef3c
tree78182c7c580bf961c0e8f31accf573eae908ca7b
parentc0d90829288942fa06d7483f9e84059a64605da5
drm/i915: Move the execbuffer domain computations together

This eliminates the dev_set_domain function and just in-lines it
where its used, with the goal of moving the manipulation and use of
invalidate_domains and flush_domains closer together. This also
avoids calling add_request unless some domain has been flushed.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem.c