Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Vulkan
  • VkDevice.cpp
Find file
BlameHistoryPermalink
  • Ben Clayton's avatar
    VkDevice: Fix sample cache hash collisions that caused spurious test failures. · ed417b36
    Ben Clayton authored Aug 08, 2019
    Keying off a single size_t is likely to cause collisions, more so when the hash function is simple shift-xors of 3 32-bit integers.
    
    Use a proper cache key comparision and a better hash function while we're at it.
    
    Bug: b/137649247
    Change-Id: I1e0deefb0976102714d43dcb9dcedf6aa809bf7f
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34909Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
    Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
    (cherry picked from commit f046402b)
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34928
    ed417b36
VkDevice.cpp 7.46 KB
EditWeb IDE
×

Replace VkDevice.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.