/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_resource_buffer_upload.c | 101 svga_buffer_destroy_hw_storage(struct svga_screen *ss, struct svga_buffer *sbuf) in svga_buffer_destroy_hw_storage() argument 105 assert(sbuf->map.count == 0); in svga_buffer_destroy_hw_storage() 106 assert(sbuf->hwbuf); in svga_buffer_destroy_hw_storage() 107 if (sbuf->hwbuf) { in svga_buffer_destroy_hw_storage() 108 sws->buffer_destroy(sws, sbuf->hwbuf); in svga_buffer_destroy_hw_storage() 109 sbuf->hwbuf = NULL; in svga_buffer_destroy_hw_storage() 122 struct svga_buffer *sbuf, in svga_buffer_create_hw_storage() argument 125 assert(!sbuf->user); in svga_buffer_create_hw_storage() 128 assert(sbuf->handle || !sbuf->dma.pending); in svga_buffer_create_hw_storage() 129 return svga_buffer_create_host_surface(ss, sbuf, bind_flags); in svga_buffer_create_hw_storage() [all …]
|
D | svga_resource_buffer.c | 87 struct svga_buffer *sbuf = svga_buffer(st->resource); in need_buf_readback() local 93 if (!sbuf->bufsurf) in need_buf_readback() 96 return ((sbuf->dirty || in need_buf_readback() 97 sbuf->bufsurf->surface_state == SVGA_SURFACE_STATE_RENDERED) && in need_buf_readback() 98 !sbuf->key.coherent && !svga->swc->force_coherent); in need_buf_readback() 123 struct svga_buffer *sbuf = svga_buffer(resource); in svga_buffer_transfer_map() local 151 pipe_resource_reference(&sbuf->translated_indices.buffer, NULL); in svga_buffer_transfer_map() 163 if (!sbuf->user) { in svga_buffer_transfer_map() 164 (void) svga_buffer_handle(svga, resource, sbuf->bind_flags); in svga_buffer_transfer_map() 167 if (sbuf->dma.pending) { in svga_buffer_transfer_map() [all …]
|
D | svga_resource_buffer.h | 262 svga_buffer_winsys_screen(struct svga_buffer *sbuf) in svga_buffer_winsys_screen() argument 264 return svga_screen(sbuf->b.screen)->sws; in svga_buffer_winsys_screen() 273 svga_buffer_has_hw_storage(struct svga_buffer *sbuf) in svga_buffer_has_hw_storage() argument 275 if (svga_buffer_winsys_screen(sbuf)->have_gb_objects) in svga_buffer_has_hw_storage() 276 return (sbuf->handle ? TRUE : FALSE); in svga_buffer_has_hw_storage() 278 return (sbuf->hwbuf ? TRUE : FALSE); in svga_buffer_has_hw_storage() 287 struct svga_buffer *sbuf, in svga_buffer_hw_storage_map() argument 290 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_map() 302 map = swc->surface_map(swc, sbuf->handle, flags, retry, &rebind); in svga_buffer_hw_storage_map() 306 ret = SVGA3D_BindGBSurface(swc, sbuf->handle); in svga_buffer_hw_storage_map() [all …]
|
D | svga_resource_buffer_upload.h | 32 struct svga_buffer *sbuf); 35 svga_buffer_add_range(struct svga_buffer *sbuf, 41 struct svga_buffer *sbuf, 46 struct svga_buffer *sbuf); 50 struct svga_buffer *sbuf, 55 struct svga_buffer *sbuf, 59 svga_buffer_add_host_surface(struct svga_buffer *sbuf, 66 struct svga_buffer *sbuf, 71 struct svga_buffer *sbuf, 76 struct svga_buffer *sbuf);
|
/third_party/glslang/Test/ |
D | hlsl.structbuffer.atomics.frag | 2 RWByteAddressBuffer sbuf; 8 sbuf.InterlockedAdd(8, 1); 9 sbuf.InterlockedAdd(8, 1, u); 10 sbuf.InterlockedAnd(8, 1); 11 sbuf.InterlockedAnd(8, 1, u); 12 sbuf.InterlockedCompareExchange(8, 1, 2, u); 13 // sbuf.InterlockedCompareStore(8, 1, 2); // TODO: ... 14 sbuf.InterlockedExchange(8, 1, u); 15 sbuf.InterlockedMax(8, 1); 16 sbuf.InterlockedMax(8, 1, u); [all …]
|
D | hlsl.structbuffer.rwbyte.frag | 2 RWByteAddressBuffer sbuf; 7 sbuf.GetDimensions(size); 9 sbuf.Store(pos, sbuf.Load(pos)); 10 sbuf.Store2(pos, sbuf.Load2(pos)); 11 sbuf.Store3(pos, sbuf.Load3(pos)); 12 sbuf.Store4(pos, sbuf.Load4(pos)); 14 return sbuf.Load(pos);
|
D | hlsl.structbuffer.byte.frag | 2 ByteAddressBuffer sbuf; 7 sbuf.GetDimensions(size); 9 return sbuf.Load(pos) + 10 float4(sbuf.Load2(pos+4), 0, 0) + 11 float4(sbuf.Load3(pos+8), 0) + 12 sbuf.Load4(pos+12);
|
D | hlsl.structbuffer.frag | 8 StructuredBuffer<sb_t> sbuf : register(t10); 13 sb_t mydata = sbuf.Load(pos); 17 sbuf.GetDimensions(size, stride); 19 if (sbuf[pos].test) 20 return float4(sbuf[pos].color + sbuf2[pos], 0);
|
D | hlsl.structbuffer.rw.frag | 8 RWStructuredBuffer<sb_t> sbuf; 17 sbuf.GetDimensions(size, stride); 19 if (sbuf[pos].test) 20 return float4(sbuf[pos].color + sbuf2[pos], 0);
|
D | hlsl.structbuffer.coherent.frag | 8 globallycoherent RWStructuredBuffer<sb_t> sbuf; 17 sbuf.GetDimensions(size, stride); 19 if (sbuf[pos].test) 20 return float4(sbuf[pos].color + sbuf2[pos], 0);
|
/third_party/openssl/test/ |
D | sha_test.c | 20 unsigned char buf[EVP_MAX_MD_SIZE], *sbuf; in test_static_sha_common() local 24 sbuf = (*md)(in, in_len, buf); in test_static_sha_common() 25 if (!TEST_ptr(sbuf) in test_static_sha_common() 26 || !TEST_ptr_eq(sbuf, buf) in test_static_sha_common() 27 || !TEST_mem_eq(sbuf, length, out, length)) in test_static_sha_common() 29 sbuf = (*md)(in, in_len, NULL); in test_static_sha_common() 30 if (!TEST_ptr(sbuf) in test_static_sha_common() 31 || !TEST_ptr_ne(sbuf, buf) in test_static_sha_common() 32 || !TEST_mem_eq(sbuf, length, out, length)) in test_static_sha_common()
|
D | wpackettest.c | 42 unsigned char sbuf[3]; in test_WPACKET_init() local 90 if (!TEST_true(WPACKET_init_static_len(&pkt, sbuf, sizeof(sbuf), 0)) in test_WPACKET_init() 98 || !TEST_mem_eq(sbuf, written, fixed, sizeof(sbuf)) in test_WPACKET_init() 100 || !TEST_true(WPACKET_init_static_len(&pkt, sbuf, sizeof(sbuf), 1)) in test_WPACKET_init() 107 || !TEST_mem_eq(sbuf, written, alloc, sizeof(alloc))) in test_WPACKET_init() 359 unsigned char sbuf[1024]; in test_WPACKET_init_der() local 368 if (!TEST_true(WPACKET_init_der(&pkt, sbuf, sizeof(sbuf))) in test_WPACKET_init_der() 402 if (!TEST_true(WPACKET_init_der(&pkt, sbuf, sizeof(sbuf)))) in test_WPACKET_init_der()
|
/third_party/glslang/Test/baseResults/ |
D | hlsl.structbuffer.rwbyte.frag.out | 14 0:7 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 27 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 33 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 50 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 65 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 71 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 83 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 101 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 107 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 126 0:11 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… [all …]
|
D | hlsl.structbuffer.atomics.frag.out | 12 0:8 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsi… 27 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 40 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 55 0:11 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 71 0:12 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer… 88 0:14 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 101 0:15 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 116 0:16 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 129 0:17 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 144 0:18 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… [all …]
|
D | hlsl.structbuffer.byte.frag.out | 14 0:7 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major std430) … 24 0:9 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major st… 46 0:10 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_m… 52 0:10 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_m… 78 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 84 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 93 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 116 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… 122 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… 131 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… [all …]
|
D | hlsl.structbuffer.coherent.frag.out | 26 0:17 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major std430)… 38 0:19 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major std430)… 51 0:20 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major s… 83 0:? 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major std430) buffer un… 116 0:17 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major std430)… 128 0:19 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major std430)… 141 0:20 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major s… 173 0:? 'sbuf' (layout( row_major std430) coherent buffer block{layout( row_major std430) buffer un… 198 Name 30 "sbuf" 199 MemberName 30(sbuf) 0 "@data" [all …]
|
D | hlsl.structbuffer.rw.frag.out | 26 0:17 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 38 0:19 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 51 0:20 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 83 0:? 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-e… 116 0:17 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 128 0:19 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 141 0:20 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 173 0:? 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-e… 198 Name 30 "sbuf" 199 MemberName 30(sbuf) 0 "@data" [all …]
|
D | hlsl.structbuffer.frag.out | 14 0:13 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_ma… 23 0:17 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_ma… 35 0:19 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_ma… 48 0:20 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( … 89 0:? 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_major std430… 110 0:13 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_ma… 119 0:17 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_ma… 131 0:19 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_ma… 144 0:20 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( … 185 0:? 'sbuf' (layout( binding=10 row_major std430) readonly buffer block{layout( row_major std430… [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | nellymoser.c | 119 short sbuf[128]; in ff_nelly_get_sample_bits() local 135 sbuf[i] = signed_shift(buf[i], shift); in ff_nelly_get_sample_bits() 136 sbuf[i] = (3*sbuf[i])>>2; in ff_nelly_get_sample_bits() 137 sum += sbuf[i]; in ff_nelly_get_sample_bits() 149 bitsum = sum_bits(sbuf, shift_saved, small_off); in ff_nelly_get_sample_bits() 167 bitsum = sum_bits(sbuf, shift_saved, small_off); in ff_nelly_get_sample_bits() 186 bitsum = sum_bits(sbuf, shift_saved, off); in ff_nelly_get_sample_bits() 207 tmp = sbuf[i]-small_off; in ff_nelly_get_sample_bits()
|
/third_party/libsnd/src/ |
D | vox_adpcm.c | 186 sptr = ubuf.sbuf ; in vox_read_i() 187 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in vox_read_i() 217 sptr = ubuf.sbuf ; in vox_read_f() 218 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in vox_read_f() 248 sptr = ubuf.sbuf ; in vox_read_d() 249 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in vox_read_d() 323 sptr = ubuf.sbuf ; in vox_write_i() 324 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in vox_write_i() 354 sptr = ubuf.sbuf ; in vox_write_f() 355 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in vox_write_f() [all …]
|
D | xi.c | 252 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_seek() 255 total -= (int) dpcm_read_dles2s (psf, ubuf.sbuf, len) ; in dpcm_seek() 260 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_seek() 263 total -= (int) dpcm_read_dsc2s (psf, ubuf.sbuf, len) ; in dpcm_seek() 627 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_read_dles2s() 632 readcount = (int) psf_fread (ubuf.sbuf, sizeof (short), bufferlen, psf) ; in dpcm_read_dles2s() 633 dles2s_array (pxi, ubuf.sbuf, readcount, ptr + total) ; in dpcm_read_dles2s() 653 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_read_dles2i() 658 readcount = (int) psf_fread (ubuf.sbuf, sizeof (short), bufferlen, psf) ; in dpcm_read_dles2i() 659 dles2i_array (pxi, ubuf.sbuf, readcount, ptr + total) ; in dpcm_read_dles2i() [all …]
|
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-sign/ |
D | main.c | 94 uint8_t *ks, temp[256], *kid = NULL, ktmp[4096], sbuf[512]; in main() local 238 lws_lec_init(&lec, sbuf, sizeof(sbuf)); in main() 291 write(fdout, sbuf, lec.used); in main() 292 lws_lec_setbuf(&lec, sbuf, sizeof(sbuf)); in main() 300 write(fdout, sbuf, lec.used); in main() 301 lws_lec_setbuf(&lec, sbuf, sizeof(sbuf)); in main()
|
/third_party/libsnd/programs/ |
D | sndfile-salvage.c | 208 struct stat sbuf ; in get_file_length() local 210 struct _stat64 sbuf ; in get_file_length() 213 if (sizeof (sbuf.st_size) != 8) in get_file_length() 220 if (fstat (fd, &sbuf) != 0) in get_file_length() 222 if (_fstat64 (fd, &sbuf) != 0) in get_file_length() 228 return sbuf.st_size ; in get_file_length()
|
/third_party/curl/lib/ |
D | hostip6.c | 107 char sbuf[12]; in Curl_getaddrinfo() local 138 msnprintf(sbuf, sizeof(sbuf), "%d", port); in Curl_getaddrinfo() 139 sbufptr = sbuf; in Curl_getaddrinfo()
|
/third_party/ltp/lib/ |
D | tst_fs_type.c | 35 struct statfs sbuf; in tst_fs_type_() local 37 if (statfs(path, &sbuf)) { in tst_fs_type_() 43 return sbuf.f_type; in tst_fs_type_()
|