Miguel Pozo pragma37
  • Joined on 2018-04-26
Miguel Pozo commented on pull request blender/blender#122792 2024-06-07 16:03:56 +02:00
GPU: OpenGL: Support parallel geometry and compute shader compilation

Other solution is to just size the array to the actual size of the allocation minus header size.

I actually prefer this solution. It also has the advantage of making size checks easier.

Miguel Pozo pushed to pull-gpu-parallel-compilation-comp-geo at pragma37/blender 2024-06-07 16:02:22 +02:00
9a43979a62 Sergey's feedback
6f3a5b241c Convert source/data_start to arrays
Compare 2 commits »
Miguel Pozo commented on pull request blender/blender#122796 2024-06-06 20:45:08 +02:00
GPU: Add GPU_shaders_precompile_specializations

This was not supposed to be included here. We can make a separate PR for printing times.

327a69ece2 Remove timing print
Miguel Pozo commented on pull request blender/blender#122793 2024-06-06 20:37:27 +02:00
GPU: Add GPU_material_batch_compile

I think the code is doing "the right thing", but you're right that the naming is quite misleading. Does this look better? https://projects.blender.org/blender/blender/commit/efe3ae226a85a7806804215

Miguel Pozo commented on pull request blender/blender#122792 2024-06-06 20:34:33 +02:00
GPU: OpenGL: Support parallel geometry and compute shader compilation

We early exit in batch_compile before creating the subprocess:

size_t required_size = offsetof(ShaderSourceHeader, source_start) + item.sources.size();
item.do_async_compilation =…
Miguel Pozo commented on pull request blender/blender#122792 2024-06-06 20:29:52 +02:00
GPU: OpenGL: Support parallel geometry and compute shader compilation

I gave it a try but I ended up reverting it.

next_src += BLI_strncpy_rlen(next_src, src.c_str(), src.size() + 1) + 1;

It may be the right choice if the code needed actual concats, but here we…

Miguel Pozo commented on pull request blender/blender#122792 2024-06-06 20:26:51 +02:00
GPU: OpenGL: Support parallel geometry and compute shader compilation

I didn't know this idiom. It's kind of weid because it goes against the standard. Most compilers seem to support it but may still warn about its use.

C99 standardized char source_start []

Miguel Pozo pushed to pull-eevee-parallel-static-shaders at pragma37/blender 2024-06-06 20:17:45 +02:00
049e29f681 Cleanup info
Miguel Pozo pushed to pull-gpu-material-batch-compilation at pragma37/blender 2024-06-06 20:16:51 +02:00
efe3ae226a GPU_pass_begin/finalize_compilation
8c9be36598 Clarify drw_deferred_shader_compilation_exec states
Compare 2 commits »
Miguel Pozo pushed to pull-gpu-parallel-compilation-comp-geo at pragma37/blender 2024-06-06 20:15:44 +02:00
5cfe8425ea Revert "Use BLI_strncpy_rlen"
58bc51da12 Use BLI_strncpy_rlen
7db29fbd28 Document GLSourcesBaked
faace7ec8d Use empty()
2168698688 ShaderSourceHeader::Type : GRAPHICS_GEOM > GRAPHICS_WITH_GEOMETRY_STAGE
Compare 6 commits »
Miguel Pozo commented on pull request blender/blender#122809 2024-06-06 16:16:54 +02:00
tmp-split-parallel-compilation-prs

@blender-bot package

Miguel Pozo pushed to tmp-split-parallel-compilation-prs at pragma37/blender 2024-06-06 16:15:43 +02:00
32fe2915a7 Merge branch 'blender-v4.2-release' into tmp-split-parallel-compilation-prs
a249e93ad1 GPU: Add missing virtual destructor to ShaderCompiler
f7797a90f6 Core: Make BLENDER_SYSTEM_SCRIPTS always add paths
15ec49ff28 Nodes: improve temp viewer from Connect to Output
b0153f5891 glTF exporter: Collection Export: update filepath when changing format
Compare 29 commits »
Miguel Pozo commented on pull request blender/blender#122809 2024-06-06 15:58:06 +02:00
tmp-split-parallel-compilation-prs

@blender-bot package linux

Miguel Pozo pushed to main at blender/blender 2024-06-06 15:50:52 +02:00
2864942dc8 Merge branch 'blender-v4.2-release'
a249e93ad1 GPU: Add missing virtual destructor to ShaderCompiler
Compare 2 commits »
Miguel Pozo pushed to blender-v4.2-release at blender/blender 2024-06-06 15:50:16 +02:00
a249e93ad1 GPU: Add missing virtual destructor to ShaderCompiler
Miguel Pozo commented on pull request blender/blender#122809 2024-06-05 23:44:07 +02:00
tmp-split-parallel-compilation-prs

@blender-bot package

Miguel Pozo created pull request blender/blender#122809 2024-06-05 23:43:34 +02:00
tmp-split-parallel-compilation-prs
Miguel Pozo created pull request blender/blender#122799 2024-06-05 20:40:50 +02:00
EEVEE: Compile probe passes in parallel
Miguel Pozo created pull request blender/blender#122798 2024-06-05 20:35:20 +02:00
(WIP) EEVEE: Parallel specialization constants compilation