<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [SNB+]Piglit spec_ARB_explicit_attrib_location_1.10_compiler_layout-12.frag fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81076">81076</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>idr@freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>[SNB+]Piglit spec_ARB_explicit_attrib_location_1.10_compiler_layout-12.frag fails
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>huax.lu@intel.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/i965
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>System Environment:
--------------------------
Platform: Ivybridge
Libdrm: (master)libdrm-2.4.54-17-ge8c3c1358ecaf4e90f7d43762357ae6f8e2022b6
Mesa: (master)8aa34dc9cb1f4b1b17e49da98e54066832afc98e
Xserver:(master)xorg-server-1.15.99.902-121-g2f5cf9ff9a0f713b7e038636484c77f113a5f10a
Xf86_video_intel:(master)2.99.912-224-g8fa22964f69d3ec8700f177dd7cb3cbc396a9f35
Libva: (master)c61d8c6ce9ffc27320e9e177c1e1123d5f1b5014
Libva_intel_driver:(master)c5cb17ea86f0065a939d3636dd26651c93d497c8
Bug detailed description:
---------------------------
It fails on SNB+ platforms with mesa master and 10.2 branch from
GL_ARB_explicit_attrib_location enable.
spec_ARB_explicit_attrib_location_1.10_compiler_layout-13.frag also fails.
output:
Failed to compile fragment shader
/GFX/Test/Piglit/piglit/tests/spec/arb_explicit_attrib_location/1.10/compiler/layout-12.frag:
0:29(1): error: explicit index may only be 0 or 1
Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.10
// require_extensions: GL_ARB_explicit_attrib_location
GL_ARB_blend_func_extended
// [end config]
//
// Even though the specified locations overlap, the spec says that a *link*
// error is generated. The changes to section 3.9.2 say:
//
// "Output binding assignments will cause LinkProgram to fail:
//
// * if the number of active outputs is greater than the value of
// MAX_DRAW_BUFFERS;
//
// * if the program has an active output assigned to a location
// greater than or equal to the value of
// MAX_DUAL_SOURCE_DRAW_BUFFERS and has an active output assigned
// an index greater than or equal to one;
//
// * if more than one varying out variable is bound to the same
// number and index; or
//
// * if the explicit binding assigments do not leave enough space
// for the linker to automatically assign a location for a varying
// out array, which requires multiple contiguous locations."
#version 110
#extension GL_ARB_explicit_attrib_location: require
layout(location = 0, index = 2) out vec4 color;
void main()
{
color = vec4(1.0);
}
PIGLIT: {"result": "fail" }
Reproduce steps:
----------------------------
1. xinit
2. bin/glslparsertest
tests/spec/arb_explicit_attrib_location/1.10/compiler/layout-12.frag pass 1.10
GL_ARB_explicit_attrib_location</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>