From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91780] Rendering issues with geometry shader Date: Thu, 27 Aug 2015 21:04:49 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0254772526==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 151C96EE3A for ; Thu, 27 Aug 2015 14:04:50 -0700 (PDT) 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 --===============0254772526== Content-Type: multipart/alternative; boundary="1440709489.eE73A0.29592"; charset="UTF-8" --1440709489.eE73A0.29592 Date: Thu, 27 Aug 2015 21:04:49 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91780 Bug ID: 91780 Summary: Rendering issues with geometry shader Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: jonas@wielicki.name QA Contact: dri-devel@lists.freedesktop.org Created attachment 117951 --> https://bugs.freedesktop.org/attachment.cgi?id=117951&action=edit apitrace which shows the problem In the attached apitrace, *sometimes* (about 50% of the runs) rendering issues can be observed. They manifest in appearantly missing geometry (compare attached screenshot; the UI has been disabled for taking the apitrace). Steps to reproduce: 1. DRI_PRIME=1 apitrace replay r600-renderbug-noui.trace 2. If step 1 did not show the behaviour, retry a few times. Expected results: Rendering should work and show a terrain without holes Actual results: Holes in the terrain The results have been observed on mesa-11.0.0-rc1 with and without http://lists.freedesktop.org/archives/mesa-dev/2015-August/092766.html applied. The same code has never (in 50+ tests) shown the issue on the Intel integrated GPU. The application which produces the given behaviour can be found at https://github.com/horazont/scc/tree/f31d90e1579ebda14ce7a0417339b2cd448efde8 The geometry shader is in: https://github.com/horazont/scc/blob/f31d90e1579ebda14ce7a0417339b2cd448efde8/game/resources/shaders/terrain/main.geom The usage is in: https://github.com/horazont/scc/blob/f31d90e1579ebda14ce7a0417339b2cd448efde8/libffengine-render/src/render/fancyterrain.cpp (search for draw_elements, GL_GEOMETRY_SHADER, GL_LINES_ADJACENCY) In another commit, the geometry shader has been disabled (), which appears to fix the problem or make it very hard to reproduce. radeon GPU: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff) {6630M according to notebook specs} intel GPU: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) -- You are receiving this mail because: You are the assignee for the bug. --1440709489.eE73A0.29592 Date: Thu, 27 Aug 2015 21:04:49 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 91780
Summary Rendering issues with geometry shader
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter jonas@wielicki.name
QA Contact dri-devel@lists.freedesktop.org

Created attachment 117951 [details]
apitrace which shows the problem

In the attached apitrace, *sometimes* (about 50% of the runs) rendering issues
can be observed. They manifest in appearantly missing geometry (compare
attached screenshot; the UI has been disabled for taking the apitrace).

Steps to reproduce:
1. DRI_PRIME=1 apitrace replay r600-renderbug-noui.trace
2. If step 1 did not show the behaviour, retry a few times.

Expected results:
Rendering should work and show a terrain without holes

Actual results:
Holes in the terrain

The results have been observed on mesa-11.0.0-rc1 with and without
http://lists.freedesktop.org/archives/mesa-dev/2015-August/092766.html applied.

The same code has never (in 50+ tests) shown the issue on the Intel integrated
GPU.

The application which produces the given behaviour can be found at 
https://github.com/horazont/scc/tree/f31d90e1579ebda14ce7a0417339b2cd448efde8

The geometry shader is in:
https://github.com/horazont/scc/blob/f31d90e1579ebda14ce7a0417339b2cd448efde8/game/resources/shaders/terrain/main.geom

The usage is in:
https://github.com/horazont/scc/blob/f31d90e1579ebda14ce7a0417339b2cd448efde8/libffengine-render/src/render/fancyterrain.cpp
(search for draw_elements, GL_GEOMETRY_SHADER, GL_LINES_ADJACENCY)


In another commit, the geometry shader has been disabled
(<https://github.com/horazont/scc/commit/4e1e298b02723efcf6555c1c4a7efa31682cf79b>),
which appears to fix the problem or make it very hard to reproduce.


radeon GPU:
Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD
6630M/6650M/6750M/7670M/7690M] (rev ff)  {6630M according to notebook specs}
intel GPU:
Intel Corporation 2nd Generation Core Processor Family Integrated Graphics
Controller (rev 09)


You are receiving this mail because:
  • You are the assignee for the bug.
--1440709489.eE73A0.29592-- --===============0254772526== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0254772526==--