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/nv20_graph.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/nv20_graph.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv20_graph.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/drivers/gpu/drm/nouveau/nv20_graph.c b/drivers/gpu/drm/nouveau/nv20_graph.c index 8a0402012557..109418d72f93 100644 --- a/drivers/gpu/drm/nouveau/nv20_graph.c +++ b/drivers/gpu/drm/nouveau/nv20_graph.c | |||
@@ -757,45 +757,45 @@ nv30_graph_init(struct drm_device *dev) | |||
757 | } | 757 | } |
758 | 758 | ||
759 | struct nouveau_pgraph_object_class nv20_graph_grclass[] = { | 759 | struct nouveau_pgraph_object_class nv20_graph_grclass[] = { |
760 | { 0x0030, false, NULL }, /* null */ | 760 | { 0x0030, NVOBJ_ENGINE_GR, NULL }, /* null */ |
761 | { 0x0039, false, NULL }, /* m2mf */ | 761 | { 0x0039, NVOBJ_ENGINE_GR, NULL }, /* m2mf */ |
762 | { 0x004a, false, NULL }, /* gdirect */ | 762 | { 0x004a, NVOBJ_ENGINE_GR, NULL }, /* gdirect */ |
763 | { 0x009f, false, NULL }, /* imageblit (nv12) */ | 763 | { 0x009f, NVOBJ_ENGINE_GR, NULL }, /* imageblit (nv12) */ |
764 | { 0x008a, false, NULL }, /* ifc */ | 764 | { 0x008a, NVOBJ_ENGINE_GR, NULL }, /* ifc */ |
765 | { 0x0089, false, NULL }, /* sifm */ | 765 | { 0x0089, NVOBJ_ENGINE_GR, NULL }, /* sifm */ |
766 | { 0x0062, false, NULL }, /* surf2d */ | 766 | { 0x0062, NVOBJ_ENGINE_GR, NULL }, /* surf2d */ |
767 | { 0x0043, false, NULL }, /* rop */ | 767 | { 0x0043, NVOBJ_ENGINE_GR, NULL }, /* rop */ |
768 | { 0x0012, false, NULL }, /* beta1 */ | 768 | { 0x0012, NVOBJ_ENGINE_GR, NULL }, /* beta1 */ |
769 | { 0x0072, false, NULL }, /* beta4 */ | 769 | { 0x0072, NVOBJ_ENGINE_GR, NULL }, /* beta4 */ |
770 | { 0x0019, false, NULL }, /* cliprect */ | 770 | { 0x0019, NVOBJ_ENGINE_GR, NULL }, /* cliprect */ |
771 | { 0x0044, false, NULL }, /* pattern */ | 771 | { 0x0044, NVOBJ_ENGINE_GR, NULL }, /* pattern */ |
772 | { 0x009e, false, NULL }, /* swzsurf */ | 772 | { 0x009e, NVOBJ_ENGINE_GR, NULL }, /* swzsurf */ |
773 | { 0x0096, false, NULL }, /* celcius */ | 773 | { 0x0096, NVOBJ_ENGINE_GR, NULL }, /* celcius */ |
774 | { 0x0097, false, NULL }, /* kelvin (nv20) */ | 774 | { 0x0097, NVOBJ_ENGINE_GR, NULL }, /* kelvin (nv20) */ |
775 | { 0x0597, false, NULL }, /* kelvin (nv25) */ | 775 | { 0x0597, NVOBJ_ENGINE_GR, NULL }, /* kelvin (nv25) */ |
776 | {} | 776 | {} |
777 | }; | 777 | }; |
778 | 778 | ||
779 | struct nouveau_pgraph_object_class nv30_graph_grclass[] = { | 779 | struct nouveau_pgraph_object_class nv30_graph_grclass[] = { |
780 | { 0x0030, false, NULL }, /* null */ | 780 | { 0x0030, NVOBJ_ENGINE_GR, NULL }, /* null */ |
781 | { 0x0039, false, NULL }, /* m2mf */ | 781 | { 0x0039, NVOBJ_ENGINE_GR, NULL }, /* m2mf */ |
782 | { 0x004a, false, NULL }, /* gdirect */ | 782 | { 0x004a, NVOBJ_ENGINE_GR, NULL }, /* gdirect */ |
783 | { 0x009f, false, NULL }, /* imageblit (nv12) */ | 783 | { 0x009f, NVOBJ_ENGINE_GR, NULL }, /* imageblit (nv12) */ |
784 | { 0x008a, false, NULL }, /* ifc */ | 784 | { 0x008a, NVOBJ_ENGINE_GR, NULL }, /* ifc */ |
785 | { 0x038a, false, NULL }, /* ifc (nv30) */ | 785 | { 0x038a, NVOBJ_ENGINE_GR, NULL }, /* ifc (nv30) */ |
786 | { 0x0089, false, NULL }, /* sifm */ | 786 | { 0x0089, NVOBJ_ENGINE_GR, NULL }, /* sifm */ |
787 | { 0x0389, false, NULL }, /* sifm (nv30) */ | 787 | { 0x0389, NVOBJ_ENGINE_GR, NULL }, /* sifm (nv30) */ |
788 | { 0x0062, false, NULL }, /* surf2d */ | 788 | { 0x0062, NVOBJ_ENGINE_GR, NULL }, /* surf2d */ |
789 | { 0x0362, false, NULL }, /* surf2d (nv30) */ | 789 | { 0x0362, NVOBJ_ENGINE_GR, NULL }, /* surf2d (nv30) */ |
790 | { 0x0043, false, NULL }, /* rop */ | 790 | { 0x0043, NVOBJ_ENGINE_GR, NULL }, /* rop */ |
791 | { 0x0012, false, NULL }, /* beta1 */ | 791 | { 0x0012, NVOBJ_ENGINE_GR, NULL }, /* beta1 */ |
792 | { 0x0072, false, NULL }, /* beta4 */ | 792 | { 0x0072, NVOBJ_ENGINE_GR, NULL }, /* beta4 */ |
793 | { 0x0019, false, NULL }, /* cliprect */ | 793 | { 0x0019, NVOBJ_ENGINE_GR, NULL }, /* cliprect */ |
794 | { 0x0044, false, NULL }, /* pattern */ | 794 | { 0x0044, NVOBJ_ENGINE_GR, NULL }, /* pattern */ |
795 | { 0x039e, false, NULL }, /* swzsurf */ | 795 | { 0x039e, NVOBJ_ENGINE_GR, NULL }, /* swzsurf */ |
796 | { 0x0397, false, NULL }, /* rankine (nv30) */ | 796 | { 0x0397, NVOBJ_ENGINE_GR, NULL }, /* rankine (nv30) */ |
797 | { 0x0497, false, NULL }, /* rankine (nv35) */ | 797 | { 0x0497, NVOBJ_ENGINE_GR, NULL }, /* rankine (nv35) */ |
798 | { 0x0697, false, NULL }, /* rankine (nv34) */ | 798 | { 0x0697, NVOBJ_ENGINE_GR, NULL }, /* rankine (nv34) */ |
799 | {} | 799 | {} |
800 | }; | 800 | }; |
801 | 801 | ||