|
@@ -112,7 +112,6 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret,
|
|
|
struct drm_nouveau_private *dev_priv = dev->dev_private;
|
|
|
struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph;
|
|
|
struct nouveau_fifo_engine *pfifo = &dev_priv->engine.fifo;
|
|
|
- struct nouveau_crypt_engine *pcrypt = &dev_priv->engine.crypt;
|
|
|
struct nouveau_channel *chan;
|
|
|
unsigned long flags;
|
|
|
int user, ret;
|
|
@@ -209,14 +208,8 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret,
|
|
|
pfifo->reassign(dev, false);
|
|
|
|
|
|
/* Create a graphics context for new channel */
|
|
|
- ret = pgraph->create_context(chan);
|
|
|
- if (ret) {
|
|
|
- nouveau_channel_put(&chan);
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- if (pcrypt->create_context) {
|
|
|
- ret = pcrypt->create_context(chan);
|
|
|
+ if (dev_priv->card_type < NV_50) {
|
|
|
+ ret = pgraph->create_context(chan);
|
|
|
if (ret) {
|
|
|
nouveau_channel_put(&chan);
|
|
|
return ret;
|