summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-10-19 19:47:06 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-12-03 15:06:52 +1000
commit50536946faaf3d9ac0245838eb09e5eb1065b06c (patch)
tree7daaa4cb7e2f9f26f4f9ac4ee37cfa9ab57f7777 /drivers/gpu/drm/nouveau/nouveau_drv.h
parent9100468d1be26063aa25ecd667ea922c101d203f (diff)
downloadlwn-50536946faaf3d9ac0245838eb09e5eb1065b06c.tar.gz
lwn-50536946faaf3d9ac0245838eb09e5eb1065b06c.zip
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_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 1d474f526986..2fdc26655ca1 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -132,7 +132,7 @@ enum nouveau_flags {
#define NVOBJ_ENGINE_SW 0
#define NVOBJ_ENGINE_GR 1
-#define NVOBJ_ENGINE_DISPLAY 2
+#define NVOBJ_ENGINE_DISPLAY 0xcafe0001
#define NVOBJ_ENGINE_INT 0xdeadbeef
#define NVOBJ_FLAG_ZERO_ALLOC (1 << 1)
@@ -324,7 +324,7 @@ struct nouveau_pgraph_object_method {
struct nouveau_pgraph_object_class {
int id;
- bool software;
+ u32 engine;
struct nouveau_pgraph_object_method *methods;
};