diff options
author | Laura Ekstrand <laura@jlekstrand.net> | 2015-01-14 17:11:38 -0800 |
---|---|---|
committer | Laura Ekstrand <laura@jlekstrand.net> | 2015-04-02 17:57:41 -0700 |
commit | cddd1e0093fc651f165e76e18f0e1d06511ed7d7 (patch) | |
tree | d6ea522b234c31b8abc6d887b868aff95e582c4b | |
parent | 279cac3cab1ae64eb7520288f604bc69228b6a8c (diff) |
arb_map_buffer_range: Fix for bug in map_buffer_range_test?
-rw-r--r-- | tests/spec/arb_map_buffer_range/map_buffer_range_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/spec/arb_map_buffer_range/map_buffer_range_test.c b/tests/spec/arb_map_buffer_range/map_buffer_range_test.c index 213209226..75f1a1afb 100644 --- a/tests/spec/arb_map_buffer_range/map_buffer_range_test.c +++ b/tests/spec/arb_map_buffer_range/map_buffer_range_test.c @@ -113,7 +113,7 @@ piglit_init(int argc, char *argv[]) /* Test 3: test explicitly flushed unsynchronized writes * 3a: Check if things are magically coherent (unmap doing more than it * should */ - ptr = glMapBufferRange(target, 0xa000, 100, GL_MAP_WRITE_BIT | + ptr = glMapBufferRange(target, 0xa002, 100, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT | GL_MAP_UNSYNCHRONIZED_BIT); memcpy(ptr, temp_data, 100); @@ -130,6 +130,7 @@ piglit_init(int argc, char *argv[]) memcpy(ptr, temp_data, 100); glFlushMappedBufferRange(target, 0x0, 100); glUnmapBuffer(target); + /* Needs to match this one: */ glCopyBufferSubData(target, verify, 0xa002, 100, 100); ret = verify_buffer(verify, 100, 100, temp_data); if (!ret) |