mirror of
https://github.com/mpv-player/mpv
synced 2025-03-18 17:40:30 +00:00
fix resolution detection for NV03 and NV04 cards, patch by Guillaume LECERF <foxcore at gmail.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24557 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f1d6831af9
commit
05469a7722
@ -673,12 +673,15 @@ static void nv_getscreenproperties(struct rivatv_info *info){
|
||||
/* and the 10th in CRTC_OVERFLOW*/
|
||||
info->screen_y |=(VID_RD08(info->chip.PCIO,0x03D5) &0x40)<<3;
|
||||
++info->screen_y;
|
||||
|
||||
if(info->chip.arch >= NV_ARCH_10){
|
||||
/* NV_PCRTC_EXTRA_VERT_DISPLAY_END_10 */
|
||||
VID_WR08(info->chip.PCIO,0x03D4,0x25);
|
||||
info->screen_y |= (VID_RD08(info->chip.PCIO,0x03D5) &0x02)<<9;
|
||||
/* NV_PCRTC_???_VERT_DISPLAY_END_11 */
|
||||
VID_WR08(info->chip.PCIO,0x03D4,0x41);
|
||||
info->screen_y |= (VID_RD08(info->chip.PCIO,0x03D5) &0x04)<<9;
|
||||
}
|
||||
|
||||
/* NV_PCRTC_OFFSET */
|
||||
VID_WR08 (info->chip.PCIO, 0x3D4, 0x13);
|
||||
|
Loading…
Reference in New Issue
Block a user