diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-02-03 09:17:12 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-04 17:58:11 -0700 |
| commit | 4f322f1ed15637d1813b2c8ee4c39b779e8bbf7e (patch) | |
| tree | 0c35f822e2a6d2e19f7f17277a626781464bd573 | |
| parent | a3350c10684f8eb6735f73e11b264e7ae7e284c7 (diff) | |
| download | usermoji-4f322f1ed15637d1813b2c8ee4c39b779e8bbf7e.tar.xz | |
glave: Only remove replay handle maps on DestroyInstance
This only works with a single instance at any given time.
| -rwxr-xr-x | glave-generate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glave-generate.py b/glave-generate.py index d9ef1bd5..2340c428 100755 --- a/glave-generate.py +++ b/glave-generate.py @@ -2129,8 +2129,6 @@ class Subcommand(object): ieg_body.append(' {') ieg_body.append(' glv_LogInfo("Enumerated %d GPUs in the system\\n", gpuCount);') ieg_body.append(' }') - ieg_body.append(' // Do we care about the instance handle? Need to keep from clearing it? Not sure it will be used again...') - ieg_body.append(' clear_all_map_handles();') ieg_body.append(' // TODO handle enumeration results in a different order from trace to replay') ieg_body.append(' for (uint32_t i = 0; i < gpuCount; i++)') ieg_body.append(' {') @@ -2818,7 +2816,9 @@ class Subcommand(object): if 'DestroyInstance' in proto.name: rbody.append(' if (replayResult == XGL_SUCCESS)') rbody.append(' {') - rbody.append(' rm_from_map(pPacket->instance);') + rbody.append(' // TODO need to handle multiple instances and only clearing maps within an instance.') + rbody.append(' // TODO this only works with a single instance used at any given time.') + rbody.append(' clear_all_map_handles();') rbody.append(' }') elif 'AllocDescriptorSets' in proto.name: rbody.append(' if (replayResult == XGL_SUCCESS)') |
