|
@@ -512,8 +512,8 @@ int i915_gem_contexts_init(struct drm_i915_private *dev_priv)
|
|
|
}
|
|
|
|
|
|
DRM_DEBUG_DRIVER("%s context support initialized\n",
|
|
|
- dev_priv->engine[RCS]->context_size ? "logical" :
|
|
|
- "fake");
|
|
|
+ DRIVER_CAPS(dev_priv)->has_logical_contexts ?
|
|
|
+ "logical" : "fake");
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -720,7 +720,7 @@ int i915_gem_context_create_ioctl(struct drm_device *dev, void *data,
|
|
|
struct i915_gem_context *ctx;
|
|
|
int ret;
|
|
|
|
|
|
- if (!dev_priv->engine[RCS]->context_size)
|
|
|
+ if (!DRIVER_CAPS(dev_priv)->has_logical_contexts)
|
|
|
return -ENODEV;
|
|
|
|
|
|
if (args->pad != 0)
|