summaryrefslogtreecommitdiff
path: root/retrace
diff options
context:
space:
mode:
authorMark Janes <mark.a.janes@intel.com>2017-05-30 16:02:04 -0700
committerMark Janes <mark.a.janes@intel.com>2017-06-19 14:10:07 -0700
commit35c96a1cf83129ca81104c3bb26b5f29bf2bace3 (patch)
tree058052d4fa357a764383ab244812c054f07d5eb7 /retrace
parented9a2ceccf965643ec0ca9e6a5dacd70f90828f2 (diff)
glretrace: expose retraced pipeline
For shader replacement with SSO, we need access to the pipeline identifier used during retrace.
Diffstat (limited to 'retrace')
-rw-r--r--retrace/glretrace.hpp3
-rw-r--r--retrace/glretrace.py5
2 files changed, 8 insertions, 0 deletions
diff --git a/retrace/glretrace.hpp b/retrace/glretrace.hpp
index 8ce37be8..acbd20c8 100644
--- a/retrace/glretrace.hpp
+++ b/retrace/glretrace.hpp
@@ -219,6 +219,9 @@ getRetracedShader(GLint traced_shader);
GLuint
getRetracedUniformBlockIndex(GLuint traced_program, GLuint traced_index);
+GLuint
+getRetracedPipeline(GLuint traced_pipeline);
+
} /* namespace glretrace */
diff --git a/retrace/glretrace.py b/retrace/glretrace.py
index 9e4db88e..abdc4ec9 100644
--- a/retrace/glretrace.py
+++ b/retrace/glretrace.py
@@ -687,4 +687,9 @@ glretrace::getRetracedUniformBlockIndex(GLuint traced_program,
return _uniformBlock_map[traced_program][traced_index];
}
+GLuint
+glretrace::getRetracedPipeline(GLuint traced_pipeline) {
+ return _pipeline_map[traced_pipeline];
+}
+
'''