Bug 98106

Summary: Primitive restart should be disabled for Draw commands when GL >= 4.5
Product: Mesa Reporter: Martina Kollarova <martina.kollarova>
Component: Mesa coreAssignee: Martina Kollarova <martina.kollarova>
Status: RESOLVED WONTFIX QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: wickmarkus
Version: 11.2   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Martina Kollarova 2016-10-06 08:52:31 UTC
Originally reported on #dri-devel by user degasus.

OpenGL spec < 4.5 has a line in the "Primitive Restart" section:

  If PRIMITIVE_RESTART_FIXED_INDEX is enabled, primitive restart is not
  performed for array elements transferred by any drawing command not taking a
  type parameter, including all of the *Draw* commands other than *DrawElements*.

OpenGL spec 4.5 has a modification:

  Note that primitive restart is not performed for array elements transferred by
  any drawing command not taking a type parameter, including all of the *Draw*
  commands other than *DrawElements*.

The current implementation doesn't take the new version into consideration, and an additional condition for GL > 4.5 should be created.
Comment 1 Martina Kollarova 2016-10-10 12:21:29 UTC
Closing as WONTFIX, see discussion in https://lists.freedesktop.org/archives/mesa-dev/2016-October/130834.html. In short, the ctx->Version field shows the highest supported context, not the version of the current one. The meaning of the spec change is apparently also not clear...

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.