<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - gl_BaseVertex should always be zero when the draw command has no <basevertex> parameter"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102678">102678</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>gl_BaseVertex should always be zero when the draw command has no <basevertex> parameter
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/i965
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>apuentes@igalia.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Hardware: Broadwell or Skylake
Mesa commit: f940b1665a7f17ad2ae7ae2e951d90d151482875
vk-gl-cts commit: dfcb8e870438f6f2bfe71d4bb63d43120debb3a3
The following ARB_shader_draw_parameters tests fail:
* KHR-GL45.shader_draw_parameters_tests.ShaderDrawArraysParameters
* KHR-GL45.shader_draw_parameters_tests.ShaderDrawArraysInstancedParameters
* KHR-GL45.shader_draw_parameters_tests.ShaderMultiDrawArraysParameters
* KHR-GL45.shader_draw_parameters_tests.ShaderMultiDrawArraysIndirectParameters
- Expected outcome:
The tests expect gl_BaseVertex to be zero when the draw command does not accept
a <basevertex> parameter.
>From the ARB_shader_draw_parameters specification:
"<gl_BaseVertexARB> holds the integer value passed to the <baseVertex>
parameter to the command that resulted in the current shader invocation.
In the case where the command has no <baseVertex> parameter, the value
of <gl_BaseVertexARB> is zero."
- Actual outcome:
Although non-indexed draw commands like gl*DrawArrays* do not accept
<basevertex> parameters, Mesa sets the value of gl_BaseVertex to the value
passed to the <first> parameter of the gl*DrawArrays* command instead of
setting it to zero.
Indexed draw calls like glDrawElements which do not accept a <basevertex>
parameter work as expected, gl_BaseVertex is zero in that case.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>