Home
last modified time | relevance | path

Searched refs:barriers (Results 1 - 25 of 95) sorted by relevance

1234

/third_party/mesa3d/src/mesa/main/
H A Dbarrier.c38 memory_barrier(struct gl_context *ctx, GLbitfield barriers) in memory_barrier() argument
43 if (barriers & GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT) in memory_barrier()
45 if (barriers & GL_ELEMENT_ARRAY_BARRIER_BIT) in memory_barrier()
47 if (barriers & GL_UNIFORM_BARRIER_BIT) in memory_barrier()
49 if (barriers & GL_TEXTURE_FETCH_BARRIER_BIT) in memory_barrier()
51 if (barriers & GL_SHADER_IMAGE_ACCESS_BARRIER_BIT) in memory_barrier()
53 if (barriers & GL_COMMAND_BARRIER_BIT) in memory_barrier()
55 if (barriers & GL_PIXEL_BUFFER_BARRIER_BIT) { in memory_barrier()
63 if (barriers & GL_TEXTURE_UPDATE_BARRIER_BIT) { in memory_barrier()
73 if (barriers in memory_barrier()
114 _mesa_MemoryBarrier(GLbitfield barriers) _mesa_MemoryBarrier() argument
122 memory_barrier_by_region(struct gl_context *ctx, GLbitfield barriers, bool no_error) memory_barrier_by_region() argument
161 _mesa_MemoryBarrierByRegion_no_error(GLbitfield barriers) _mesa_MemoryBarrierByRegion_no_error() argument
168 _mesa_MemoryBarrierByRegion(GLbitfield barriers) _mesa_MemoryBarrierByRegion() argument
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/
H A D2-1.c9 * After a barrier attributes object has been used to initialize one or more barriers
30 pthread_barrier_t barriers[BARRIER_NUM]; in main() local
43 if (pthread_barrier_init(&barriers[cnt], &ba, 1) != 0) { in main()
60 rc = pthread_barrier_wait(&barriers[cnt]); in main()
70 rc = pthread_barrier_destroy(&barriers[cnt]); in main()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
H A DvktImageMultisampleLoadStoreTests.cpp371 const VkImageMemoryBarrier barriers[] = in test() local
378 0u, DE_NULL, 0u, DE_NULL, DE_LENGTH_OF_ARRAY(barriers), barriers); in test()
410 const VkImageMemoryBarrier barriers[] = in test() local
416 0u, DE_NULL, 0u, DE_NULL, DE_LENGTH_OF_ARRAY(barriers), barriers); in test()
446 const VkImageMemoryBarrier barriers[] = in test() local
451 0u, DE_NULL, 0u, DE_NULL, DE_LENGTH_OF_ARRAY(barriers), barriers); in test()
458 const VkBufferMemoryBarrier barriers[] in test() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
H A DvktImageMultisampleLoadStoreTests.cpp335 const VkImageMemoryBarrier barriers[] = in test() local
342 0u, DE_NULL, 0u, DE_NULL, DE_LENGTH_OF_ARRAY(barriers), barriers); in test()
374 const VkImageMemoryBarrier barriers[] = in test() local
380 0u, DE_NULL, 0u, DE_NULL, DE_LENGTH_OF_ARRAY(barriers), barriers); in test()
410 const VkImageMemoryBarrier barriers[] = in test() local
415 0u, DE_NULL, 0u, DE_NULL, DE_LENGTH_OF_ARRAY(barriers), barriers); in test()
422 const VkBufferMemoryBarrier barriers[] in test() local
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_blend_vulkan.c271 VkImageMemoryBarrier barriers[] = { in process_frames() local
315 0, NULL, 0, NULL, FF_ARRAY_ELEMS(barriers), barriers); in process_frames()
317 top->layout[i] = barriers[0].newLayout; in process_frames()
318 top->access[i] = barriers[0].dstAccessMask; in process_frames()
320 bottom->layout[i] = barriers[1].newLayout; in process_frames()
321 bottom->access[i] = barriers[1].dstAccessMask; in process_frames()
323 out->layout[i] = barriers[2].newLayout; in process_frames()
324 out->access[i] = barriers[2].dstAccessMask; in process_frames()
H A Dvf_gblur_vulkan.c344 VkImageMemoryBarrier barriers[] = { in process_frames() local
388 0, NULL, 0, NULL, FF_ARRAY_ELEMS(barriers), barriers); in process_frames()
390 in->layout[i] = barriers[0].newLayout; in process_frames()
391 in->access[i] = barriers[0].dstAccessMask; in process_frames()
393 tmp->layout[i] = barriers[1].newLayout; in process_frames()
394 tmp->access[i] = barriers[1].dstAccessMask; in process_frames()
396 out->layout[i] = barriers[2].newLayout; in process_frames()
397 out->access[i] = barriers[2].dstAccessMask; in process_frames()
H A Dvf_flip_vulkan.c174 VkImageMemoryBarrier barriers[] = { in process_frames() local
205 0, NULL, 0, NULL, FF_ARRAY_ELEMS(barriers), barriers); in process_frames()
207 in->layout[i] = barriers[0].newLayout; in process_frames()
208 in->access[i] = barriers[0].dstAccessMask; in process_frames()
210 out->layout[i] = barriers[1].newLayout; in process_frames()
211 out->access[i] = barriers[1].dstAccessMask; in process_frames()
H A Dvf_transpose_vulkan.c158 VkImageMemoryBarrier barriers[] = { in process_frames() local
189 0, NULL, 0, NULL, FF_ARRAY_ELEMS(barriers), barriers); in process_frames()
191 in->layout[i] = barriers[0].newLayout; in process_frames()
192 in->access[i] = barriers[0].dstAccessMask; in process_frames()
194 out->layout[i] = barriers[1].newLayout; in process_frames()
195 out->access[i] = barriers[1].dstAccessMask; in process_frames()
H A Dvf_scale_vulkan.c300 VkImageMemoryBarrier barriers[AV_NUM_DATA_POINTERS*2]; in process_frames() local
342 memcpy(&barriers[barrier_count++], &bar, sizeof(VkImageMemoryBarrier)); in process_frames()
363 memcpy(&barriers[barrier_count++], &bar, sizeof(VkImageMemoryBarrier)); in process_frames()
371 0, NULL, 0, NULL, barrier_count, barriers); in process_frames()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DTextureD3D12.cpp743 std::vector<D3D12_RESOURCE_BARRIER> barriers; in TrackUsageAndTransitionNow() local
752 barriers.reserve(range.levelCount * range.layerCount * aspectCount); in TrackUsageAndTransitionNow()
754 TransitionUsageAndGetResourceBarrier(commandContext, &barriers, newState, range); in TrackUsageAndTransitionNow()
755 if (barriers.size()) { in TrackUsageAndTransitionNow()
756 commandContext->GetCommandList()->ResourceBarrier(barriers.size(), barriers.data()); in TrackUsageAndTransitionNow()
760 void Texture::TransitionSubresourceRange(std::vector<D3D12_RESOURCE_BARRIER>* barriers, in TransitionSubresourceRange() argument
782 // https://docs.microsoft.com/en-us/windows/desktop/direct3d12/using-resource-barriers-to-synchronize-resource-states-in-direct3d-12#implicit-state-transitions in TransitionSubresourceRange()
834 barriers->push_back(barrier); in TransitionSubresourceRange()
842 barriers in TransitionSubresourceRange()
868 TransitionUsageAndGetResourceBarrier( CommandRecordingContext* commandContext, std::vector<D3D12_RESOURCE_BARRIER>* barriers, D3D12_RESOURCE_STATES newState, const SubresourceRange& range) TransitionUsageAndGetResourceBarrier() argument
887 TrackUsageAndGetResourceBarrierForPass( CommandRecordingContext* commandContext, std::vector<D3D12_RESOURCE_BARRIER>* barriers, const TextureSubresourceUsage& textureUsages) TrackUsageAndGetResourceBarrierForPass() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DTextureVk.cpp889 std::vector<VkImageMemoryBarrier>* barriers, in TweakTransitionForExternalUsage()
893 // transitionBarrierStart specify the index where barriers for current transition start in in TweakTransitionForExternalUsage()
894 // the vector. barriers->size() - transitionBarrierStart is the number of barriers that we in TweakTransitionForExternalUsage()
896 ASSERT(barriers->size() - transitionBarrierStart <= 1); in TweakTransitionForExternalUsage()
899 if (barriers->size() == transitionBarrierStart) { in TweakTransitionForExternalUsage()
900 barriers->push_back(BuildMemoryBarrier( in TweakTransitionForExternalUsage()
905 VkImageMemoryBarrier* barrier = &(*barriers)[transitionBarrierStart]; in TweakTransitionForExternalUsage()
953 barriers->push_back(layoutBarrier); in TweakTransitionForExternalUsage()
967 // Reuse the texture directly and avoid encoding barriers whe in CanReuseWithoutBarrier()
888 TweakTransitionForExternalUsage(CommandRecordingContext* recordingContext, std::vector<VkImageMemoryBarrier>* barriers, size_t transitionBarrierStart) TweakTransitionForExternalUsage() argument
1059 std::vector<VkImageMemoryBarrier> barriers; TransitionUsageNow() local
[all...]
/third_party/mesa3d/src/microsoft/vulkan/
H A Ddzn_cmd_buffer.c34 D3D12_RESOURCE_BARRIER *barriers, in dzn_cmd_buffer_exec_transition_barriers()
39 assert(barriers[b].Transition.pResource); in dzn_cmd_buffer_exec_transition_barriers()
41 /* some layouts map to the same states, and NOP-barriers are illegal */ in dzn_cmd_buffer_exec_transition_barriers()
42 if (barriers[b].Transition.StateBefore == barriers[b].Transition.StateAfter) { in dzn_cmd_buffer_exec_transition_barriers()
45 &barriers[b - flush_count]); in dzn_cmd_buffer_exec_transition_barriers()
55 &barriers[barrier_count - flush_count]); in dzn_cmd_buffer_exec_transition_barriers()
59 barriers[b].Transition.StateBefore = barriers[b].Transition.StateAfter; in dzn_cmd_buffer_exec_transition_barriers()
70 D3D12_RESOURCE_BARRIER *barriers in dzn_cmd_buffer_flush_transition_barriers() local
33 dzn_cmd_buffer_exec_transition_barriers(struct dzn_cmd_buffer *cmdbuf, D3D12_RESOURCE_BARRIER *barriers, uint32_t barrier_count) dzn_cmd_buffer_exec_transition_barriers() argument
95 struct D3D12_RESOURCE_BARRIER *barriers = he ? he->data : NULL; dzn_cmd_buffer_queue_transition_barriers() local
918 D3D12_RESOURCE_BARRIER barriers[2] = { 0 }; dzn_CmdPipelineBarrier2() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/conditional_rendering/
H A DvktConditionalIgnoreTests.cpp248 VkImageMemoryBarrier barriers[] = {colorTransition, depthTransition}; in iterate() local
250 barriers, DE_LENGTH_OF_ARRAY(barriers)); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/conditional_rendering/
H A DvktConditionalIgnoreTests.cpp246 VkImageMemoryBarrier barriers[] = {colorTransition, depthTransition}; in iterate() local
248 barriers, DE_LENGTH_OF_ARRAY(barriers)); in iterate()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DRendererGL.h123 angle::Result memoryBarrier(GLbitfield barriers);
124 angle::Result memoryBarrierByRegion(GLbitfield barriers);
H A DRendererGL.cpp356 angle::Result RendererGL::memoryBarrier(GLbitfield barriers) in memoryBarrier() argument
358 mFunctions->memoryBarrier(barriers); in memoryBarrier()
362 angle::Result RendererGL::memoryBarrierByRegion(GLbitfield barriers) in memoryBarrierByRegion() argument
364 mFunctions->memoryBarrierByRegion(barriers); in memoryBarrierByRegion()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dupgrade_memory_model.cpp613 std::vector<Instruction*> barriers; in UpgradeBarriers() local
614 // Collects all the control barriers in |function|. Returns true if the in UpgradeBarriers()
616 ProcessFunction CollectBarriers = [this, &barriers](Function* function) { in UpgradeBarriers()
619 block.ForEachInst([this, &barriers, in UpgradeBarriers()
622 barriers.push_back(inst); in UpgradeBarriers()
654 for (auto barrier : barriers) { in UpgradeBarriers()
655 // Add OutputMemoryKHR to the semantics of the barriers. in UpgradeBarriers()
672 barriers.clear(); in UpgradeBarriers()
681 // * Named barriers are not supported by Vulkan in UpgradeMemoryScope()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dupgrade_memory_model.cpp613 std::vector<Instruction*> barriers; in UpgradeBarriers() local
614 // Collects all the control barriers in |function|. Returns true if the in UpgradeBarriers()
616 ProcessFunction CollectBarriers = [this, &barriers](Function* function) { in UpgradeBarriers()
619 block.ForEachInst([this, &barriers, in UpgradeBarriers()
622 barriers.push_back(inst); in UpgradeBarriers()
654 for (auto barrier : barriers) { in UpgradeBarriers()
655 // Add OutputMemoryKHR to the semantics of the barriers. in UpgradeBarriers()
672 barriers.clear(); in UpgradeBarriers()
681 // * Named barriers are not supported by Vulkan in UpgradeMemoryScope()
/third_party/spirv-tools/source/opt/
H A Dupgrade_memory_model.cpp620 std::vector<Instruction*> barriers; in UpgradeBarriers() local
621 // Collects all the control barriers in |function|. Returns true if the in UpgradeBarriers()
623 ProcessFunction CollectBarriers = [this, &barriers](Function* function) { in UpgradeBarriers()
626 block.ForEachInst([this, &barriers, in UpgradeBarriers()
629 barriers.push_back(inst); in UpgradeBarriers()
663 for (auto barrier : barriers) { in UpgradeBarriers()
664 // Add OutputMemoryKHR to the semantics of the barriers. in UpgradeBarriers()
682 barriers.clear(); in UpgradeBarriers()
691 // * Named barriers are not supported by Vulkan in UpgradeMemoryScope()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
H A DvktRenderPassMultisampleResolveTests.cpp728 // Memory barriers between previous copies and rendering in submit()
730 std::vector<VkImageMemoryBarrier> barriers; in submit() local
758 barriers.push_back(barrier); in submit()
761 vkd.cmdPipelineBarrier(*commandBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, 0u, 0u, DE_NULL, 0u, DE_NULL, (deUint32)barriers.size(), &barriers[0]); in submit()
810 // Memory barriers between previous copies and rendering in submitDynamicRendering()
837 // Memory barriers to set multisample image layout to COLOR_ATTACHMENT_OPTIMAL in submitDynamicRendering()
952 // Memory barriers to set single-sample image layout to TRANSFER_SRC_OPTIMAL in submitDynamicRendering()
954 std::vector<VkImageMemoryBarrier> barriers; in submitDynamicRendering() local
982 barriers in submitDynamicRendering()
1960 std::vector<VkImageMemoryBarrier> barriers; submit() local
2035 std::vector<VkImageMemoryBarrier> barriers; submit() local
2092 std::vector<VkBufferMemoryBarrier> barriers; submit() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
H A DvktRenderPassMultisampleResolveTests.cpp717 // Memory barriers between previous copies and rendering in submit()
719 std::vector<VkImageMemoryBarrier> barriers; in submit() local
747 barriers.push_back(barrier); in submit()
750 vkd.cmdPipelineBarrier(*commandBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, 0u, 0u, DE_NULL, 0u, DE_NULL, (deUint32)barriers.size(), &barriers[0]); in submit()
799 // Memory barriers between previous copies and rendering in submitDynamicRendering()
826 // Memory barriers to set multisample image layout to COLOR_ATTACHMENT_OPTIMAL in submitDynamicRendering()
941 // Memory barriers to set single-sample image layout to TRANSFER_SRC_OPTIMAL in submitDynamicRendering()
943 std::vector<VkImageMemoryBarrier> barriers; in submitDynamicRendering() local
971 barriers in submitDynamicRendering()
1947 std::vector<VkImageMemoryBarrier> barriers; submit() local
2022 std::vector<VkImageMemoryBarrier> barriers; submit() local
2079 std::vector<VkBufferMemoryBarrier> barriers; submit() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineMultisampledRenderToSingleSampledTests.cpp1281 std::vector<VkImageMemoryBarrier> barriers; in initResolveImageLayouts() local
1285 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1286 barriers.back().image = *wd.floatResolve1.image; in initResolveImageLayouts()
1291 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1292 barriers.back().image = *wd.floatResolve2.image; in initResolveImageLayouts()
1297 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1298 barriers.back().image = *wd.intResolve.image; in initResolveImageLayouts()
1303 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1304 barriers.back().image = *wd.depthStencilResolve.image; in initResolveImageLayouts()
1305 barriers in initResolveImageLayouts()
1341 VkImageMemoryBarrier barriers[4] = { imageBarrierTemplate, imageBarrierTemplate, imageBarrierTemplate, imageBarrierTemplate }; preRenderingImageLayoutTransition() local
1377 std::vector<VkImageMemoryBarrier> barriers; postRenderingResolveImageLayoutTransition() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineMultisampledRenderToSingleSampledTests.cpp1269 std::vector<VkImageMemoryBarrier> barriers; in initResolveImageLayouts() local
1273 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1274 barriers.back().image = *wd.floatResolve1.image; in initResolveImageLayouts()
1279 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1280 barriers.back().image = *wd.floatResolve2.image; in initResolveImageLayouts()
1285 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1286 barriers.back().image = *wd.intResolve.image; in initResolveImageLayouts()
1291 barriers.push_back(imageBarrierTemplate); in initResolveImageLayouts()
1292 barriers.back().image = *wd.depthStencilResolve.image; in initResolveImageLayouts()
1293 barriers in initResolveImageLayouts()
1329 VkImageMemoryBarrier barriers[4] = { imageBarrierTemplate, imageBarrierTemplate, imageBarrierTemplate, imageBarrierTemplate }; preRenderingImageLayoutTransition() local
1365 std::vector<VkImageMemoryBarrier> barriers; postRenderingResolveImageLayoutTransition() local
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DContext_gles_3_1_autogen.h52 void memoryBarrier(GLbitfield barriers); \
53 void memoryBarrierByRegion(GLbitfield barriers); \
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
H A DContextImpl.h224 virtual angle::Result memoryBarrier(const gl::Context *context, GLbitfield barriers) = 0;
226 GLbitfield barriers) = 0;

Completed in 33 milliseconds

1234