Re: [RFC 2/5] drm/i915: Engine capabilities uAPI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Tvrtko Ursulin (2017-11-13 13:09:06)
> diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c
> index 7f4d60fed46f..c75bd2c9d797 100644
> --- a/drivers/gpu/drm/i915/intel_engine_cs.c
> +++ b/drivers/gpu/drm/i915/intel_engine_cs.c
> @@ -233,6 +233,9 @@ intel_engine_setup(struct drm_i915_private *dev_priv,
>         engine->irq_shift = info->irq_shift;
>         engine->class = info->class;
>         engine->instance = info->instance;
> +       if (INTEL_GEN(dev_priv) >= 8 && engine->class == VIDEO_DECODE_CLASS &&
> +           engine->instance == 0)
> +               engine->caps = I915_BSD_CAP_HEVC;

engine->caps = intel_engine_lookup_caps();

We can leave how best to define the caps for the next cap (or third to
be sure we have a feel for the generality), but for now we can at least
hide the ugly elsewhere.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux