Localize SPIR-V ID in generated SPIR-V wrapper functions

The RS kernel wrapper generated in RSoV ReflectionPass was using the same
set of SPIR-V IDs in the boilerplate code. So, if there were more than one
kernel in the same module, their boilerplate codes would conflict. This
change fixes that problem by prepending kernel names in the generated
wrapper code in each SPIR-V ID introduced.

Wrapper-function-internal names are localized, whereas types related to
kernel signature and arguments are not localized in this CL.

This is a prerequisite of multi-kernel support.

A testcase that has hardcoded expectation of boilerplate code ID string
has been updated as well.

Test: RSoV LIT Tests, RSoVTest on angler
Change-Id: Ia51b852c511adab444ec100f88d8818e0764b45f
3 files changed
tree: 2416ff9225319b5fb07be482849bc79291424db8
  1. api/
  2. cpp/
  3. cpu_ref/
  4. driver/
  5. java/
  6. rsov/
  7. scriptc/
  8. server/
  9. tests/
  10. Android.bp
  11. Android.mk
  12. build_rs.py
  13. CleanSpec.mk
  14. libRS.map
  15. rs.h
  16. rs.spec
  17. rs_compat.spec
  18. rs_hal.h
  19. rsAllocation.cpp
  20. rsAllocation.h
  21. rsAnimation.cpp
  22. rsAnimation.h
  23. rsApiAllocation.cpp
  24. rsApiContext.cpp
  25. rsApiDevice.cpp
  26. rsApiElement.cpp
  27. rsApiFileA3D.cpp
  28. rsApiMesh.cpp
  29. rsApiType.cpp
  30. rsClosure.cpp
  31. rsClosure.h
  32. rsCompatibilityLib.cpp
  33. rsCompatibilityLib.h
  34. rsComponent.cpp
  35. rsComponent.h
  36. rsContext.cpp
  37. rsContext.h
  38. rsCppUtils.cpp
  39. rsCppUtils.h
  40. rsDebugHelper.h
  41. rsDefines.h
  42. rsDevice.cpp
  43. rsDevice.h
  44. rsDriverLoader.cpp
  45. rsElement.cpp
  46. rsElement.h
  47. rsEnv.h
  48. rsFBOCache.cpp
  49. rsFBOCache.h
  50. rsFifo.h
  51. rsFifoSocket.cpp
  52. rsFifoSocket.h
  53. rsFileA3D.cpp
  54. rsFileA3D.h
  55. rsFont.cpp
  56. rsFont.h
  57. rsg.spec
  58. rsg_generator.c
  59. rsgApi.cpp.rsg
  60. rsgApiFuncDecl.h.rsg
  61. rsgApiReplay.cpp.rsg
  62. rsgApiStructs.h.rsg
  63. rsGrallocConsumer.cpp
  64. rsGrallocConsumer.h
  65. rsInternalDefines.h
  66. rsList.h
  67. rsMap.h
  68. rsMatrix2x2.cpp
  69. rsMatrix2x2.h
  70. rsMatrix3x3.cpp
  71. rsMatrix3x3.h
  72. rsMatrix4x4.cpp
  73. rsMatrix4x4.h
  74. rsMesh.cpp
  75. rsMesh.h
  76. rsMutex.cpp
  77. rsMutex.h
  78. rsObjectBase.cpp
  79. rsObjectBase.h
  80. rsProgram.cpp
  81. rsProgram.h
  82. rsProgramBase.h
  83. rsProgramFragment.cpp
  84. rsProgramFragment.h
  85. rsProgramRaster.cpp
  86. rsProgramRaster.h
  87. rsProgramStore.cpp
  88. rsProgramStore.h
  89. rsProgramVertex.cpp
  90. rsProgramVertex.h
  91. rsRuntime.h
  92. rsSampler.cpp
  93. rsSampler.h
  94. rsScript.cpp
  95. rsScript.h
  96. rsScriptC.cpp
  97. rsScriptC.h
  98. rsScriptC_Lib.cpp
  99. rsScriptC_LibGL.cpp
  100. rsScriptGroup.cpp
  101. rsScriptGroup.h
  102. rsScriptGroup2.cpp
  103. rsScriptGroup2.h
  104. rsScriptGroupBase.h
  105. rsScriptIntrinsic.cpp
  106. rsScriptIntrinsic.h
  107. rsSignal.cpp
  108. rsSignal.h
  109. rsStream.cpp
  110. rsStream.h
  111. rsThreadIO.cpp
  112. rsThreadIO.h
  113. rsType.cpp
  114. rsType.h
  115. rsUtils.h
  116. run_rs_cts.sh
  117. spec.h
  118. spec.l
  119. update-prebuilts.py
  120. update_rs_prebuilts.sh