* [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos
@ 2013-07-30 10:37 bugzilla-daemon
2013-07-30 11:35 ` [Bug 67530] VDPAU state tracker reports wrong codec level bugzilla-daemon
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-07-30 10:37 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 2902 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
Priority: medium
Bug ID: 67530
Assignee: dri-devel@lists.freedesktop.org
Summary: Wrong UVD capabilities reported by VDPAU on Brazos
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: richard.vdboom@gmail.com
Hardware: x86-64 (AMD64)
Status: NEW
Version: XOrg CVS
Component: DRM/Radeon
Product: DRI
The VDPAU collects from VDPAU drivers a certain amount of capabilities that are
supposed to allow user space program to check if the decoder is able to decode
a particular stream or not.
These parameters can be checked by the vdpauinfo tool and the begining of the
output on Nvidia hardware looks like this :
******************
display: (null) screen: 0
API version: 0
Information string: Unknown
Video surface:
name width height types
-------------------------------------------
420 4096 4096 NV12 YV12
422 4096 4096 UYVY YUYV
Decoder capabilities:
name level ref width height
------------------------------------
MPEG1 0 2 4096 4096
MPEG2_SIMPLE 3 2 4096 4096
MPEG2_MAIN 3 2 4096 4096
H264_MAIN 41 4 4096 4096
H264_HIGH 41 4 4096 4096
*******************
Right now, the output on a Zacate / Brazos E450 system looks like this :
*******************
bash-4.2$ vdpauinfo
display: :0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0
Video surface:
name width height types
-------------------------------------------
420 16384 16384 NV12
422 16384 16384 NV12
444 16384 16384 NV12
Decoder capabilities:
name level macbs width height
-------------------------------------------
MPEG1 16 9216 2048 1152
MPEG2_SIMPLE 16 9216 2048 1152
MPEG2_MAIN 16 9216 2048 1152
H264_BASELINE 16 9216 2048 1152
H264_MAIN 16 9216 2048 1152
H264_HIGH 16 9216 2048 1152
VC1_SIMPLE 16 9216 2048 1152
VC1_MAIN 16 9216 2048 1152
VC1_ADVANCED 16 9216 2048 1152
MPEG4_PART2_SP 16 9216 2048 1152
MPEG4_PART2_ASP 16 9216 2048 1152
*********************
Whatever the codec, the supported level is shown to be 16 (a non-existing level
for h264 at least) and the macbs (the number of macroblocks) is always the
same.
This confuses players like VLC which adress libvdpau directly and get this
answer (16) for the supported h264 level. Players like mplayer, which do not
check this, play the video using UVD without problem.
So there is just an issue with the way VDPAU reports UVD capabilities : it
seems to just provide some kind of default.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 4208 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
@ 2013-07-30 11:35 ` bugzilla-daemon
2013-07-30 11:57 ` bugzilla-daemon
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-07-30 11:35 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 747 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
Christian König <deathsimple@vodafone.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Summary|Wrong UVD capabilities |VDPAU state tracker reports
|reported by VDPAU on Brazos |wrong codec level
--- Comment #1 from Christian König <deathsimple@vodafone.de> ---
Indeed, so far we have hardcoded the level in vlVdpDecoderQueryCapabilities.
Should be updated to correctly return the supported codec level.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2186 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
2013-07-30 11:35 ` [Bug 67530] VDPAU state tracker reports wrong codec level bugzilla-daemon
@ 2013-07-30 11:57 ` bugzilla-daemon
2013-07-30 12:29 ` bugzilla-daemon
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-07-30 11:57 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 391 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
--- Comment #2 from Richard Van Den Boom <richard.vdboom@gmail.com> ---
Good to know! I'll stop bothering the world and his dog about that, then. :-)
Is this also normal that the decoder only report NV12 and no YV12, UYVY or
YUYV? Is it some hardware limitation?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1169 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
2013-07-30 11:35 ` [Bug 67530] VDPAU state tracker reports wrong codec level bugzilla-daemon
2013-07-30 11:57 ` bugzilla-daemon
@ 2013-07-30 12:29 ` bugzilla-daemon
2013-08-06 21:19 ` bugzilla-daemon
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-07-30 12:29 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 810 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
--- Comment #3 from Christian König <deathsimple@vodafone.de> ---
(In reply to comment #2)
> Good to know! I'll stop bothering the world and his dog about that, then. :-)
> Is this also normal that the decoder only report NV12 and no YV12, UYVY or
> YUYV? Is it some hardware limitation?
Yes that's a hardware limitation, UVD can only decode to an NV12 destination.
Well actually we somewhat abused the query interface here, cause VDPAU asks the
driver what image formats are supported in up/downloads and not as decoding
target.
Should probably fix that at some point as well. On the other hand that should
be really easy to do, so if anybody volunteers...
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1679 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
` (2 preceding siblings ...)
2013-07-30 12:29 ` bugzilla-daemon
@ 2013-08-06 21:19 ` bugzilla-daemon
2013-08-07 10:49 ` bugzilla-daemon
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-08-06 21:19 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 415 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
--- Comment #4 from gurketsky@googlemail.com ---
Created attachment 83741
--> https://bugs.freedesktop.org/attachment.cgi?id=83741&action=edit
use more common defaults for the level
This patch adds more common defaults as level. Imho they are likely not correct
for all the hardware.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1421 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
` (3 preceding siblings ...)
2013-08-06 21:19 ` bugzilla-daemon
@ 2013-08-07 10:49 ` bugzilla-daemon
2013-08-13 16:21 ` bugzilla-daemon
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-08-07 10:49 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1056 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
--- Comment #5 from Christian König <deathsimple@vodafone.de> ---
(In reply to comment #4)
> Created attachment 83741 [details] [review]
> use more common defaults for the level
>
> This patch adds more common defaults as level. Imho they are likely not
> correct for all the hardware.
Not bad for a first try, but I have some minor comments:
> return true;
> case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE:
> return true;
>+ case PIPE_VIDEO_CAP_MAX_LEVEL:
>+ switch (profile) {
>+ case PIPE_VIDEO_PROFILE_MPEG1:
The new code has a different indention, the radeon code uses tabs instead of
spaces, please fix.
Additional to that you need to fix all drivers to handle the new CAP, just
"grep -R PIPE_VIDEO_CAP_SUPPORTED src/gallium/drivers" to find all those
places.
With that fixed please send the patch to the mesa maillinglist for review.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2299 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
` (4 preceding siblings ...)
2013-08-07 10:49 ` bugzilla-daemon
@ 2013-08-13 16:21 ` bugzilla-daemon
2013-08-13 16:31 ` bugzilla-daemon
2013-08-14 11:36 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-08-13 16:21 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 868 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
gurketsky@googlemail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #83741|0 |1
is obsolete| |
--- Comment #6 from gurketsky@googlemail.com ---
Created attachment 84021
--> https://bugs.freedesktop.org/attachment.cgi?id=84021&action=edit
use more common defaults for the level (all cards)
I fixed the white spaces and added all drivers. The problem I see is, the
default values may be not correct. This also holds true for the nouveau driver.
We may need some vdpauinfo from the binary driver to fix that. If that's not
much of a problem, I'll submit this patch.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2392 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
` (5 preceding siblings ...)
2013-08-13 16:21 ` bugzilla-daemon
@ 2013-08-13 16:31 ` bugzilla-daemon
2013-08-14 11:36 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-08-13 16:31 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 829 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
--- Comment #7 from Christian König <deathsimple@vodafone.de> ---
(In reply to comment #6)
> Created attachment 84021 [details] [review]
> use more common defaults for the level (all cards)
>
> I fixed the white spaces and added all drivers. The problem I see is, the
> default values may be not correct. This also holds true for the nouveau
> driver. We may need some vdpauinfo from the binary driver to fix that. If
> that's not much of a problem, I'll submit this patch.
Looks pretty good. Those values are definitely more reasonable than the
hardcoded "16", so it is an improvements even when they might not be 100%
correctly.
Please submit to the maillinglist and CC me.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2056 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 67530] VDPAU state tracker reports wrong codec level
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
` (6 preceding siblings ...)
2013-08-13 16:31 ` bugzilla-daemon
@ 2013-08-14 11:36 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2013-08-14 11:36 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 577 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=67530
Christian König <deathsimple@vodafone.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Christian König <deathsimple@vodafone.de> ---
Just commited the fix to master, please retest and close if solved.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2083 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-08-14 11:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30 10:37 [Bug 67530] New: Wrong UVD capabilities reported by VDPAU on Brazos bugzilla-daemon
2013-07-30 11:35 ` [Bug 67530] VDPAU state tracker reports wrong codec level bugzilla-daemon
2013-07-30 11:57 ` bugzilla-daemon
2013-07-30 12:29 ` bugzilla-daemon
2013-08-06 21:19 ` bugzilla-daemon
2013-08-07 10:49 ` bugzilla-daemon
2013-08-13 16:21 ` bugzilla-daemon
2013-08-13 16:31 ` bugzilla-daemon
2013-08-14 11:36 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).