Commit 461f9ab1 by Cody Northrop Committed by Commit Bot

Capture/Replay: Implement more GLES entry points

Test: Temple Run capture and replay Bug: b:152512564 Bug: angleproject:3662 Change-Id: I4cb5d081e4f590d297dc4af6b49f5dc67584ecb7 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2128329 Commit-Queue: Cody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com>
parent 84323449
...@@ -484,7 +484,8 @@ void WriteCppReplayForCall(const CallCapture &call, ...@@ -484,7 +484,8 @@ void WriteCppReplayForCall(const CallCapture &call,
callOut << "gShaderProgramMap[" << id << "] = "; callOut << "gShaderProgramMap[" << id << "] = ";
} }
if (call.entryPoint == gl::EntryPoint::MapBufferRange) if (call.entryPoint == gl::EntryPoint::MapBufferRange ||
call.entryPoint == gl::EntryPoint::MapBufferRangeEXT)
{ {
GLbitfield access = GLbitfield access =
call.params.getParam("access", ParamType::TGLbitfield, 3).value.GLbitfieldVal; call.params.getParam("access", ParamType::TGLbitfield, 3).value.GLbitfieldVal;
...@@ -3023,9 +3024,15 @@ void FrameCapture::maybeCaptureClientData(const gl::Context *context, CallCaptur ...@@ -3023,9 +3024,15 @@ void FrameCapture::maybeCaptureClientData(const gl::Context *context, CallCaptur
} }
case gl::EntryPoint::MapBuffer: case gl::EntryPoint::MapBuffer:
{
UNIMPLEMENTED();
break;
}
case gl::EntryPoint::MapBufferOES: case gl::EntryPoint::MapBufferOES:
case gl::EntryPoint::MapBufferRangeEXT: {
case gl::EntryPoint::UnmapBufferOES: UNIMPLEMENTED();
break;
}
case gl::EntryPoint::UnmapNamedBuffer: case gl::EntryPoint::UnmapNamedBuffer:
{ {
UNIMPLEMENTED(); UNIMPLEMENTED();
...@@ -3033,6 +3040,7 @@ void FrameCapture::maybeCaptureClientData(const gl::Context *context, CallCaptur ...@@ -3033,6 +3040,7 @@ void FrameCapture::maybeCaptureClientData(const gl::Context *context, CallCaptur
} }
case gl::EntryPoint::MapBufferRange: case gl::EntryPoint::MapBufferRange:
case gl::EntryPoint::MapBufferRangeEXT:
{ {
// Use the access bits to see if contents may be modified // Use the access bits to see if contents may be modified
GLbitfield access = GLbitfield access =
...@@ -3062,6 +3070,7 @@ void FrameCapture::maybeCaptureClientData(const gl::Context *context, CallCaptur ...@@ -3062,6 +3070,7 @@ void FrameCapture::maybeCaptureClientData(const gl::Context *context, CallCaptur
} }
case gl::EntryPoint::UnmapBuffer: case gl::EntryPoint::UnmapBuffer:
case gl::EntryPoint::UnmapBufferOES:
{ {
// See if we need to capture the buffer contents // See if we need to capture the buffer contents
captureMappedBufferSnapshot(context, call); captureMappedBufferSnapshot(context, call);
......
...@@ -525,7 +525,10 @@ void CaptureGetTexParameteriv_params(const State &glState, ...@@ -525,7 +525,10 @@ void CaptureGetTexParameteriv_params(const State &glState,
GLint *params, GLint *params,
ParamCapture *paramCapture) ParamCapture *paramCapture)
{ {
UNIMPLEMENTED(); if (params)
{
paramCapture->readBufferSizeBytes = sizeof(GLint);
}
} }
void CaptureGetUniformLocation_name(const State &glState, void CaptureGetUniformLocation_name(const State &glState,
......
...@@ -845,7 +845,8 @@ void CaptureVertexAttribIPointer_pointer(const State &glState, ...@@ -845,7 +845,8 @@ void CaptureVertexAttribIPointer_pointer(const State &glState,
const void *pointer, const void *pointer,
ParamCapture *paramCapture) ParamCapture *paramCapture)
{ {
UNIMPLEMENTED(); CaptureVertexAttribPointer_pointer(glState, isCallValid, index, size, typePacked, false, stride,
pointer, paramCapture);
} }
} // namespace gl } // namespace gl
...@@ -3111,7 +3111,8 @@ void CaptureTexImage3DOES_pixels(const State &glState, ...@@ -3111,7 +3111,8 @@ void CaptureTexImage3DOES_pixels(const State &glState,
const void *pixels, const void *pixels,
ParamCapture *paramCapture) ParamCapture *paramCapture)
{ {
UNIMPLEMENTED(); CaptureTexImage3D_pixels(glState, isCallValid, targetPacked, level, internalformat, width,
height, depth, border, format, type, pixels, paramCapture);
} }
void CaptureTexSubImage3DOES_pixels(const State &glState, void CaptureTexSubImage3DOES_pixels(const State &glState,
...@@ -3129,7 +3130,8 @@ void CaptureTexSubImage3DOES_pixels(const State &glState, ...@@ -3129,7 +3130,8 @@ void CaptureTexSubImage3DOES_pixels(const State &glState,
const void *pixels, const void *pixels,
ParamCapture *paramCapture) ParamCapture *paramCapture)
{ {
UNIMPLEMENTED(); CaptureTexSubImage3D_pixels(glState, isCallValid, targetPacked, level, xoffset, yoffset,
zoffset, width, height, depth, format, type, pixels, paramCapture);
} }
void CaptureGetSamplerParameterIivOES_params(const State &glState, void CaptureGetSamplerParameterIivOES_params(const State &glState,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment