drm/i915: Rename agp_type to cache_level
... to clarify just how we use it inside the driver and remove the confusion of the poorly matching agp_type names. We still need to translate through agp_type for interface into the fake AGP driver. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:

committed by
Keith Packard

parent
e76d363081
commit
93dfb40cd8
@@ -236,7 +236,7 @@ init_pipe_control(struct intel_ring_buffer *ring)
|
||||
ret = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
obj->agp_type = AGP_USER_CACHED_MEMORY;
|
||||
obj->cache_level = I915_CACHE_LLC;
|
||||
|
||||
ret = i915_gem_object_pin(obj, 4096, true);
|
||||
if (ret)
|
||||
@@ -759,7 +759,7 @@ static int init_status_page(struct intel_ring_buffer *ring)
|
||||
ret = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
obj->agp_type = AGP_USER_CACHED_MEMORY;
|
||||
obj->cache_level = I915_CACHE_LLC;
|
||||
|
||||
ret = i915_gem_object_pin(obj, 4096, true);
|
||||
if (ret != 0) {
|
||||
|
Reference in New Issue
Block a user