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
  • !1059

iris, i965: Fix INTEL_DEBUG=bat to not insert a key of 0.

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Kenneth Graunke requested to merge kwg/mesa:intel-debug-bat into master Jun 09, 2019
  • Overview 10
  • Commits 1
  • Pipelines 1
  • Changes 3

We can have state at offset 0 that needs a recorded size. But, we can't use 0 as a key in the hash table. Since our state offsets are always at least DWord aligned, we can just use (x | 1) as the hash key, trivially sidestepping the problem.

Fixes: b38dab10 util/hash_table: Assert that keys are not reserved pointers

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: intel-debug-bat