Skip to content

Make hash computation stable in x86 and x86_64 build #688

Open
@WangHoi

Description

@WangHoi

I found that hash value is different for 32bit and 64 bit build.
In particular:

  • RenderStateCacheImpl.cpp: ComputeDeviceAttribsHash()
  • XXH128Hasher::Update(const ShaderCreateInfo& ShaderCI)

It brings lots of pain to reuse render state cache in desktop and wasm webgpu.
I patched the hash value computation in my own build, webgpu render state cache finally works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions