View Single Post
Old 06-01-09, 07:31 AM   #11
dean1873
Registered User
 
Join Date: Feb 2009
Posts: 19
Default Re: Can I used two VdpDecoders on the same GPU?

Hi, Stephen,

One thing that I forgot to tell you is that it is OK to create multiple representation queues on the graphic card which is associated with the default X *Display (:0.0) handle.

Here is the error message when I export VDPAU_TRACE=1 and VDPAU_NVIDIA_DEBUG=3, the VdpDevice is assocaited with X *Display (:0.1):

================================================== ==============
vdp_presentation_queue_target_create_x11(1, 62914562, -)
-> 0, 21
vdp_presentation_queue_create(1, 21, -)
VDPAU nvidia: Error detected 1 205
VDPAU nvidia: Backtrace:
01: /usr/lib/libvdpau_nvidia.so [0xb791431e]
02: /usr/lib/libvdpau_nvidia.so [0xb79143e9]
03: /usr/lib/libvdpau_nvidia.so [0xb791dabb]
04: /usr/lib/libvdpau_nvidia.so [0xb791d40a]
05: /usr/lib/libvdpau_nvidia.so [0xb791a081]
06: /usr/lib/libvdpau_trace.so [0xb7f3d1d1]
07: ./1player [0x8050e32]
08: ./1player [0x804923f]
09: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7dd2775]
10: ./1player [0x8048c11]
VDPAU nvidia: Error detected 0 4532
VDPAU nvidia: Backtrace:
01: /usr/lib/libvdpau_nvidia.so [0xb791431e]
02: /usr/lib/libvdpau_nvidia.so [0xb79143e9]
03: /usr/lib/libvdpau_nvidia.so [0xb791a1d3]
04: /usr/lib/libvdpau_trace.so [0xb7f3d1d1]
05: ./1player [0x8050e32]
06: ./1player [0x804923f]
07: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7dd2775]
08: ./1player [0x8048c11]
-> 23
FATAL ERROR: Obtain VpdVideoPresentationQueueCreate failed, vdp_status = 23
vdp_get_error_string(23)
-> 'The system does not have enough resources to complete the requested operation at this time.'
VDPAU >>>>>> The system does not have enough resources to complete the requested operation at this time.
Can't intialize VDPAU decoder components, force quit...

================================================== =================

I guess the Xserver configuration is also very important, so here I pasted my /etc/X11/xorg.conf:
================================================== =================
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder63) Mon Mar 23 15:34:19 PST 2009

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "ViewSonic VX1940w"
HorizSync 24.0 - 82.0
VertRefresh 50.0 - 75.0
Option "DPMS"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "ViewSonic VX1940w"
HorizSync 24.0 - 82.0
VertRefresh 50.0 - 75.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9600 GT"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9600 GT"
BusID "PCI:2:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
================================================== ==============

Here is the system information:
Kernel 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3

Thank you, any more details you need to know, feel free to contact me
dean1873 is offline   Reply With Quote