Run each scene in its own context

Registered by Jesse Barker

glmark2 has always run all of its scenes on a single context created and made current during initialization. This is not the preferred way to run benchmarks or even directed functional tests as it allows the results to be affected by any issues with internal driver bookkeeping, etc. (of course, it is an interested way to run the tests to detect any resource drain or leakage). We will implement a reset method on the Canvas object to allow a fresh context to be created for each scene. An option will be available to allow for the aforementioned "leak" testing, but the default will be to create a new context for each scene.

Blueprint information

Status:
Complete
Approver:
Jesse Barker
Priority:
High
Drafter:
Jesse Barker
Direction:
Approved
Assignee:
Jesse Barker
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 2012.01
Started by
Jesse Barker
Completed by
Jesse Barker

Related branches

Sprints

Whiteboard

Headline: Run each test scene in its own context
Acceptance: glmark2 and glmark2-es run successfully in both normal and validation mode.

(?)

Work Items

Work items:
Add a reset member to Canvas and CanvasX11: DONE
Add a context reset member to both GLX and EGL Canvas derivatives: DONE
Hook up reset method from initialization path: DONE
Add reset method to main scene loop: DONE
Add option and related handling for context reset: DONE
Add reset support for Android: DONE

This blueprint contains Public information 
Everyone can see this information.