diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-10-19 05:47:06 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-03 00:06:52 -0500 |
commit | 50536946faaf3d9ac0245838eb09e5eb1065b06c (patch) | |
tree | 7daaa4cb7e2f9f26f4f9ac4ee37cfa9ab57f7777 /drivers/gpu/drm/nouveau/nouveau_object.c | |
parent | 9100468d1be26063aa25ecd667ea922c101d203f (diff) |
drm/nouveau: store engine type in gpuobj class structs
We will eventually want to address hw engines other than PGRAPH.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_object.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_object.c b/drivers/gpu/drm/nouveau/nouveau_object.c index 0b8183edfcd7..70ffd7530503 100644 --- a/drivers/gpu/drm/nouveau/nouveau_object.c +++ b/drivers/gpu/drm/nouveau/nouveau_object.c | |||
@@ -900,7 +900,7 @@ int nouveau_ioctl_grobj_alloc(struct drm_device *dev, void *data, | |||
900 | goto out; | 900 | goto out; |
901 | } | 901 | } |
902 | 902 | ||
903 | if (!grc->software) | 903 | if (grc->engine != NVOBJ_ENGINE_SW) |
904 | ret = nouveau_gpuobj_gr_new(chan, grc->id, &gr); | 904 | ret = nouveau_gpuobj_gr_new(chan, grc->id, &gr); |
905 | else | 905 | else |
906 | ret = nouveau_gpuobj_sw_new(chan, grc->id, &gr); | 906 | ret = nouveau_gpuobj_sw_new(chan, grc->id, &gr); |