gchal.reg 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. ;#############################################################################
  2. ;#
  3. ;# Copyright 2012 - 2021 Vivante Corporation, Santa Clara, California.
  4. ;# All Rights Reserved.
  5. ;#
  6. ;# Permission is hereby granted, free of charge, to any person obtaining
  7. ;# a copy of this software and associated documentation files (the
  8. ;# 'Software'), to deal in the Software without restriction, including
  9. ;# without limitation the rights to use, copy, modify, merge, publish,
  10. ;# distribute, sub license, and/or sell copies of the Software, and to
  11. ;# permit persons to whom the Software is furnished to do so, subject
  12. ;# to the following conditions:
  13. ;#
  14. ;# The above copyright notice and this permission notice (including the
  15. ;# next paragraph) shall be included in all copies or substantial
  16. ;# portions of the Software.
  17. ;#
  18. ;# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  19. ;# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. ;# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
  21. ;# IN NO EVENT SHALL VIVANTE AND/OR ITS SUPPLIERS BE LIABLE FOR ANY
  22. ;# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  23. ;# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  24. ;# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. ;#
  26. ;#############################################################################
  27. [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\GCHAL\]
  28. "Dll"="libGALCore.dll"
  29. "Prefix"="GPU"
  30. IF _TGTPLAT = Mustang
  31. ; Marvell Mustang
  32. "MemBase"=dword:80000000
  33. "SysIntr"=dword:1C
  34. "Irq"=dword:17
  35. "BaseAddress"=dword:0
  36. "physSize"=dword:10000000
  37. "ContiguousSize"=dword:1A00000
  38. "PowerManagement"=dword:0
  39. "GpuProfiler"=dword:0
  40. ENDIF
  41. IF _TGTPLAT = ARMEB
  42. ; ARM EB
  43. "MemBase"=dword:80000000
  44. "SysIntr"=dword:13
  45. "Irq"=dword:48
  46. "ContiguousSize"=dword:400000
  47. "PowerManagement"=dword:1
  48. "GpuProfiler"=dword:0
  49. ENDIF
  50. IF _TGTPLAT = Aspenite
  51. ; Marvell Aspenite
  52. "MemBase"=dword:C0400000
  53. "Irq"=dword:8
  54. "ContiguousSize"=dword:1000000
  55. "order"=dword:6
  56. "PowerManagement"=dword:1
  57. "GpuProfiler"=dword:0
  58. ENDIF
  59. IF _TGTPLAT = Dove
  60. "MemBase"=dword:d0840000
  61. "Irq"=dword:30
  62. "ContiguousSize"=dword:4000000
  63. "PowerManagement"=dword:1
  64. "GpuProfiler"=dword:0
  65. ENDIF
  66. IF _TGTPLAT = sy7800
  67. "MemBase"=dword:20f00000
  68. "SysIntr"=dword:32
  69. "Irq"=dword:36
  70. "ContiguousSize"=dword:4000000
  71. "PowerManagement"=dword:1
  72. "GpuProfiler"=dword:0
  73. ENDIF
  74. IF _TGTPLAT = iMX6Q_SABREAuto
  75. "ContiguousBase"=dword:50000000
  76. "ContiguousSize"=dword:20000000
  77. ; GC2000
  78. "MemBase"=dword:00130000
  79. "Irq"=dword:29
  80. ; GC320
  81. "MemBase2D"=dword:00134000
  82. "Irq2D"=dword:2A
  83. ;GC350
  84. "MemBaseVG"=dword:02204000
  85. "IrqVG"=dword:2B
  86. "PowerManagement"=dword:1
  87. "GpuProfiler"=dword:0
  88. ENDIF
  89. IF _TGTPLAT = TI_SDP44XX
  90. ; GC320
  91. "MemBase"=dword:59000000
  92. "Irq"=dword:9d
  93. "BaseAddress"=dword:0
  94. "physSize"=dword:C0000000
  95. "ContiguousSize"=dword:4000000
  96. "PowerManagement"=dword:1
  97. "GpuProfiler"=dword:0
  98. ENDIF
  99. IF _TGTPLAT = iMX6Q_SABRE_SDB
  100. "ContiguousSize"=dword:A000000
  101. ; GC2000
  102. "MemBase"=dword:00130000
  103. "Irq"=dword:29
  104. ; GC320
  105. "MemBase2D"=dword:00134000
  106. "Irq2D"=dword:2A
  107. ;GC350
  108. "MemBaseVG"=dword:02204000
  109. "IrqVG"=dword:2B
  110. "PowerManagement"=dword:1
  111. "GpuProfiler"=dword:0
  112. ENDIF
  113. IF _TGTPLAT = qseven_mmp3
  114. "ContiguousSize"=dword:A000000
  115. ; GC2000W
  116. "MemBase"=dword:D420D000
  117. "Irq"=dword:82
  118. ; GC300W
  119. "MemBase2D"=dword:D420F000
  120. "Irq2D"=dword:83
  121. ;"MemBase"=dword:D420F000
  122. ;"Irq"=dword:83
  123. "PowerManagement"=dword:0
  124. "GpuProfiler"=dword:0
  125. ENDIF
  126. ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  127. ; These regsitry settings are needed for Vivante GDI/DD accelerator:
  128. ; GC2DAcceleratorEnable: enable different feature
  129. ; Bit0: set 1 to enable BLTPREPARE
  130. ; Bit1: set 1 to enable ALPHABLEND
  131. ; Bit2: set 1 to enable TRANSPARENT
  132. ; Bit3: set 1 to enable STRETCH
  133. ; Bit4: set 1 to enable MASK
  134. ;
  135. ; GC2DAcceleratorSyncMode: set different sync mode
  136. ; 0: force mode
  137. ; 1: async mode
  138. ; 2: full async mode
  139. ;
  140. ; The following settings balance CPU and GPU capibility.
  141. ; GC2DAcceleratorMinSize: set the min pixel number for hardware to render
  142. ; GC2DAcceleratorMinPixelForSimpleSrcCopy: set the min pixel number for simple src copy
  143. ; GC2DAcceleratorMinPixelForSimpleSolidFill: set the min pixel number for simple solid fill
  144. ; GC2DAcceleratorMinPixelForMask: set the min pixel number for masked blit
  145. ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  146. "GC2DAcceleratorEnable"=dword:0000001F
  147. "GC2DAcceleratorSyncMode"=dword:1
  148. "GC2DAcceleratorMinSize"=dword:200
  149. "GC2DAcceleratorMinPixelForSimpleSrcCopy"=dword:4000
  150. "GC2DAcceleratorMinPixelForSimpleSolidFill"=dword:19000
  151. "GC2DAcceleratorMinPixelForMask"=dword:4000