From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 98931] radeonsi: Very low shader performance Date: Fri, 02 Dec 2016 04:17:51 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0315770232==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id D8D3D6E1AA for ; Fri, 2 Dec 2016 04:17:51 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0315770232== Content-Type: multipart/alternative; boundary="14806522710.5Bed6.15220"; charset="UTF-8" --14806522710.5Bed6.15220 Date: Fri, 2 Dec 2016 04:17:51 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D98931 Bug ID: 98931 Summary: radeonsi: Very low shader performance Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: cristiano04@gmail.com QA Contact: dri-devel@lists.freedesktop.org This shader https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637 (5= th of September revision, crossbilateral only) used to crash the radeon driver= and bring the whole system down, whilst the previous version did not.=20 After this was magically fixed, the only issue has been extremely low performance, visible through low render times and a few dropped frames. Test case: https://www.youtube.com/watch?v=3D6v2L2UGZJAM (it is important t= hat you use my settings for the 1080p version to be selected) Using any revision of this shader after the introduction of the 5th of September commit, on mpv, I get render times in the order of 31000 and lots= of dropped, mistimed frames (as per lua-stats). Using the version immediately before this one ( https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637/15a6623d61b403= 0ed4d8dce637e509b7433f39c2 ) I get 6700 on the same video. CPU+GPU: i5-4690, R9-280x mpv, ffmpeg, mesa, llvm and xf86-video-ati are all git. SSIMsuperres can be found here https://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b Relevant bits of mpv.conf for reproduction purposes: profile=3Dopengl-hq opengl-pbo=3Dyes # Scaling scale=3Dewa_lanczossharp opengl-shaders=3D"~~/shaders/ssimsuperres.glsl,~~/shaders/crossbilateral.gl= sl" #cscale # Interpolation tscale=3Dsinc interpolation=3Dyes video-sync=3Ddisplay-resample tscale-clamp=3Dyes # Misc temporal-dither=3Dyes dither-depth=3D8 deband-iterations=3D2 deband-range=3D12 blend-subtitles=3Dno hwdec=3Dno framedrop=3Dvo # Web media ytdl=3Dyes ytdl-format=3D0/(bestvideo[vcodec=3Dvp9]/bestvideo[height>720]/bestvideo[fp= s>30])[tbr<13000]+(bestaudio[acodec=3Dopus]/bestaudio)/best --=20 You are receiving this mail because: You are the assignee for the bug.= --14806522710.5Bed6.15220 Date: Fri, 2 Dec 2016 04:17:51 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 98931
Summary radeonsi: Very low shader performance
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter cristiano04@gmail.com
QA Contact dri-devel@lists.freedesktop.org

This shader https://gist.github.com/igv/a015fc885d5c22e6891820ad=
89555637 (5th
of September revision, crossbilateral only) used to crash the radeon driver=
 and
bring the whole system down, whilst the previous version did not.=20
After this was magically fixed, the only issue has been extremely low
performance, visible through low render times and a few dropped frames.

Test case: https:=
//www.youtube.com/watch?v=3D6v2L2UGZJAM (it is important that
you use my settings for the 1080p version to be selected)

Using any revision of this shader after the introduction of the 5th of
September commit, on mpv, I get render times in the order of 31000 and lots=
 of
dropped, mistimed frames (as per lua-stats). Using the version immediately
before this one (
https://gist.github.com/igv/a015fc88=
5d5c22e6891820ad89555637/15a6623d61b4030ed4d8dce637e509b7433f39c2
) I get 6700 on the same video.

CPU+GPU: i5-4690, R9-280x
mpv, ffmpeg, mesa, llvm and xf86-video-ati are all git.

SSIMsuperres can be found here
ht=
tps://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b
Relevant bits of mpv.conf for reproduction purposes:


profile=3Dopengl-hq
opengl-pbo=3Dyes

# Scaling
scale=3Dewa_lanczossharp
opengl-shaders=3D"~~/shaders/ssimsuperres.glsl,~~/shaders/crossbilater=
al.glsl"
#cscale

# Interpolation
tscale=3Dsinc
interpolation=3Dyes
video-sync=3Ddisplay-resample
tscale-clamp=3Dyes

# Misc
temporal-dither=3Dyes
dither-depth=3D8
deband-iterations=3D2
deband-range=3D12
blend-subtitles=3Dno
hwdec=3Dno
framedrop=3Dvo

# Web media
ytdl=3Dyes
ytdl-format=3D0/(bestvideo[vcodec=3Dvp9]/bestvideo[height>720]/bestvideo=
[fps>30])[tbr<13000]+(bestaudio[acodec=3Dopus]/bestaudio)/best


You are receiving this mail because:
  • You are the assignee for the bug.
= --14806522710.5Bed6.15220-- --===============0315770232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0315770232==--