[Intel-gfx] [PATCH v3 4/5] drm/i915: cpu-map based dumb buffers

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Tue Oct 15 11:34:45 UTC 2019



On 15/10/2019 14.15, Chris Wilson wrote:
> Quoting Abdiel Janulgue (2019-10-15 09:37:23)
>> +int
>> +i915_gem_mmap_dumb(struct drm_file *file,
>> +                 struct drm_device *dev,
>> +                 u32 handle,
>> +                 u64 *offset)
>> +{
>> +       struct drm_i915_private *i915 = to_i915(dev);
>> +       enum i915_mmap_type mmap_type = HAS_MAPPABLE_APERTURE(i915) ?
>> +               I915_MMAP_TYPE_GTT : I915_MMAP_TYPE_WC;
> 
> Is there any reason to prefer GTT at all?
> -Chris

I'm not aware of any. :/ Yeah this could be all CPU mmaps

> 


More information about the Intel-gfx mailing list