nouveau/video: make sure that firmware is present when checking caps
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 8 Feb 2014 20:22:46 +0000 (15:22 -0500)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 10 Feb 2014 13:00:17 +0000 (14:00 +0100)
commit40dd777b3307301e6580c5757c322a2ec99b5b37
tree5d756fa07072768b3f8fcbe5a755a9140bcacf4e
parenta487ef87fe4aa8c4b8e5c0d888bfb18727c8e570
nouveau/video: make sure that firmware is present when checking caps

Apparently some players are ill-prepared for us claiming that a decoder
exists only to have creating it fail, and express this poor preparation
with crashes (e.g. flash). Check that firmware is there to increase the
chances of there being a high correlation between reported capabilities
and ability to create a decoder.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: 10.0 10.1 <mesa-stable@lists.freedesktop.org>
Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/drivers/nouveau/nouveau_screen.h
src/gallium/drivers/nouveau/nouveau_vp3_video.c
src/gallium/drivers/nouveau/nv50/nv84_video.c