Displaying 3 results from an estimated 3 matches for "firmware_present".
2014 Feb 05
2
[PATCH] nouveau/video: make sure that firmware is present when checking caps
...b/src/gallium/drivers/nouveau/nouveau_vp3_video.c
@@ -21,6 +21,7 @@
  */
 
 #include <sys/mman.h>
+#include <sys/stat.h>
 #include <stdio.h>
 #include <fcntl.h>
 
@@ -350,6 +351,53 @@ nouveau_vp3_load_firmware(struct nouveau_vp3_decoder *dec,
    return 0;
 }
 
+static int
+firmware_present(struct pipe_screen *pscreen, enum pipe_video_profile profile)
+{
+   struct nouveau_screen *screen = nouveau_screen(pscreen);
+   int chipset = screen->device->chipset;
+   int vp3 = chipset < 0xa3 || chipset == 0xaa || chipset == 0xac;
+   int vp5 = chipset >= 0xd0;
+   int ret;
+
+...
2014 Apr 07
0
[Bug 77102] gallium nouveau has no profile in vdpau and libva
...irmware present patch
OK, upon further code reading, it looks like the way nouveau does class id's is
a bit off. That doesn't strictly matter for BSP, but there's a mismatch in the
logic between mesa and the kernel, which causes problems for NVD7 and NVD9
cards.
In nouveau_vp3_video.c:firmware_present,
      if (chipset < 0xc0)
         oclass = 0x85b1;
      else if (vp5)
         oclass = 0x95b1;
      else
         oclass = 0x90b1;
should become
      if (chipset < 0xc0)
         oclass = 0x85b1;
      else if (chipset < 0xe0)
         oclass = 0x90b1;
      else
         oclass =...
2014 Apr 07
0
[Bug 77102] gallium nouveau has no profile in vdpau and libva
..., upon further code reading, it looks like the way nouveau does class id's
> is a bit off. That doesn't strictly matter for BSP, but there's a mismatch
> in the logic between mesa and the kernel, which causes problems for NVD7 and
> NVD9 cards.
> 
> In nouveau_vp3_video.c:firmware_present,
> 
>       if (chipset < 0xc0)
>          oclass = 0x85b1;
>       else if (vp5)
>          oclass = 0x95b1;
>       else
>          oclass = 0x90b1;
> 
> should become
> 
>       if (chipset < 0xc0)
>          oclass = 0x85b1;
>       else if (chipset...