diff options
author | Maarten Lankhorst <dev@mblankhorst.nl> | 2015-03-14 18:00:00 +0100 |
---|---|---|
committer | Maarten Lankhorst <dev@mblankhorst.nl> | 2015-03-14 18:10:16 +0100 |
commit | d29d8baad4d845ec9d3d1d1bc8d1c1e1f6f6f086 (patch) | |
tree | eb6d3c283f78209e889769cc9c0831fcf0e530e7 /src | |
parent | 6829d4c672fc05f4d3d993ac1bfde21d4b6c1200 (diff) |
Use the correct class and shader ops for GK20A.
Signed-off-by: Maarten Lankhorst <dev@mblankhorst.nl>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvc0_accel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvc0_accel.c b/src/nvc0_accel.c index c04e270..848ca87 100644 --- a/src/nvc0_accel.c +++ b/src/nvc0_accel.c @@ -217,8 +217,10 @@ NVAccelInit3D_NVC0(ScrnInfoPtr pScrn) if (pNv->Architecture < NV_KEPLER) { class = 0x9097; handle = 0x001f906e; - } else - if (pNv->dev->chipset < 0xf0) { + } else if (pNv->dev->chipset == 0xea) { + class = 0xa297; + handle = 0x0000906e; + } else if (pNv->dev->chipset < 0xf0) { class = 0xa097; handle = 0x0000906e; } else { @@ -323,7 +325,7 @@ NVAccelInit3D_NVC0(ScrnInfoPtr pScrn) BEGIN_NVC0(push, NVC0_3D(MEM_BARRIER), 1); PUSH_DATA (push, 0x1111); } else - if (pNv->dev->chipset < 0xf0) { + if (pNv->dev->chipset < 0xf0 && pNv->dev->chipset != 0xea) { NVC0PushProgram(pNv, PVP_PASS, NVE0VP_Transform2); NVC0PushProgram(pNv, PFP_S, NVE0FP_Source); NVC0PushProgram(pNv, PFP_C, NVE0FP_Composite); |