Bug 98106 - Primitive restart should be disabled for Draw commands when GL >= 4.5
Summary: Primitive restart should be disabled for Draw commands when GL >= 4.5
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 11.2
Hardware: Other All
: medium normal
Assignee: Martina Kollarova
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 08:52 UTC by Martina Kollarova
Modified: 2016-10-10 12:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.