~linaro-graphics-wg/+junk/spandex-package

« back to all changes in this revision

Viewing changes to bd/benchmarks/opengles2/resources.py

  • Committer: Alexandros Frantzis
  • Date: 2012-05-15 15:14:33 UTC
  • mfrom: (1.1.2)
  • Revision ID: alexandros.frantzis@linaro.org-20120515151433-n38jul7kscz9r05h
* New upstream snapshot 1.1.6+git20120514.402b6166.
* debian/control:
  - Update Standards-Version to 3.9.3.
* debian/patches/egl_extensions_header_fix.patch:
  - Fix compilation with EGL.
* debian/patches/linux_targets.patch:
  - Refresh patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    def __init__( self, id ):
32
32
        Benchmark.__init__( self )
33
33
        self.id = id
34
 
        self.name = "OPENGLES2 resource profile %s (just debug)" % ( self.id, )
 
34
        self.name = "OPENGLES2 resource profile %s (debug)" % ( self.id, )
35
35
        self.repeats = 1
36
36
 
37
37
    def build( self, target, modules ):
48
48
        # Init actions       
49
49
        self.beginInitActions()
50
50
 
51
 
        displayIndex = indexTracker.allocIndex( 'EGL_DISPLAY_INDEX' )
52
 
        Egl.GetDisplay( displayIndex, 'SCT_SCREEN_DEFAULT' );
53
 
        Egl.Initialize( displayIndex )
54
 
        
 
51
        attribs = target.getDefaultAttributes( API_OPENGLES2 )
 
52
        state   = setupGL2( modules, indexTracker, target, attribs )
 
53
 
 
54
        displayIndex = state[ 'displayIndex' ]
 
55
        configIndex  = state[ 'configIndex' ]
 
56
        surfaceIndex = state[ 'surfaceIndex' ]
 
57
        contextIndex = state[ 'contextIndex' ]
 
58
                                                
55
59
        Egl.CheckExtension( displayIndex, 'EGL_NOK_resource_profiling' )
56
60
        
57
61
        # ------------------------------------------------------------