aboutsummaryrefslogtreecommitdiff
path: root/integration
diff options
context:
space:
mode:
authorSeb Noury <snoury@google.com>2015-03-24 17:46:14 +0000
committerSeb Noury <snoury@google.com>2015-03-25 15:17:12 +0000
commitdb2744b3ea2579260b498c6d4f5b16f7177ee859 (patch)
tree56e4fa5c30aa4c910377d2325f5c805609e4268e /integration
parent05b803708d8f12a14835cb8576173015cc6bd09e (diff)
downloadgpu-db2744b3ea2579260b498c6d4f5b16f7177ee859.tar.gz
Specify context ID where necessary (transforms, NewAtom calls, etc.)
- Add a contextID first argument for NewAtom methods. - Update all transforms and tests to explictly specify context IDs. - Prevent all @synthetic methods from using getState(). Change-Id: Id0ca7f4742e41d3693879e57b157ec25a25d2b3d
Diffstat (limited to 'integration')
-rw-r--r--integration/replay/gles/gles_test.go25
1 files changed, 13 insertions, 12 deletions
diff --git a/integration/replay/gles/gles_test.go b/integration/replay/gles/gles_test.go
index 127023d49..64f194118 100644
--- a/integration/replay/gles/gles_test.go
+++ b/integration/replay/gles/gles_test.go
@@ -57,22 +57,23 @@ func checkColorBuffer(t *testing.T, ctx *replay.Context, mgr *replay.Manager, af
}
func TestClear(t *testing.T) {
+ cid := atom.ContextID(0)
db, logger := utils.NewInMemoryDatabase(), log.Testing(t)
w, h := uint32(64), uint32(64)
atoms := atom.List{
- /* 0 */ gles.NewInit(int32(w), int32(h),
- gles.RenderbufferFormat_GL_RGB565, // Unused
- gles.RenderbufferFormat_GL_DEPTH_COMPONENT16, // Unused
- gles.RenderbufferFormat_GL_STENCIL_INDEX8, // Unused
+ /* 0 */ gles.NewInit(cid, int32(w), int32(h),
+ gles.RenderbufferFormat_GL_RGB565,
+ gles.RenderbufferFormat_GL_DEPTH_COMPONENT16,
+ gles.RenderbufferFormat_GL_STENCIL_INDEX8,
),
- /* 1 */ gles.NewGlClearColor(1.0, 0.0, 0.0, 1.0),
- /* 2 */ gles.NewGlClear(gles.ClearMask_GL_COLOR_BUFFER_BIT),
- /* 3 */ gles.NewGlClearColor(0.0, 1.0, 0.0, 1.0),
- /* 4 */ gles.NewGlClear(gles.ClearMask_GL_COLOR_BUFFER_BIT),
- /* 5 */ gles.NewGlClearColor(0.0, 0.0, 1.0, 1.0),
- /* 6 */ gles.NewGlClear(gles.ClearMask_GL_COLOR_BUFFER_BIT),
- /* 7 */ gles.NewGlClearColor(0.0, 0.0, 0.0, 1.0),
- /* 8 */ gles.NewGlClear(gles.ClearMask_GL_COLOR_BUFFER_BIT),
+ /* 1 */ gles.NewGlClearColor(cid, 1.0, 0.0, 0.0, 1.0),
+ /* 2 */ gles.NewGlClear(cid, gles.ClearMask_GL_COLOR_BUFFER_BIT),
+ /* 3 */ gles.NewGlClearColor(cid, 0.0, 1.0, 0.0, 1.0),
+ /* 4 */ gles.NewGlClear(cid, gles.ClearMask_GL_COLOR_BUFFER_BIT),
+ /* 5 */ gles.NewGlClearColor(cid, 0.0, 0.0, 1.0, 1.0),
+ /* 6 */ gles.NewGlClear(cid, gles.ClearMask_GL_COLOR_BUFFER_BIT),
+ /* 7 */ gles.NewGlClearColor(cid, 0.0, 0.0, 0.0, 1.0),
+ /* 8 */ gles.NewGlClear(cid, gles.ClearMask_GL_COLOR_BUFFER_BIT),
}
mgr := replay.New(db, logger)