Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-07-09, 01:32 PM   #13
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: VDPAU + xrandr refresh rate change

might we see this deadlock because another thread (maybe the display thread) calls any vdpau functions while we run the reinit?
jusst is offline   Reply With Quote
Old 01-07-09, 01:52 PM   #14
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: VDPAU + xrandr refresh rate change

got a little further... the core reinit runs. vdp_device gets the same numer as before. is this expected?
now, when the decoder gets recreated I do get an invalid handle error on decodercreate... wondering why?
the only handle there should be the vdp_device, shouldn't it?
jusst is offline   Reply With Quote
Old 01-07-09, 01:54 PM   #15
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU + xrandr refresh rate change

Getting the same handle ID back for the device should be OK. I'll see if I can repro this...
Stephen Warren is offline   Reply With Quote
Old 01-07-09, 03:41 PM   #16
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU + xrandr refresh rate change

I can't reproduce this; I put our test app through many (e.g. 10) cycles of preemption callback and object recreation, and it all worked just fine. Are you sure that the reinit code is passing in the newly created device object handle, and not using some stale data? Or, are multiple threads running the reinit code and confusing each other?
Stephen Warren is offline   Reply With Quote
Old 01-10-09, 11:13 AM   #17
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: VDPAU + xrandr refresh rate change

with xine-ui we got this working now.
still with other xine frontends (for example the sample code from xinehq.de -muxine.c) we get a BadMatch in NV-GLX on the rate change. The bt looks like this:

Code:
(gdb) bt                                                        
#0  0xb7e5e3a6 in _XError () from /usr/lib/libX11.so.6          
#1  0xb7e5ff6b in _XReply () from /usr/lib/libX11.so.6          
#2  0xb7e59e08 in XSync () from /usr/lib/libX11.so.6
#3  0xb7e59f93 in _XSyncFunction () from /usr/lib/libX11.so.6
#4  0xb69b11bf in ?? () from /usr/lib/libvdpau_nvidia.so
#5  0x080990c0 in ?? ()
#6  0x080990c0 in ?? ()
#7  0xb64fa008 in ?? ()
#8  0xb7e4b8dd in _XPopReader () from /usr/lib/libX11.so.6
#9  0xb69a1d91 in ?? () from /usr/lib/libvdpau_nvidia.so
#10 0x080a6f40 in ?? ()
#11 0x00000140 in ?? ()
#12 0xb64fa038 in ?? ()
#13 0xb69a0614 in ?? () from /usr/lib/libvdpau_nvidia.so
#14 0x080a0fd0 in ?? ()
#15 0x080a0f30 in ?? ()
#16 0xb69fa1f3 in ?? () from /usr/lib/libvdpau_nvidia.so
#17 0x080a714c in ?? ()
#18 0xb64fa028 in ?? ()
---Type <return> to continue, or q <return> to quit---
#19 0x00000000 in ?? ()
(gdb)
any ideas about this?
jusst is offline   Reply With Quote
Old 01-12-09, 11:54 AM   #18
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU + xrandr refresh rate change

Ah. I believe I found this and fixed it during my attempts to repro your problem. If it's the problem I think it is, you should be able to avoid it by:

Code:
export VDPAU_NVIDIA_NO_OVERLAY=1
So, it should be fixed in the next driver release.
Stephen Warren is offline   Reply With Quote
Old 01-12-09, 12:43 PM   #19
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: VDPAU + xrandr refresh rate change

Thanks, this indeed works around the issue. One more thing I noted though is, that after the rate change tearing appears. Can you reproduce that?

Knowing this will be fixed in next release it directly leads me to the question when we can expect a new release (beta would be ok...)?
jusst is offline   Reply With Quote
Old 01-12-09, 02:39 PM   #20
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU + xrandr refresh rate change

I think with that workaround you should see tearing both before and after the rate change.

Sorry, I can't comment on when the next driver will be released. Actually, right now, I don't know for sure anyway.
Stephen Warren is offline   Reply With Quote

Old 01-12-09, 03:47 PM   #21
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: VDPAU + xrandr refresh rate change

ok, I expected that...
regarding the tearing you're probably right... I did the rate change right after playback change so I likely did not recognize it before...

still as this does not happen with xine-ui, is there any special stuff that triggers this issue? - maybe I could adapt out app to work around this then...
jusst is offline   Reply With Quote
Old 01-12-09, 03:53 PM   #22
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU + xrandr refresh rate change

Quote:
Originally Posted by jusst View Post
still as this does not happen with xine-ui, is there any special stuff that triggers this issue? - maybe I could adapt out app to work around this then...
You mean the BadMatch? If you destroy the presentation queue before you switch the refresh rate, that should probably fix it too.
Stephen Warren is offline   Reply With Quote
Old 01-27-09, 07:16 AM   #23
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: VDPAU + xrandr refresh rate change

Actually with 180.25 the situation doesn't seem to have improved much. With xine-vdpau we see it working a few times then it freezes.
I assume this is because vdp_video_mixer_render might be called between the preemption callback is called and the reinit is done. we can't really avoid this due to the multiple threads.

Would you mind trying to reproduce this with current xine-vdpau?
jusst is offline   Reply With Quote
Old 01-27-09, 10:23 AM   #24
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: VDPAU + xrandr refresh rate change

ok, actually it was my fault. we missed out reinitialising the overlay surfaces. this caused the trouble. thanks for the fix!
jusst is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh rate fix for all Detonator drivers AshG NVIDIA Windows Graphics Drivers 45 04-27-03 04:55 PM
New 40.41 refresh rate fix ???? Smokey NVIDIA Windows Graphics Drivers 8 08-30-02 01:32 PM
Refresh rate fix for opengl? Zarich NVIDIA Windows Graphics Drivers 1 08-29-02 02:47 PM
Refresh rate not fixed in SP3 Creole Microsoft Windows XP And Vista 2 08-03-02 11:32 AM
Multi monitor refresh rate problem ascully General Hardware 6 07-31-02 02:56 PM

All times are GMT -5. The time now is 12:10 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.