Quoting Jakub Bartmiński (2018-07-18 12:54:09)
> +u32 intel_guc_ggtt_offset(struct intel_guc *guc, struct i915_vma *vma)
> +{
> + struct drm_i915_private *i915 = guc_to_i915(guc);
Unused i915 if you disable debug.
> +
> + u32 offset = i915_ggtt_offset(vma);
> +
> + GEM_BUG_ON(offset < i915->ggtt.pin_bias);
GEM_BUG_ON(offset < i915_vm_to_ggtt(vma->vm)->pin_bias);
seems to be the most self-contained way to express it.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx