Home
last modified time | relevance | path

Searched refs:readback (Results 1 – 25 of 30) sorted by relevance

12

/external/crosvm/sys_util/src/
Dwrite_zeroes.rs85 let mut readback = [0u8; 16384]; in simple_test() localVariable
87 f.read(&mut readback).unwrap(); in simple_test()
89 for read in &readback[0..1234] { in simple_test()
93 for read in &readback[1234..(1234 + 5678)] { in simple_test()
97 for read in &readback[(1234 + 5678)..] { in simple_test()
109 f.read(&mut readback).unwrap(); in simple_test()
111 for read in &readback[0..1234] { in simple_test()
115 for read in &readback[1234..2345] { in simple_test()
119 for read in &readback[2345..(2345 + 4321)] { in simple_test()
123 for read in &readback[(2345 + 4321)..(1234 + 5678)] { in simple_test()
[all …]
/external/u-boot/post/drivers/
Dmemory.c242 ulong readback; in memory_post_addrline() local
252 readback = *target; in memory_post_addrline()
256 readback = *testaddr; in memory_post_addrline()
259 if(readback == *testaddr) { in memory_post_addrline()
276 ulong readback; in memory_post_test1() local
286 readback = mem[i]; in memory_post_test1()
287 if (readback != val) { in memory_post_test1()
290 mem + i, val, readback); in memory_post_test1()
306 ulong readback; in memory_post_test2() local
316 readback = mem[i]; in memory_post_test2()
[all …]
/external/skia/tests/
DReadWriteAlphaTest.cpp96 std::unique_ptr<uint8_t[]> readback(new uint8_t[bufLen]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
98 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
101 result = sContext->readPixels(ii, readback.get(), rowBytes, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
112 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
133 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
135 result = surf->readPixels(ii, readback.get(), nonZeroRowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
141 uint8_t rbValue = readback.get()[y * nonZeroRowBytes + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
204 std::unique_ptr<uint8_t[]> readback(new uint8_t[nonZeroRowBytes * Y_SIZE]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
206 memset(readback.get(), kClearValue, nonZeroRowBytes * Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
209 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DBlurTest.cpp263 static void readback(const SkBitmap& src, int* result, int resultCount) { in readback() function
264 SkBitmap readback; in readback() local
265 readback.allocN32Pixels(resultCount, 30); in readback()
267 readback.peekPixels(&pm); in readback()
287 readback(bitmap, result, resultCount); in cpu_blur_path()
728 SkBitmap readback; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
729 SkAssertResult(readback.tryAllocPixels(ii)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
731 canvas->readPixels(readback, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
732 REPORTER_ASSERT(reporter, SkColorGetR(readback.getColor(15, 15)) > 128); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
733 REPORTER_ASSERT(reporter, SkColorGetG(readback.getColor(15, 15)) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DClearTest.cpp40 SkAutoPixmapStorage readback; in check_rect() local
41 readback.alloc(dstInfo); in check_rect()
43 readback.erase(~expectedValue); in check_rect()
44 if (!rtc->readPixels(readback.info(), readback.writable_addr(), readback.rowBytes(), in check_rect()
51 uint32_t pixel = readback.addr32()[y * w + x]; in check_rect()
DSurfaceTest.cpp754 SkAutoPixmapStorage readback; in test_surface_context_clear() local
755 readback.alloc(ii); in test_surface_context_clear()
757 readback.erase(~expectedValue); in test_surface_context_clear()
758 surfaceContext->readPixels(readback.info(), readback.writable_addr(), readback.rowBytes(), in test_surface_context_clear()
762 uint32_t pixel = readback.addr32()[y * w + x]; in test_surface_context_clear()
841 SkAutoPixmapStorage readback; in test_surface_draw_partially() local
842 readback.alloc(readInfo); in test_surface_draw_partially()
844 readback.erase(~origColor); in test_surface_draw_partially()
845 SkAssertResult(surface->readPixels(readback.info(), readback.writable_addr(), in test_surface_draw_partially()
846 readback.rowBytes(), 0, 0)); in test_surface_draw_partially()
[all …]
DGrSurfaceTest.cpp199 SkAutoPixmapStorage readback; in DEF_GPUTEST() local
200 readback.alloc(info); in DEF_GPUTEST()
280 readback.erase(kClearColor); in DEF_GPUTEST()
281 if (texCtx->readPixels(readback.info(), readback.writable_addr(), in DEF_GPUTEST()
282 readback.rowBytes(), {0, 0})) { in DEF_GPUTEST()
284 if (!checkColor(combo, readback.addr32()[i])) { in DEF_GPUTEST()
313 readback.erase(kClearColor); in DEF_GPUTEST()
314 if (surfCtx->readPixels(readback.info(), readback.writable_addr(), in DEF_GPUTEST()
315 readback.rowBytes(), {0, 0})) { in DEF_GPUTEST()
317 if (!checkColor(combo, readback.addr32()[i])) { in DEF_GPUTEST()
DOnFlushCallbackTest.cpp515 SkColor readback = bm.getColor(x, kDrawnTileSize/2); in test_color() local
516 REPORTER_ASSERT(reporter, expected == readback); in test_color()
517 if (expected != readback) { in test_color()
518 SkDebugf("Color mismatch: %x %x\n", expected, readback); in test_color()
DResourceCacheTest.cpp58 SkBitmap readback; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
59 readback.allocN32Pixels(size.width(), size.height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
63 surface->readPixels(readback, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/tests/
DReadWriteAlphaTest.cpp100 std::unique_ptr<uint8_t[]> readback(new uint8_t[bufLen]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
102 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 result = sContext->readPixels(ii, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
116 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
137 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
139 result = surf->readPixels(ii, readback.get(), nonZeroRowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 uint8_t rbValue = readback.get()[y * nonZeroRowBytes + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
204 std::unique_ptr<uint8_t[]> readback(new uint8_t[nonZeroRowBytes * Y_SIZE]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
206 memset(readback.get(), kClearValue, nonZeroRowBytes * Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
209 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DBlurTest.cpp261 static void readback(const SkBitmap& src, int* result, int resultCount) { in readback() function
262 SkBitmap readback; in readback() local
263 readback.allocN32Pixels(resultCount, 30); in readback()
265 readback.peekPixels(&pm); in readback()
285 readback(bitmap, result, resultCount); in cpu_blur_path()
726 SkBitmap readback; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
727 SkAssertResult(readback.tryAllocPixels(ii)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
729 canvas->readPixels(readback, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
730 REPORTER_ASSERT(reporter, SkColorGetR(readback.getColor(15, 15)) > 128); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
731 REPORTER_ASSERT(reporter, SkColorGetG(readback.getColor(15, 15)) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DOnFlushCallbackTest.cpp511 SkColor readback = bm.getColor(x, kDrawnTileSize/2); in test_color() local
512 REPORTER_ASSERT(reporter, expected == readback); in test_color()
513 if (expected != readback) { in test_color()
514 SkDebugf("Color mismatch: %x %x\n", expected, readback); in test_color()
DResourceCacheTest.cpp65 SkBitmap readback; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
66 readback.allocN32Pixels(size.width(), size.height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
70 surface->readPixels(readback, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/angle/src/common/
Dsystem_utils_unittest.cpp50 std::string readback = GetEnvironmentVar(kEnvVarName); in TEST() local
51 EXPECT_EQ(kEnvVarValue, readback); in TEST()
56 readback = GetEnvironmentVar(kEnvVarName); in TEST()
57 EXPECT_EQ("", readback); in TEST()
/external/u-boot/cmd/
Dmem.c584 ulong val, readback; in mem_test_alt() local
628 readback = *addr; in mem_test_alt()
629 if (readback != val) { in mem_test_alt()
632 val, readback); in mem_test_alt()
639 readback = *addr; in mem_test_alt()
640 if (readback != ~val) { in mem_test_alt()
643 readback, ~val); in mem_test_alt()
810 ulong val, readback; in mem_test_quick() local
844 readback = *addr; in mem_test_quick()
845 if (readback != val) { in mem_test_quick()
[all …]
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_resource.c105 bool readback; in virgl_resource_transfer_prepare() local
121 readback = virgl_res_needs_readback(vctx, res, xfer->base.usage, in virgl_resource_transfer_prepare()
138 readback = false; in virgl_resource_transfer_prepare()
165 assert(!readback); in virgl_resource_transfer_prepare()
190 if (readback) { in virgl_resource_transfer_prepare()
215 (readback || (wait && vws->resource_is_busy(vws, res->hw_res)))) in virgl_resource_transfer_prepare()
218 if (readback) { in virgl_resource_transfer_prepare()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorReductionCuda.h35 unsigned int readback; in atomicReduce() local
36 while ((readback = atomicCAS((unsigned int*)output, oldval, newval)) != oldval) { in atomicReduce()
37 oldval = readback; in atomicReduce()
52 unsigned long long readback; in atomicReduce() local
53 while ((readback = atomicCAS((unsigned long long*)output, oldval, newval)) != oldval) { in atomicReduce()
54 oldval = readback; in atomicReduce()
91 unsigned int readback; in atomicReduce() local
92 while ((readback = atomicCAS((unsigned int*)output, oldval, newval)) != oldval) { in atomicReduce()
93 oldval = readback; in atomicReduce()
/external/mesa3d/docs/relnotes/
D9.2.5.rst82 - swrast: fix readback regression since inversion fix
D10.0.1.rst76 - swrast: fix readback regression since inversion fix
D11.0.3.rst109 - gallium/radeon: add a fail path for depth MSAA texture readback
/external/crosvm/qcow/src/
Dqcow.rs2319 let mut readback = [0u8; BLOCK_SIZE]; in combo_write_read() localVariable
2331 let nread = qcow_file.read(&mut readback).expect("Failed to read."); in combo_write_read()
2333 for (orig, read) in data.iter().zip(readback.iter()) { in combo_write_read()
2339 let nread = qcow_file.read(&mut readback).expect("Failed to read."); in combo_write_read()
2341 for read in readback.iter() { in combo_write_read()
2350 let nread = qcow_file.read(&mut readback).expect("Failed to read."); in combo_write_read()
2352 for (orig, read) in data.iter().zip(readback.iter()) { in combo_write_read()
/external/angle/extensions/
DANGLE_framebuffer_blit.txt98 read framebuffer is the source for readback operations. The same
195 "The default framebuffer for rendering and readback operations is
223 readback operations, respectively, until it is deleted or another
/external/angle/src/libANGLE/renderer/metal/
DDisplayMtl.mm554 // Enable this for simple buffer readback testing, but some functionality is missing.
622 // Disable all depth buffer and stencil buffer readback extensions until we need them
/external/perfetto/docs/contributing/
Dtesting.md16 Benchmarks tracking the performance of: (i) trace writing, (ii) trace readback
/external/perfetto/gn/
Dproto_library.gni20 # mainly for tests and readback.

12