Gfx GX Fn GXInvalidateVtxCache - wowjinxy/libPorpoise GitHub Wiki

GXInvalidateVtxCache

  • Category: Geometry and Vertex
  • Matrix Status: Implemented
  • Matrix Notes: Implemented as backend no-op (expected on modern GL path).
  • Matrix Link: Gfx-GX-API-Matrix

Official SDK (Reference)

  • Manual root: reference/rvlsdk/man/en_US/gx
  • Primary SDK source area: demos/PikminDemo/src/gx (GC-style Dolphin GX source)
  • Notes:
    • Confirm official signature/prototype
    • Confirm documented side effects (register/state updates)
    • Confirm special behavior and edge cases from manual

libPorpoise Implementation

  • Runtime implementation area: src/gx
  • Public API surface: include/dolphin/gx
  • Notes:
    • Confirm API signature matches SDK
    • Confirm state writes match SDK semantics
    • Confirm backend behavior in PC renderer path

SDK vs Porpoise Diff

  • Signature parity:
    • SDK:
    • Porpoise:
  • Behavioral parity:
    • SDK:
    • Porpoise:
  • Known divergence:

Validation Checklist

  • GX demo coverage checked
  • Pikmin usage path checked
  • Matrix status updated if needed
  • Notes updated with concrete file/function references

Working Notes

  • Docs checked against reference/man/gfx/gx/Geometry/GXInvalidateVtxCache.html:
    • Signature matches: void GXInvalidateVtxCache(void).
    • Intended HW behavior: invalidate GP vertex-cache tags for indexed attributes after array relocation/modification.
    • Manual emulator note says not implemented.
  • Runtime checked in src/gx/pc_gx.c:
    • Function exists as explicit no-op (void GXInvalidateVtxCache(void) { }).
    • This is acceptable on the GL backend path because there is no emulated fixed-function GX vertex cache to invalidate.