Changeset 75621 in vbox for trunk/src/VBox/Additions/3D/win/VBoxICD
- Timestamp:
- Nov 20, 2018 2:44:39 PM (6 years ago)
- Location:
- trunk/src/VBox/Additions/3D/win/VBoxICD
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/3D/win/VBoxICD/Makefile.kmk
r75562 r75621 20 20 21 21 VBOX_PATH_GL_GEN = $(PATH_OBJ)/VBoxGLgen 22 VBOX_GL_ICD_DEF_FILE = $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32. def22 VBOX_GL_ICD_DEF_FILE = $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.mingw.def 23 23 24 24 BLDDIRS += $(VBOX_PATH_GL_GEN)/ … … 35 35 36 36 VBoxICD_SOURCES = \ 37 $(VBOX_ GL_ICD_DEF_FILE)\37 $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.def \ 38 38 $(VBOX_PATH_GL_GEN)/forwarders.asm \ 39 39 $(VBOX_PATH_GL_GEN)/pfns.c \ -
trunk/src/VBox/Additions/3D/win/VBoxICD/icd_forwarders.py
r75562 r75621 22 22 23 23 names = [] 24 cbArgs = [] 24 25 for line in exports_file.readlines(): 25 26 line = line.strip() 26 27 if len(line) > 0 and line[0] != ';' and line != 'EXPORTS': 27 names.append(line) 28 # Parse 'glAccum = glAccum@8' 29 words = line.split('=', 1) 30 31 # Function name 32 names.append(words[0].strip()) 33 34 # Size of arguments in bytes 35 words = words[1].split('@') 36 cbArgs.append(words[1].strip()) 28 37 29 38 exports_file.close() … … 40 49 asm_file.write('%include "iprt/asmdefs.mac"\n') 41 50 asm_file.write('\n') 42 asm_file.write(';;;; %define ICD_LAZY_LOAD ; Enable this to lazy load the ICD DLL (does not work on Win64)\n') 51 asm_file.write(';;;; Enable ICD_LAZY_LOAD to lazy load the ICD DLL (does not work on Win64)\n') 52 asm_file.write('; %define ICD_LAZY_LOAD 1\n') 43 53 asm_file.write('\n') 44 54 asm_file.write('%ifdef RT_ARCH_AMD64\n') … … 55 65 for index in range(len(names)): 56 66 fn = names[index] 67 cbRet = cbArgs[index] 57 68 asm_file.write('\n') 58 69 asm_file.write('BEGINPROC_EXPORTED %s\n' % fn) … … 71 82 asm_file.write(' or xAX, xAX\n') 72 83 asm_file.write(' jnz l_jmp_to_%s\n' % fn) 84 asm_file.write('%ifdef RT_ARCH_AMD64\n') 73 85 asm_file.write(' ret\n') 86 asm_file.write('%else ; X86\n') 87 asm_file.write(' ret %s\n' % cbRet) 88 asm_file.write('%endif\n') 74 89 asm_file.write('l_jmp_to_%s:\n' % fn) 75 90 asm_file.write(' jmp xAX\n') -
trunk/src/VBox/Additions/3D/win/VBoxICD/icd_pfns.py
r75562 r75621 25 25 line = line.strip() 26 26 if len(line) > 0 and line[0] != ';' and line != 'EXPORTS': 27 names.append(line) 27 # Parse 'glAccum = glAccum@8' 28 words = line.split('=') 29 30 # Function name 31 names.append(words[0].strip()) 28 32 29 33 exports_file.close()
Note:
See TracChangeset
for help on using the changeset viewer.