ttm: Fix caching mode selection.
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 24 Jun 2009 17:57:34 +0000 (19:57 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Jul 2009 07:13:10 +0000 (17:13 +1000)
commitae3e8122cbf8f9301369f276f4179aa6ec1b5b9c
tree6155af00f10f1d68a83d03936350cc3995d52e6b
parentd1724078d6a01177c1db4ea0b75fda1ca8a73d57
ttm: Fix caching mode selection.

A bug caused a new caching state to be selected on each buffer object
validation regardless of the current caching state.
Moreover, a caching state could be selected that wasn't supported by
the memory type.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c