VirtualBox

Changeset 46401 in vbox


Ignore:
Timestamp:
Jun 6, 2013 6:27:06 AM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: more dump stuff to crstate as it's a more appropriate place for it

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
1 deleted
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/Makefile.kmk

    r46395 r46401  
    107107        util/warp.c \
    108108        util/vreg.cpp \
    109         util/dump.cpp \
    110109        util/blitter.cpp \
    111110        util/vboxhgcm.c \
     
    114113        util/util.def \
    115114        util/util.rc
    116 ifdef VBOX_WITH_CRDUMPER
    117 VBoxOGLcrutil_SOURCES += $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp
    118 endif
    119115VBoxOGLcrutil_LIBS.win = \
    120116        $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
     
    139135VBoxOGLcrutil_pixel.c_CFLAGS.win.x86     += -Od
    140136VBoxOGLhostcrutil_pixel.c_CFLAGS.win.x86 += -Od
    141 ifdef VBOX_WITH_CRDUMPER
    142 VBoxOGLcrutil_DEFS        += VBOX_WITH_CRDUMPER
    143 VBoxOGLcrutil_LIBS        += \
    144     $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \
    145     $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB)
    146 endif
    147137
    148138#
     
    167157VBoxOGLcrutil-x86_LIBS.win    += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB)
    168158endif
    169 ifdef VBOX_WITH_CRDUMPER
    170 # VBOX_WITH_CRDUMPER is inheritted from VBoxOGLcrutil_DEFS
    171 #VBoxOGLcrutil-x86_DEFS        += VBOX_WITH_CRDUMPER
    172 VBoxOGLcrutil-x86_LIBS        += \
    173     $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate-x86$(VBOX_SUFF_LIB) \
    174     $(PATH_STAGE_LIB)/additions/VBoxOGLspuload-x86$(VBOX_SUFF_LIB)
    175 endif
    176159# vc7 hangs during compilation of this file when optimizations are enabled.
    177160VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od
     
    192175    $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
    193176VBoxOGLhostcrutil_LIBS     = $(LIB_RUNTIME)
    194 ifdef VBOX_WITH_CRDUMPER
    195 VBoxOGLhostcrutil_DEFS    += VBOX_WITH_CRDUMPER
    196 VBoxOGLhostcrutil_LIBS        += \
    197     $(PATH_STAGE_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \
    198     $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB)
    199 endif
    200177ifdef VBOX_WITH_CRHGSMI
    201178VBoxOGLhostcrutil_DEFS    += VBOX_WITH_CRHGSMI
     
    214191
    215192ifdef VBOX_WITH_CRDUMPER
    216 $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp: $(PATH_SUB_CURRENT)/util/dump_gen.py $(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_isenabled.txt state_extensions_isenabled.txt) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
     193$(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp: $(PATH_SUB_CURRENT)/state_tracker/dump_gen.py $(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_isenabled.txt state_extensions_isenabled.txt) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
    217194        $(call MSG_GENERATE,python,$@,$<)
    218195        $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
     
    501478        $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
    502479        $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c
     480ifdef VBOX_WITH_CRDUMPER
     481VBoxOGLcrstate_SOURCES += state_tracker/dump.cpp \
     482        $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp
     483endif
     484       
    503485VBoxOGLcrstate_CLEAN = \
    504486        $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
     
    516498        $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c \
    517499        $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
     500ifdef VBOX_WITH_CRDUMPER
     501VBoxOGLcrstate_CLEAN += $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp
     502endif
     503       
    518504ifneq ($(KBUILD_TARGET),win)
    519505 ifeq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),)
     
    527513ifdef VBOX_WITH_WDDM
    528514VBoxOGLcrstate_DEFS.win   += VBOX_WITH_WDDM
     515endif
     516ifdef VBOX_WITH_CRDUMPER
     517VBoxOGLcrstate_DEFS        += VBOX_WITH_CRDUMPER
     518#VBoxOGLcrutil_LIBS        += \
     519    $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \
     520    $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB)
    529521endif
    530522
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/dump_gen.py

    r46395 r46401  
    1212extended_params = {}
    1313
    14 input = open( sys.argv[2]+"/../state_tracker/state_isenabled.txt", 'r' )
     14input = open( sys.argv[2]+"/state_isenabled.txt", 'r' )
    1515for line in input.readlines():
    1616    match = line_re.match( line )
     
    2121        params[pname] = ( type, fields )
    2222
    23 input = open( sys.argv[2]+"/../state_tracker/state_extensions_isenabled.txt", 'r' )
     23input = open( sys.argv[2]+"/state_extensions_isenabled.txt", 'r' )
    2424for line in input.readlines():
    2525    match = extensions_line_re.match( line )
     
    5656from get_sizes import *;
    5757
     58getprops = apiutil.ParamProps("GetDoublev")
     59enableprops = apiutil.ParamProps("Enable")
     60
     61#print "//missing get props:"
     62#for prop in getprops:
     63#    try:
     64#        tmp = num_get_values[prop]
     65#    except KeyError:
     66#        try:
     67#            keyvalues = extensions_num_get_values[prop]
     68#        except KeyError:
     69#            print "//%s" % prop
     70#
    5871print """
    5972static void crRecDumpPrintVal(CR_DUMPER *pDumper, struct nv_struct *pDesc, float *pfData)
     
    101114    print '#endif /* CR_%s */' % ext
    102115
     116#print "//missing enable props:"
     117#for prop in enableprops:
     118#    try:
     119#        keyvalues = params[prop]
     120#    except KeyError:
     121#        try:
     122#            keyvalues = extended_params[prop]
     123#        except KeyError:
     124#            print "//%s" % prop
     125#
    103126print """
    104127}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette