nouveau: fix firmware check on nvd7/nvd9
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Apr 2014 12:42:59 +0000 (08:42 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Apr 2014 12:58:15 +0000 (08:58 -0400)
The kernel driver expects the class to be based on chipset generation
rather than VP generation. Make sure to pass 90b1 for NVDX chipsets
instead of 95b1.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77102
Fixes: 40dd777b33073
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.1 10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@ubunutu.com>
src/gallium/drivers/nouveau/nouveau_vp3_video.c

index 11cf729f58b5cebbda43cea205cc11f2c8e2e6d7..f3a64b22c5758c2a7460515bee3e494e19b06b7a 100644 (file)
@@ -371,10 +371,10 @@ firmware_present(struct pipe_screen *pscreen, enum pipe_video_profile profile)
       int size, oclass;
       if (chipset < 0xc0)
          oclass = 0x85b1;
-      else if (vp5)
-         oclass = 0x95b1;
-      else
+      else if (chipset < 0xe0)
          oclass = 0x90b1;
+      else
+         oclass = 0x95b1;
 
       if (chipset < 0xc0) {
          data = &nv04_data;