Incomprehensiblies and variances in Pg_* API. Help needed !

Hello, All!

  1. In documentation to function PgCreateVideoChannel I’ve found that: if
    driver doesn’t supports overlays, return code must be ENXIO (No such device
    or address) but with TNT2 driver I’ve got the EINVAL (Invalid argument). Is
    that error or undocumented behavior ?

  2. In documentation to function PgGetVideoModeInfo described define
    PgVM_MODE_CAP1_REFRESH_RAT, but when I try to use it, it appears not
    declared ! Grepping photon includes I’m doesn’t find any inclusions. Maybe
    this define already obsolete ?

  3. In documentation to function PgGetGraphicsHWCaps I’ve found misspelled
    names of the PgHWCaps_t structure members in description section:
    currently_available_crtc_video_ram (must be currently_available_crtc_ram)
    and currently_available_non_crtc_video_ram (must be
    currently_available_non_crtc_ram).

  4. In include file PgHLS.h I’ve found string “#define Pg_RGB_SATURATION”,
    but I think must be Pg_HLS_SATURATION ?

  5. Starnge thing going on with detecting overlay or 2D capabilities of the
    mode/graphics board:

As I understand TNT2 driver doesn’t support hardware overlays, but
PgGetGraphicsHWCaps says (test program included as attachment) my board
supports overlays. In documentation I’ve found that mean board support
overlays but not in all modes, isn’t it ? But I test ALL modes with all bpp,
no one mode doesn’t supports overlays (PgGetVideoModeInfo always says
overlays doesn’t supported) ! The same things with 2D acceleration. Why
PgGetGraphicsHWCaps lies to me ?

One more intresting thing: S3 Savage 4 board have the same behavior as I
written above, i.e. mode doesn’t supports overlay (according to
PgGetVideoModeInfo), but when I create video channel and checking
capabilities of overlay formats I’ve found that S3 Savage4 board supports
YUY2 and UYVY overlay types and its works for me !

Too many variances and incomprehensiblies for me :frowning:

Is there available real documentation about driver, board and its HW
capabilities ?

Thanks !

With best regards, Mike Gorchak.


begin 666 testhw.c
M(VEN8VQU9&4@/’-T9&EO+F@^“B-I;F-L=61E(#Q0:“YH/@HC:6YC;'5D92
M<&AO=&]N+U!G+F@^“B-I;F-L=61E(#Q0=“YH/@H*:6YT(&UA:6XH0I[“B @
M(&EN=”!#=7)R96YT5FED96]-;V1E.PH
(” @:68@%!T26YI=“A.54Q,2$]
M,"D
(” @>PH@(" @("!P<FEN=&8H(D-O=6QD;B=T(&-O;FYE8W0@=&@<&AO
M=&]N("%<;B(I.PH@(" @("!R971U<FX@,3L
(” @?0H@(” (" @>PH@(" @
M("!09T1I<W!L87E3971T:6YG<U]T(’-E='1I;F=S.PH@(" @(" (" @(" @
M:68@
%!G1V5T5FED96]-;V1E
"9S971T:6YG<RDA/3 I"B @(” @(‘L*(" @
M(" @(" @<’)I;G1F*")#;W5L9&XG="!O8G1A:6X@8W5R<F5N="!V:61E;R!M
M;V1E(’-E=‘1I;F=S("%<;B(I.PH@(" @(" @("!R971U<FX@,CL*(" @(" @
M?0H@(" @(" (" @(" @0W5R<F5N=%9I9&5O36]D93US971T:6YG<RYM;V1E
M.PH@("!]“B @( H@(”![“B @(” @(%!G5FED96]-;V1E26YF;U]T(&EN9F[
M"B @(" @( H@(" @("!I9B H4&='9716:61E;TUO9&5);F9O
$-U<G)E;G16
M:61E;TUO9&4L(“9I;F9O2$],"D(” @(" @>PH@(" @(" @("!P<FEN=&8H
M(D-O=6QD;B=T(&]B=&%I;B!C=7)R96YT(‘9I9&5O(&UO9&4@:6YF;R A7&XB
M3L(" @(" @(" @<F5T=7)N(#([“B @(” @(‘T*(" @(" @“B @(” @(’!R
M:6YT9B@B7&Y<;B(I.PH@(" @("!P<FEN=&8H(CT]/2!09T=E=%9I9&5O36]D
M94EN9F@<F5S=6QT<R ]/3U<;B(I.PH@(" @("!P<FEN=&8H(D-U<G)E;G0@
M=FED96@;6]D92 @.B E,#A87&XB+"!#=7)R96YT5FED96]-;V1E3L(" @
M(" @<’)I;G1F*")7:61T:"!X(&AE:6=T(’@@8G!P(#H@)61X)61X)61<;B(L
M(&EN9F\N=VED=&@L(&EN9F\N:&5I9VAT+"!I;F9O+F)I=’-?<&5R7W!I>&5L
M3L(" @(" @<’)I;G1F*")6:61E;R!M;V1E(‘1Y<&4@(" @(#H@)3 X6%QN
M(BP@:6YF;RYT>7!E3L(" @(" @<’)I;G1F*")4:&ES(&UO9&4@<W5P<&]R
M=’,Z7&XB3L"B @(" @(’!R:6YT9B@B(" @6T-!4#$Z(“4P.%A=7&XB+”!I
M;F9O+FUO9&5?8V%P86)I;&ET:65S,2D[“B @(” @(&EF(“AI;F9O+FUO9&5?
M8V%P86)I;&ET:65S,2 F(%!G5DU?34]$15]#05 Q7T]&1E-#4D5%3BD*(” @
M(" @(" @<’)I;G1F*"(@(" @+2!4:&4@9’)I=F5R(’-U<’!O<G1S(&]F9G-C
M<F5E;B!M;V1E+EQN(BD[“B @(” @(&EF(“AI;F9O+FUO9&5?8V%P86)I;&ET
M:65S,2 F(%!G5DU?34]$15]#05 Q7S)$7T%#0T5,0H@(" @(" @("!P<FEN
M=&8H(B @(" M(%1H92 R1"!A8V-E;&5R871O<B!W;W)K<R!I;B!T:&ES(&UO
M9&4N7&XB
3L*(” @(" @:68@&EN9F\N;6]D95]C87!A8FEL:71I97,Q(“8@
M4&=635]-3T1%7T-!4#%?,T1?04-#14PI"B @(” @(" @(’!R:6YT9B@B(" @
M(“T@5&AE(#-$(&%C8V5L97)A=&]R(’=O<FMS(&EN('1H:7,@;6]D92Y<;B(I
M.PH@(” @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S$@)B!09U9-7TU/
M1$5?0T%0,5]6241%3U]/5D523$%9
0H@(" @(" @("!P<FEN=&8H(B @(" M
M(%9I9&5O(&]V97)L87D@=V]R:W,@:6X@=&AI<R!M;V1E+EQN(BD[“B @(” @
M(&EF(“AI;F9O+FUO9&5?8V%P86)I;&ET:65S,2 F(%!G5DU?34]$15]#05 Q
M7TQ)3D5!4BD*(” @(" @(" @<’)I;G1F*"(@(" @+2!4:&ES(&UO9&4G<R!M
M96UO<GD@:7,@;&EN96%R(“AN;W0@8F%N:V5D(’-W:71C:&5D2Y<;B(I.PH@
M(" @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S$@)B!09U9-7TU/1$5?
M0T%0,5]$3U5"3$5?0E5&1D52
0H@(” @(" @("!P<FEN=&8H(B @(" M(%1H
M:7,@;6]D92!C86X@8F4@9&]U8FQE(&)U9F9E<F5D+EQN(BD[“B @(” @(&EF
M(“AI;F9O+FUO9&5?8V%P86)I;&ET:65S,2 F(%!G5DU?34]$15]#05 Q7U12
M25!,15]“549&15(I"B @(” @(” @(’!R:6YT9B@B(" @(“T@5&AI<R!M;V1E
M(&-A;B!B92!T<FEP;&4@8G5F9F5R960N7&XB3L(” @(" @<’)I;G1F*"(@
M("!;0T%0,CH@)3 X6%U<;B(L(&EN9F\N;6]D95]C87!A8FEL:71I97,R3L
M(" @(" @:68@&EN9F\N;6]D95]C87!A8FEL:71I97,R("8@4&=635]-3T1%
M7T-!4#)?0DE40DQ4
0H@(" @(" @("!P<FEN=&8H(B @(" M(%-U<’!O<G1S
M(&AA<F1W87)E(&)I=“UB;&ET<RY<;B(I.PH@(” @("!I9B H:6YF;RYM;V1E
M7V-A<&%B:6QI=&EE<S(@)B!09U9-7TU/1$5?0T%0,E]214-404Y’3$4I"B @
M(" @(" @(’!R:6YT9B@B(" @(“T@4W5P<&]R=’,@:&%R9’=A<F4@<F5C=&%N
M9VQE<RY<;B(I.PH@(” @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S(@
M)B!09U9-7TU/1$5?0T%0,E],24Y%4RD*(" @(" @(" @<’)I;G1F*"(@(" @
M+2!3=7!P;W)T<R!H87)D=V%R92!L:6YE<RY<;B(I.PH@(" @("!I9B H:6YF
M;RYM;V1E7V-A<&%B:6QI=&EE<S(@)B!09U9-7TU/1$5?0T%0,E]03TQ91T].
M4RD*(" @(" @(" @<’)I;G1F*"(@(" @+2!3=7!P;W)T<R!H87)D=V%R92!P
M;VQY9V]N<RY<;B(I.PH@(" @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE
M<S(@)B!09U9-7TU/1$5?0T%0,E]&54Q,7U)/4%,I"B @(" @(" @(’!R:6YT
M9B@B(" @(“T@4W5P<&]R=’,@86QL(#(U-B!R87-T97(@;W!E<F%T:6]N<R!I
M;B!H87)D=V%R92Y<;B(I.PH@(” @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI
M=&EE<S(@)B!09U9-7TU/1$5?0T%0,E]0051415).0H@(" @(" @("!P<FEN
M=&8H(B @(" M(%-U<’!O<G1S(&AA<F1W87)E(’!A='1E<FYS+EQN(BD[“B @
M(” @(&EF("AI;F9O+FUO9&5?8V%P86)I;&ET:65S,B F(%!G5DU?34]$15]#
M05 R7T-(4D]-02D
(" @(" @(" @<’)I;G1F*"(@(" @+2!3=7!P;W)T<R!H
M87)D=V%R92!C:’)O;6$@:V5Y+EQN(BD[“B @(” @(&EF(“AI;F9O+FUO9&5?
M8V%P86)I;&ET:65S,B F(%!G5DU?34]$15]#05 R7T%,4$A!7T),14Y$0H@
M(" @(" @("!P<FEN=&8H(B @(" M(%-U<’!O<G1S(&AA<F1W87)E(&%L<&AA
M(&)L96YD:6YG+EQN(BD[“B @(” @(&EF(“AI;F9O+FUO9&5?8V%P86)I;&ET
M:65S,B F(%!G5DU?34]$15]#05 R7T%,4$A!7U1%4U0I"B @(” @(" @(’!R
M:6YT9B@B(" @(“T@4W5P<&]R=’,@:&%R9’=A<F4@86QP:&$@=&5S=“Y<;B(I
M.PH@(” @(”!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S(@)B!09U9-7TU/
M1$5?0T%0,E]03$%.15]-05-+0H@(" @(" @("!P<FEN=&8H(B @(" M(%-U
M<’!O<G1S(&AA<F1W87)E(’!L86YE(&UA<VMI;F<N7&XB
3L
(” @(" @:68@
M*&EN9F\N;6]D95]C87!A8FEL:71I97,R(“8@4&=635]-3T1%7T-!4#)?24U!
M1T5?0T].5D524TE/3BD*(” @(" @(" @<’)I;G1F*"(@(" @+2!3=7!P;W)T
M<R!H87)D=V%R92!I;6%G92!C;VYV97)S:6]N+EQN(BD[“B @(” @(&EF(“AI
M;F9O+FUO9&5?8V%P86)I;&ET:65S,B F(%!G5DU?34]$15]#05 R7T173U)$
M0H@(" @(" @("!P<FEN=&8H(B @(" M(%-U<’!O<G1S(&AA<F1W87)E(&%C
M8V5L97)A=&5D($173U)$+6%L:6=N960@9&%T82Y<;B(I.PH@(" @("!I9B H
M:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S(@)B!09U9-7TU/1$5?0T%0,E]73U)$
M
0H@(” @(" @("!P<FEN=&8H(B @(" M(%-U<’!O<G1S(&AA<F1W87)E(&%C
M8V5L97)A=&5D(%=/4D0M86QI9VYE9"!D871A+EQN(BD[“B @(” @(&EF(“AI
M;F9O+FUO9&5?8V%P86)I;&ET:65S,B F(%!G5DU?34]$15]#05 R7T)95$4I
M"B @(” @(" @(’!R:6YT9B@B(" @(“T@4W5P<&]R=’,@:&%R9’=A<F4@86-C
M96QE<F%T960@0EE412UA;&EG;F5D(&1A=&$N7&XB3L(” @(" @:68@&EN
M9F\N;6]D95]C87!A8FEL:71I97,R("8@4&=635]-3T1%7T-!4#)?4UE35$5-
M7U)!32D
(" @(" @(" @<’)I;G1F*"(@(" @+2!4<F%N<V9E<G,@=&@86YD
M(&9R;VT@4WES=&5M(%)A;2Y<;B(I.PH@(" @("!I9B H:6YF;RYM;V1E7V-A
M<&%B:6QI=&EE<S(@)B!09U9-7TU/1$5?0T%0,E]6241%3U]204TI"B @(" @
M(" @(’!R:6YT9B@B(" @(“T@5’)A;G-F97)S('1O(&%N9”!F<F]M(%9I9&5O
M(%)A;2Y<;B(I.PH@(" @("!P<FEN=&8H(B @(%M#05 S.B E,#A875QN(BP@
M:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S,I.PH@(" @("!P<FEN=&8H(B @(%M#
M05 T.B E,#A875QN(BP@:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S0I.PH@(" @
M("!P<FEN=&8H(B @(%M#05 U.B E,#A875QN(BP@:6YF;RYM;V1E7V-A<&%B
M:6QI=&EE<S4I.PH@(" @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S4@
M)B!09U9-7TU/1$5?0T%0-5]$25)%0U1?1$E214-40H@(" @(" @("!P<FEN
M=&8H(B @(" M($-A;B!C;VYV97)T(&)E=’=E96X@9&ER96-T(&-O;&]R(&9O
M<FUA=’,N7&XB
3L*(" @(" @:68@&EN9F\N;6]D95]C87!A8FEL:71I97,U
M(“8@4&=635]-3T1%7T-!4#5?1$E214-47U!!3$545$4I"B @(” @(" @(’!R
M:6YT9B@B(" @("T@0V%N(&-O;G9E<G0@9&ER96-T(‘1O(’!A;&5T=&4@9F]R
M;6%T+EQN(BD[“B @(” @(&EF("AI;F9O+FUO9&5?8V%P86)I;&ET:65S-2 F
M(%!G5DU?34]$15]#05 U7U!!3$545$5?1$E214-4
0H@(" @(" @("!P<FEN
M=&8H(B @(" M($-A;B!C;VYV97)T(’!A;&5T=&4@=&@9&ER96-T(&9O<FUA
M=“Y<;B(I.PH@(” @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S4@)B!0
M9U9-7TU/1$5?0T%0-5]004Q%5%1%7U!!3$545$4I"B @(" @(" @(’!R:6YT
M9B@B(" @(“T@0V%N(&-O;G9E<G0@8F5T=V5E;B!P86QE=‘1E(&-O;&]R(&9O
M<FUA=’,N7&XB3L(” @(" @:68@&EN9F\N;6]D95]C87!A8FEL:71I97,U
M("8@4&=635]-3T1%7T-!4#5?65567T1)4D5#5"D
(" @(" @(" @<’)I;G1F
M*"(@(" @+2!#86X@8V]N=F5R="!9558@=&@9&ER96-T(&9O<FUA=“Y<;B(I
M.PH@(” @("!I9B H:6YF;RYM;V1E7V-A<&%B:6QI=&EE<S4@)B!09U9-7TU/
M1$5?0T%0-5]$25)%0U1?65560H@(" @(" @("!P<FEN=&8H(B @(" M($-A
M;B!C;VYV97)T(&1I<F5C="!T;R!9558@9F]R;6%T+EQN(BD[“B @(” @(&EF
M(“AI;F9O+FUO9&5?8V%P86)I;&ET:65S-2 F(%!G5DU?34]$15]#05 U7UE5
M5E]004Q%5%1%0H@(" @(" @("!P<FEN=&8H(B @(" M($-A;B!C;VYV97)T
M(%E55B!T;R!P86QE='1E(&9O<FUA=“Y<;B(I.PH@(” @("!I9B H:6YF;RYM
M;V1E7V-A<&%B:6QI=&EE<S4@)B!09U9-7TU/1$5?0T%0-5]004Q%5%1%7UE5
M5BD
(” @(" @(" @<’)I;G1F
"(@(" @+2!#86X@8V]N=F5R="!P86QE=‘1E
M(‘1O(%E55B!F;W)M870N7&XB3L(" @(" @:68@&EN9F\N;6]D95]C87!A
M8FEL:71I97,U("8@4&=635]-3T1%7T-!4#5?65567UE55BD
(" @(" @(" @
M<’)I;G1F*"(@(" @+2!#86X@8V]N=F5R="!B971W965N(%E55B!C;VQO<B!F
M;W)M871S+EQN(BD[“B @(” @(’!R:6YT9B@B(" @6T-!4#8Z(“4P.%A=7&XB
M+”!I;F9O+FUO9&5?8V%P86)I;&ET:65S-BD[“B @('T*(” @“B @('L*(” @
M(" @4&=(5T-A<’-?="!C87!S.PH*(" @(" @:68@%!G1V5T1W)A<&AI8W-(
M5T-A<’,H)F-A<’,I(3TP
0H@(" @("![“B @(” @(" @(’!R:6YT9B@B0V]U
M;&1N)W0@;V)T86EN(&AA<F1W87)E(&-A<&%B:6QI=&EE<R A7&XB3L(" @
M(" @(" @<F5T=7)N(#([“B @(” @(‘T*“B @(” @(’!R:6YT9B@B7&Y<;B(I
M.PH@(" @("!P<FEN=&8H(CT]/2!09T=E=$=R87!H:6-S2%=#87!S(’)E<W5L
M=’,@/3T]7&XB3L(" @(" @<’)I;G1F*")#=7)R96YT(‘9I9&5O(&UO9&4@
M(" Z("4P.%A<;B(L(&-A<’,N8W5R<F5N=%]V:61E;U]M;V1E3L(" @(" @
M<’)I;G1F*")#=7)R96YT(’)E9G)E<V@@<F%T92 Z(“5D7&XB+”!C87!S+F-U
M<G)E;G1?<G)A=&4I.PH@(" @("!P<FEN=&8H(D-U<G)E;G0@;6]D92!F;&%G
M<R @(#H@)3 X6%QN(BP@8V%P<RYC=7)R96YT7VUO9&5?9FQA9W,I.PH@(" @
M("!P<FEN=&8H(E)A<W1E<FES97(@=F5R<VEO;B @(#H@)3 X6%QN(BP@8V%P
M<RYR87-T97)I<V5R7W9E<G-I;VXI.PH@(" @("!P<FEN=&8H(D1R:79E<B!V
M97)S:6]N(" @(" @(#H@)3 X6%QN(BP@8V%P<RYD<FEV97)?=F5R<VEO;BD[
M"B @(" @(’!R:6YT9B@B5&]T86P@=FED96@4D%-(" @(" @.B E9%QN(BP@
M8V%P<RYT;W1A;%]V:61E;U]R86TI.PH@(" @("!P<FEN=&8H(E1O=&%L($-2
M5$,M<V%F92!204T@(#H@)61<;B(L(&-A<’,N=&]T86Q?8W)T8U]R86TI.PH@
M(" @("!P<FEN=&8H(E1O=&%L(&YO;BU#4E1#(%)!32 @(#H@)61<;B(L(&-A
M<’,N=&]T86Q?;F]N7V-R=&-?<F%M3L(" @(" @<’)I;G1F*")!=F%I;"!6
M:61E;R!204T@(" @(" Z(“5D7&XB+”!C87!S+F-U<G)E;G1L>5]A=F%I;&%B
M;&5?=FED96]?<F%M3L(" @(" @<’)I;G1F*")!=F%I;"!#4E1#(%)!32 @
M(" @(" Z(“5D7&XB+”!C87!S+F-U<G)E;G1L>5]A=F%I;&%B;&5?8W)T8U]R
M86TI.PH@(" @("!P<FEN=&8H(D%V86EL(&YO;BU#4E1#(%)!32 @(#H@)61<
M;B(L(&-A<’,N8W5R<F5N=&QY7V%V86EL86)L95]N;VY?8W)T8U]R86TI.PH@
M(" @("!P<FEN=&8H(D-H:7 @;F%M92 @(" @(" @(" @(#H@)7-<;B(L(&-A
M<’,N8VAI<%]N86UE3L(" @(" @<’)I;G1F*")#87)D(&-A<&%B:6QI=&EE
M<R @(" Z(“4P.%A<;B(L(&-A<’,N8V%R9%]C87!A8FEL:71I97,I.PH@(” @
M("!I9B H8V%P<RYC87)D7V-A<&%B:6QI=&EE<R F(%!G7S)$7T%#0T5,15)!
M5$]20H@(" @(" @("!P<FEN=&8H(B M(%1H:7,@=FED96@8V%R9"!H87,@
M,D0@86-C96QE<F%T;W(N7&XB
3L*(" @(" @:68@&-A<’,N8V%R9%]C87!A
M8FEL:71I97,@)B!09U\S1%]!0T-%3$52051/4BD
(" @(" @(" @<’)I;G1F
M*"(@+2!4:&ES(‘9I9&5O(&-A<F0@:&%S(#-$(&%C8V5L97)A=&]R+EQN(BD[
M"B @(" @(&EF(“AC87!S+F-A<F1?8V%P86)I;&ET:65S(“8@4&=?5DE$14]?
M3U9%4DQ!62D*(” @(” @(" @<’)I;G1F*"(@+2!4:&ES('9I9&5O(&-A<F0@
M:&%S(‘9I9&5O(&]V97)L87D@<W5P<&]R=“Y<;B(I.PH@(” @("!I9B H8V%P
M<RYC87)D7V-A<&%B:6QI=&EE<R F(%!G7T]&1E-#4D5%3BD*(" @(" @(" @
M<’)I;G1F*"(@+2!4:&ES('9I9&5O(&-A<F0@8V%N('5S92!O9F9S8W)E96X@
M=FED96@;65M;W)Y+EQN(BD[“B @(” @(&EF("AC87!S+F-A<F1?8V%P86)I
M;&ET:65S("8@4&=?3$E.14%27T9204U%7T)51D9%4E]#05!!0DQ%0H@(" @
M(" @("!P<FEN=&8H(B M(%1H:7,@=FED96@8V%R9"!C86X@=7-E(&$@;&EN
L96%R(&9R86UE(&)U9F9E<BY<;B(I.PH@("!]"@H@("!R971U<FX@,#L
?0H
end

Hi Mike,

  1. Starnge thing going on with detecting overlay or 2D capabilities of the
    mode/graphics board:

As I understand TNT2 driver doesn’t support hardware overlays, but
PgGetGraphicsHWCaps says (test program included as attachment) my board
supports overlays. In documentation I’ve found that mean board support
overlays but not in all modes, isn’t it ? But I test ALL modes with all bpp,
no one mode doesn’t supports overlays (PgGetVideoModeInfo always says
overlays doesn’t supported) ! The same things with 2D acceleration. Why
PgGetGraphicsHWCaps lies to me ?

I have overlay support with my NVidia Geforce 2 in mplayer working (YUY2
& UYVY), so maybe it says all nvidia cards have overlays but only some
cards are really supported.

Julian Kinraid

Hello, Julian!

JK> I have overlay support with my NVidia Geforce 2 in mplayer working
JK> (YUY2 & UYVY), so maybe it says all nvidia cards have overlays but only
JK> some cards are really supported.

AFAIK 2D part of all nVidia products very close between the different
boards, maybe the same. It is sad, that TNT2 boards is outcast in QNX …
:frowning:

With best regards, Mike Gorchak.

Hi Mike,

  1. In documentation to function PgCreateVideoChannel I’ve found that: if
    driver doesn’t supports overlays, return code must be ENXIO (No such
    device
    or address) but with TNT2 driver I’ve got the EINVAL (Invalid argument).
    Is
    that error or undocumented behavior ?

The devg-tnt.so driver only supports overlays on certain chipsets. (GeForce,
GeForce 2)
So the driver will report that it can support overlays, but when trying to
create a videochannel on an “unsupported chipset” will fail.

See the 6.2 Release notes - look at the ‘Graphics Drivers’ section under
‘Changes & Fixes’ for the

A PR has been filed about the return code.



  1. In documentation to function PgGetVideoModeInfo described define
    PgVM_MODE_CAP1_REFRESH_RAT, but when I try to use it, it appears not
    declared ! Grepping photon includes I’m doesn’t find any inclusions. Maybe
    this define already obsolete ?

A PR has been filed for this.


  1. In documentation to function PgGetGraphicsHWCaps I’ve found misspelled
    names of the PgHWCaps_t structure members in description section:
    currently_available_crtc_video_ram (must be currently_available_crtc_ram)
    and currently_available_non_crtc_video_ram (must be
    currently_available_non_crtc_ram).

Which verison of 6.2 are you running?
On my machine (6.2 PE) the docs to PgGetGetGraphicsHWCaps shows:

unsigned long currently_available_video_ram;
unsigned long currently_available_crtc_ram;
unsigned long currently_available_non_crtc_ram;

which is the same as the contents of /usr/include/photon/Pg.h


  1. In include file PgHLS.h I’ve found string “#define Pg_RGB_SATURATION”,
    but I think must be Pg_HLS_SATURATION ?

We’re looking into this.

  1. Starnge thing going on with detecting overlay or 2D capabilities of
    the
    mode/graphics board:

As I understand TNT2 driver doesn’t support hardware overlays, but
PgGetGraphicsHWCaps says (test program included as attachment) my board
supports overlays. In documentation I’ve found that mean board support
overlays but not in all modes, isn’t it ? But I test ALL modes with all
bpp,
no one mode doesn’t supports overlays (PgGetVideoModeInfo always says
overlays doesn’t supported) ! The same things with 2D acceleration. Why
PgGetGraphicsHWCaps lies to me ?

See point #1.

One more intresting thing: S3 Savage 4 board have the same behavior as I
written above, i.e. mode doesn’t supports overlay (according to
PgGetVideoModeInfo), but when I create video channel and checking
capabilities of overlay formats I’ve found that S3 Savage4 board supports
YUY2 and UYVY overlay types and its works for me !

We’re looking into this. As you’ve found, the driver for the S3 Savage4
board
does support various overlay types.

Regards,

Joe

Hello, Hardware!

HS> Which verison of 6.2 are you running?
HS> On my machine (6.2 PE) the docs to PgGetGetGraphicsHWCaps shows:

HS> unsigned long currently_available_video_ram;
HS> unsigned long currently_available_crtc_ram;
HS> unsigned long currently_available_non_crtc_ram;

HS> which is the same as the contents of /usr/include/photon/Pg.h

Please read the all help about PgGetGetGraphicsHWCaps function. Mispelled
names I found in the center of the document or try to search mispelled
variables, not all occurances of this variables has the mispelled names.

Thanks !


With best regards, Mike Gorchak.

Mike Gorchak <mike@malva.ua.remove.this.for.no.spam> wrote:
: Hello, Hardware!

: HS> Which verison of 6.2 are you running?
: HS> On my machine (6.2 PE) the docs to PgGetGetGraphicsHWCaps shows:

: HS> unsigned long currently_available_video_ram;
: HS> unsigned long currently_available_crtc_ram;
: HS> unsigned long currently_available_non_crtc_ram;

: HS> which is the same as the contents of /usr/include/photon/Pg.h

: Please read the all help about PgGetGetGraphicsHWCaps function. Mispelled
: names I found in the center of the document or try to search mispelled
: variables, not all occurances of this variables has the mispelled names.

I think you have an old version of the docs. The member names were
corrected quite a while ago.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems