[Bug 34567] New: xf86-video-ati git and drm-radeon-testing git: CS checker leads mplayer / vlc to fail with xv

2011-02-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=34567

   Summary: xf86-video-ati git and drm-radeon-testing git: CS
checker leads mplayer / vlc to fail with xv
   Product: Mesa
   Version: git
  Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r600
AssignedTo: dri-devel at lists.freedesktop.org
ReportedBy: jb.faq at gmx.de


With xf86-video-ati git and Dave Airlieds drm-radeon-testing branch I get a
black or no image with some videos using mplayer (using xv and not gl). The cs
checker breaks it.

I can reproduce this problem with 1080p (not 720p) HD videos. This problem does
not appear with the 2.6.37 kernel.

This bug was introduced with 7ac3a2e0bcdadff7c7172a9f833f526b526da16b
(I bisected this)

I did the following:



$mplayer -vo xv 1080pvideo.mp4 
MPlayer SVN-r32624-4.4.4 (C) 2000-2010 MPlayer Team

Spiele 1080pvideo.mp4.
libavformat-Dateiformat erkannt!
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  25.000 fps  3710.3 kbps (452.9 kbyte/s)
Clip-Info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
==
?ffne Videodecoder: [ffmpeg] FFmpeg's libavcodec codec family
Ausgew?hlter Videocodec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==
==
?ffne Audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 15999->176400)
Ausgew?hlter Audiocodec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starte Wiedergabe...
Film-Aspekt ist 1.78:1 - Vorskalierung zur Korrektur der Seitenverh?ltnisse.
VO: [xv] 1920x1080 => 1920x1080 Planar YV12 
A:   1.9 V:   1.9 A-V: -0.000 ct:  0.000   0/  0 73%  6%  1.9% 23 0 

Beenden... (Ende)



$tail /var/log/kernel/current 
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Feb 22 12:48:02 [kernel] radeon :01:00.0: texture bo too small (960 540 1
2764800 -> 557056 have 3317760)
Feb 22 12:48:02 [kernel] radeon :01:00.0: alignments 1024 256 8 256
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Feb 22 12:48:02 [kernel] radeon :01:00.0: texture bo too small (960 540 1
2764800 -> 557056 have 3317760)
Feb 22 12:48:02 [kernel] radeon :01:00.0: alignments 1024 256 8 256
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Feb 22 12:48:02 [kernel] radeon :01:00.0: texture bo too small (960 540 1
2764800 -> 557056 have 3317760)
Feb 22 12:48:02 [kernel] radeon :01:00.0: alignments 1024 256 8 256
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !



7ac3a2e0bcdadff7c7172a9f833f526b526da16b is the first bad commit
commit 7ac3a2e0bcdadff7c7172a9f833f526b526da16b
Author: Alex Deucher 
Date:   Thu Feb 10 14:24:50 2011 -0500

6xx+: switch to linear aligned rather than linear general

linear aligned is supposedly more performant, but more
importantly, linear general only works on the CB without
slices.  The texture blocks technically don't support
linear general although, I think linear general gets
upgraded to linear aligned in the hw which is why it
currently works.

Signed-off-by: Alex Deucher 

:04 04 8f830d90157a00f05dc79cd48b4daded8831119a
9fb173e14af75e2a88b2982d0925ab1da2d56671 M  src



$git bisect log

git bisect start
# good: [0a1a0513a61f392580bde39cca4880f2c19abc8d] bump version for release
git bisect good 0a1a0513a61f392580bde39cca4880f2c19abc8d
# bad: [3d10278ce511f5dabb68ed86ee43eaaf43585983] Xv: fix textured video
alignment harder
git bisect bad 3d10278ce511f5dabb68ed86ee43eaaf43585983
# good: [be67ded05621aff9c85525372fd119071d3278ec] 6xx/7xx: consolidate spi
setup
git bisect good be67ded05621aff9c85525372fd119071d3278ec
# bad: [39104c6e8461cf49c1bb03a18858ad75a9d98b46] remove
EVERGREENSetAccelState()
git bisect bad 39104c6e8461cf49c1bb03a18858ad75a9d98b46
# bad: [7ac3a2e0bcdadff7c7172a9f833f526b526da16b] 6xx+: switch to linear
aligned rather than linear general
git bisect bad 7ac3a2e0bcdadff7c7172a9f833f526b526da16b
# good: [e3145801b80fd4be4cf770128876e86e89bda66f] evergreen/NI: consolidate
spi setup
git bisect good e3145801b80fd4be4cf770128876e86e89bda66f

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the 

[Bug 34567] New: xf86-video-ati git and drm-radeon-testing git: CS checker leads mplayer / vlc to fail with xv

2011-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=34567

   Summary: xf86-video-ati git and drm-radeon-testing git: CS
checker leads mplayer / vlc to fail with xv
   Product: Mesa
   Version: git
  Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r600
AssignedTo: dri-devel@lists.freedesktop.org
ReportedBy: jb@gmx.de


With xf86-video-ati git and Dave Airlieds drm-radeon-testing branch I get a
black or no image with some videos using mplayer (using xv and not gl). The cs
checker breaks it.

I can reproduce this problem with 1080p (not 720p) HD videos. This problem does
not appear with the 2.6.37 kernel.

This bug was introduced with 7ac3a2e0bcdadff7c7172a9f833f526b526da16b
(I bisected this)

I did the following:



$mplayer -vo xv 1080pvideo.mp4 
MPlayer SVN-r32624-4.4.4 (C) 2000-2010 MPlayer Team

Spiele 1080pvideo.mp4.
libavformat-Dateiformat erkannt!
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  25.000 fps  3710.3 kbps (452.9 kbyte/s)
Clip-Info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
==
Öffne Videodecoder: [ffmpeg] FFmpeg's libavcodec codec family
Ausgewählter Videocodec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==
==
Öffne Audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 15999-176400)
Ausgewählter Audiocodec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starte Wiedergabe...
Film-Aspekt ist 1.78:1 - Vorskalierung zur Korrektur der Seitenverhältnisse.
VO: [xv] 1920x1080 = 1920x1080 Planar YV12 
A:   1.9 V:   1.9 A-V: -0.000 ct:  0.000   0/  0 73%  6%  1.9% 23 0 

Beenden... (Ende)



$tail /var/log/kernel/current 
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Feb 22 12:48:02 [kernel] radeon :01:00.0: texture bo too small (960 540 1
2764800 - 557056 have 3317760)
Feb 22 12:48:02 [kernel] radeon :01:00.0: alignments 1024 256 8 256
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Feb 22 12:48:02 [kernel] radeon :01:00.0: texture bo too small (960 540 1
2764800 - 557056 have 3317760)
Feb 22 12:48:02 [kernel] radeon :01:00.0: alignments 1024 256 8 256
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Feb 22 12:48:02 [kernel] radeon :01:00.0: texture bo too small (960 540 1
2764800 - 557056 have 3317760)
Feb 22 12:48:02 [kernel] radeon :01:00.0: alignments 1024 256 8 256
Feb 22 12:48:02 [kernel] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !



7ac3a2e0bcdadff7c7172a9f833f526b526da16b is the first bad commit
commit 7ac3a2e0bcdadff7c7172a9f833f526b526da16b
Author: Alex Deucher alexdeuc...@gmail.com
Date:   Thu Feb 10 14:24:50 2011 -0500

6xx+: switch to linear aligned rather than linear general

linear aligned is supposedly more performant, but more
importantly, linear general only works on the CB without
slices.  The texture blocks technically don't support
linear general although, I think linear general gets
upgraded to linear aligned in the hw which is why it
currently works.

Signed-off-by: Alex Deucher alexdeuc...@gmail.com

:04 04 8f830d90157a00f05dc79cd48b4daded8831119a
9fb173e14af75e2a88b2982d0925ab1da2d56671 M  src



$git bisect log

git bisect start
# good: [0a1a0513a61f392580bde39cca4880f2c19abc8d] bump version for release
git bisect good 0a1a0513a61f392580bde39cca4880f2c19abc8d
# bad: [3d10278ce511f5dabb68ed86ee43eaaf43585983] Xv: fix textured video
alignment harder
git bisect bad 3d10278ce511f5dabb68ed86ee43eaaf43585983
# good: [be67ded05621aff9c85525372fd119071d3278ec] 6xx/7xx: consolidate spi
setup
git bisect good be67ded05621aff9c85525372fd119071d3278ec
# bad: [39104c6e8461cf49c1bb03a18858ad75a9d98b46] remove
EVERGREENSetAccelState()
git bisect bad 39104c6e8461cf49c1bb03a18858ad75a9d98b46
# bad: [7ac3a2e0bcdadff7c7172a9f833f526b526da16b] 6xx+: switch to linear
aligned rather than linear general
git bisect bad 7ac3a2e0bcdadff7c7172a9f833f526b526da16b
# good: [e3145801b80fd4be4cf770128876e86e89bda66f] evergreen/NI: consolidate
spi setup
git bisect good e3145801b80fd4be4cf770128876e86e89bda66f

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: