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.
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel