From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 82585] New: geometry shader with optional out variable segfaults Date: Wed, 13 Aug 2014 21:49:02 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1697456539==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id E667B6E2A1 for ; Wed, 13 Aug 2014 14:49:02 -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 --===============1697456539== Content-Type: multipart/alternative; boundary="1407966542.f1f00.32553"; charset="us-ascii" --1407966542.f1f00.32553 Date: Wed, 13 Aug 2014 21:49:02 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=82585 Priority: medium Bug ID: 82585 Assignee: dri-devel@lists.freedesktop.org Summary: geometry shader with optional out variable segfaults Severity: normal Classification: Unclassified OS: All Reporter: pavol@klacansky.com Hardware: Other Status: NEW Version: git Component: Drivers/Gallium/r600 Product: Mesa Running this shader in geometry stage, it segfaults: #version 330 layout(points) in; layout(points, max_vertices = 1) out; in gl_PerVertex { vec4 gl_Position; float gl_PointSize; float gl_ClipDistance[]; } gl_in[]; in vec4 v_colour[]; out vec4 g_colour; void main() { for(int i = 0; i < 1; i++) { gl_Position = gl_in[i].gl_Position; gl_PrimitiveID = gl_PrimitiveIDIn; /* TODO report bug */ g_colour = v_colour[i]; EmitVertex(); } EndPrimitive(); } Following message is from Valgrind: EE ../../../../../../src/gallium/drivers/r600/r600_shader.c:353 tgsi_is_supported - unsupported src 0 (dimension 1) EE ../../../../../../src/gallium/drivers/r600/r600_shader.c:157 r600_pipe_shader_create - translation from TGSI failed ! EE ../../../../../../src/gallium/drivers/r600/r600_state_common.c:750 r600_shader_select - Failed to build shader variant (type=2) -22 -- You are receiving this mail because: You are the assignee for the bug. --1407966542.f1f00.32553 Date: Wed, 13 Aug 2014 21:49:02 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Priority medium
Bug ID 82585
Assignee dri-devel@lists.freedesktop.org
Summary geometry shader with optional out variable segfaults
Severity normal
Classification Unclassified
OS All
Reporter pavol@klacansky.com
Hardware Other
Status NEW
Version git
Component Drivers/Gallium/r600
Product Mesa

Running this shader in geometry stage, it segfaults:

#version 330

layout(points) in;
layout(points, max_vertices = 1) out;

in gl_PerVertex {
    vec4 gl_Position;
    float gl_PointSize;
    float gl_ClipDistance[];
} gl_in[];

in vec4 v_colour[];
out vec4 g_colour;

void main() {
  for(int i = 0; i < 1; i++) {
    gl_Position = gl_in[i].gl_Position;
    gl_PrimitiveID = gl_PrimitiveIDIn;
    /* TODO report bug */
    g_colour = v_colour[i];
    EmitVertex();
  }
  EndPrimitive();
}


Following message is from Valgrind:
EE ../../../../../../src/gallium/drivers/r600/r600_shader.c:353
tgsi_is_supported - unsupported src 0 (dimension 1)
EE ../../../../../../src/gallium/drivers/r600/r600_shader.c:157
r600_pipe_shader_create - translation from TGSI failed !
EE ../../../../../../src/gallium/drivers/r600/r600_state_common.c:750
r600_shader_select - Failed to build shader variant (type=2) -22


You are receiving this mail because:
  • You are the assignee for the bug.
--1407966542.f1f00.32553-- --===============1697456539== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1697456539==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 82585] geometry shader with optional out variable segfaults Date: Sat, 16 Aug 2014 08:26:16 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1313040881==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 218E3892F6 for ; Sat, 16 Aug 2014 01:26:16 -0700 (PDT) In-Reply-To: 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 --===============1313040881== Content-Type: multipart/alternative; boundary="1408177575.368CE6a0.29069"; charset="us-ascii" --1408177575.368CE6a0.29069 Date: Sat, 16 Aug 2014 08:26:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=82585 pavol@klacansky.com changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86-64 (AMD64) OS|All |Linux (All) -- You are receiving this mail because: You are the assignee for the bug. --1408177575.368CE6a0.29069 Date: Sat, 16 Aug 2014 08:26:15 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 82585
What Removed Added
Hardware Other x86-64 (AMD64)
OS All Linux (All)


You are receiving this mail because:
  • You are the assignee for the bug.
--1408177575.368CE6a0.29069-- --===============1313040881== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1313040881==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 82585] geometry shader with optional out variable segfaults Date: Tue, 26 Aug 2014 03:32:59 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1045901711==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A45F56E44F for ; Mon, 25 Aug 2014 20:32:59 -0700 (PDT) In-Reply-To: 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 --===============1045901711== Content-Type: multipart/alternative; boundary="1409023979.D0a022a1.9726"; charset="us-ascii" --1409023979.D0a022a1.9726 Date: Tue, 26 Aug 2014 03:32:59 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D82585 --- Comment #1 from Michel D=C3=A4nzer --- Please provide more details about how to reproduce the problem. Ideal would= be if you could attach a simple test program which we can compile and run, or = at least a command line to reproduce the problem with a standard tool and the geometry shader source code you provided. --=20 You are receiving this mail because: You are the assignee for the bug. --1409023979.D0a022a1.9726 Date: Tue, 26 Aug 2014 03:32:59 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 1 on bug 82585<= /a> from Michel D=C3=A4nzer
Please provide more details about how to reproduce the problem=
. Ideal would be
if you could attach a simple test program which we can compile and run, or =
at
least a command line to reproduce the problem with a standard tool and the
geometry shader source code you provided.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1409023979.D0a022a1.9726-- --===============1045901711== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1045901711==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 82585] geometry shader with optional out variable segfaults Date: Tue, 26 Aug 2014 08:25:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2126686125==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 2638A6E487 for ; Tue, 26 Aug 2014 01:25:54 -0700 (PDT) In-Reply-To: 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 --===============2126686125== Content-Type: multipart/alternative; boundary="1409041554.2cF10.9999"; charset="us-ascii" --1409041554.2cF10.9999 Date: Tue, 26 Aug 2014 08:25:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=82585 --- Comment #2 from pavol@klacansky.com --- Created attachment 105265 --> https://bugs.freedesktop.org/attachment.cgi?id=105265&action=edit Demo of bug -- You are receiving this mail because: You are the assignee for the bug. --1409041554.2cF10.9999 Date: Tue, 26 Aug 2014 08:25:54 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"


You are receiving this mail because:
  • You are the assignee for the bug.
--1409041554.2cF10.9999-- --===============2126686125== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============2126686125==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 82585] geometry shader with optional out variable segfaults Date: Tue, 26 Aug 2014 08:28:23 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1777894829==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F5426E21A for ; Tue, 26 Aug 2014 01:28:23 -0700 (PDT) In-Reply-To: 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 --===============1777894829== Content-Type: multipart/alternative; boundary="1409041703.8aa1Bf0.10997"; charset="us-ascii" --1409041703.8aa1Bf0.10997 Date: Tue, 26 Aug 2014 08:28:22 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=82585 --- Comment #3 from pavol@klacansky.com --- Program should be valid according GL spec. -- You are receiving this mail because: You are the assignee for the bug. --1409041703.8aa1Bf0.10997 Date: Tue, 26 Aug 2014 08:28:23 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 3 on bug 82585 from
Program should be valid according GL spec.


You are receiving this mail because:
  • You are the assignee for the bug.
--1409041703.8aa1Bf0.10997-- --===============1777894829== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1777894829==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 82585] geometry shader with optional out variable segfaults Date: Tue, 26 Aug 2014 08:58:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1880978580==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 8372F6E37B for ; Tue, 26 Aug 2014 01:58:01 -0700 (PDT) In-Reply-To: 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 --===============1880978580== Content-Type: multipart/alternative; boundary="1409043481.35F62bef2.23241"; charset="us-ascii" --1409043481.35F62bef2.23241 Date: Tue, 26 Aug 2014 08:58:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D82585 Michel D=C3=A4nzer changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop. |.org |org Component|Drivers/Gallium/r600 |Mesa core --- Comment #4 from Michel D=C3=A4nzer --- I'm hitting this assertion failure in the GLSL IR to TGSI translation code first: ../../../src/mesa/state_tracker/st_glsl_to_tgsi.cpp:2157:visit: Assertion `var->data.location !=3D -1' failed. --=20 You are receiving this mail because: You are the assignee for the bug. --1409043481.35F62bef2.23241 Date: Tue, 26 Aug 2014 08:58:01 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable = Michel D=C3=A4nzer changed bug 82585<= /a>
What Removed Added
Assignee dri-devel@lists.freedesktop.org mesa-dev@lists.freedesktop.org
Component Drivers/Gallium/r600 Mesa core

Comment= # 4 on bug 82585<= /a> from Michel D=C3=A4nzer
I'm hitting this assertion failure in the GLSL IR to TGSI tran=
slation code
first:

../../../src/mesa/state_tracker/st_glsl_to_tgsi.cpp:2157:visit: Assertion
`var->data.location !=3D -1' failed.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1409043481.35F62bef2.23241-- --===============1880978580== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1880978580==--