Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3.2k
    • Issues 3.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1k
    • Merge requests 1k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Merge requests
  • !2075

intel: Implement gl_VertexID directly on Gen11+

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Kenneth Graunke requested to merge kwg/mesa:icl-vertexid into main Sep 21, 2019
  • Overview 4
  • Commits 1
  • Pipelines 1
  • Changes 7

A new 3DSTATE_VF::VertexID Offset Enable field allows us to ask the hardware to implicitly add Base Vertex Location for indexed draws or Start Vertex Location for sequential draws to the vertex ID value.

This matches OpenGL semantics, allowing us to implement gl_VertexID with the hardware SGV directly, without having to lower it to a shader addition of a zero-based vertex ID and a FirstVertex system value.

This also removes the need to upload FirstVertex into a buffer and an extra VERTEX_BUFFER_STATE to push it into the shader (unless the shader uses gl_BaseVertex).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: icl-vertexid