va_fglrx: fix driver name detection. 43/843/1
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 11 Oct 2011 08:34:37 +0000 (10:34 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 11 Oct 2011 09:19:57 +0000 (11:19 +0200)
commitb1bc8cf807f481dcdd2b42aa55c764295f413e34
treebfaaf48a664fb47759bd44719220893008998fef
parent549946cf2c5e0c5884d3137b1393967a6a891784
va_fglrx: fix driver name detection.

VA_FGLRXGetClientDriverName() used to return success even if no
valid driver name was found, thus returning a NULL driver name.

Also fixed the X display name matching routine to filter out the
screen number, which may not be in the string, and make sure to
compare screen numbers from what ADL returns too.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
va/x11/va_fglrx.c