Miguel Pozo pragma37
  • Joined on 2018-04-26
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-05-23 19:58:25 +02:00
e311fec492 Try to fix linux (again)
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-05-23 19:42:10 +02:00
9aba04a491 Revert "Make ShaderModule thread-safe"
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-05-23 19:31:37 +02:00
a04e3f4550 Make ShaderModule thread-safe
70e78ee99b Add missing #pragma once
Compare 2 commits »
Miguel Pozo commented on pull request blender/blender#121925 2024-05-23 18:56:00 +02:00
WIP: GPU: Subprocess based parallel shader compilation

@blender-bot build linux

Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-05-23 18:55:19 +02:00
da4502ece0 Try to fix Linux build
ecaef9648c Merge branch 'main' into test-parallel-compilation-workers-2
5a643cfa74 UI: Edge Slide Comments
b49165fc61 Fix: Asset shelf entries not properly ordered by library name
28f60c725a Fix: Assert reusing asset datablocks
Compare 154 commits »
Miguel Pozo commented on pull request blender/blender#121925 2024-05-23 18:14:49 +02:00
WIP: GPU: Subprocess based parallel shader compilation

@blender-bot package

Miguel Pozo commented on pull request blender/blender#121925 2024-05-23 18:13:54 +02:00
WIP: GPU: Subprocess based parallel shader compilation

The code shouldn't serialize to disk any shader binary larger than the memory pool. I've added the check anyway, though.

Miguel Pozo commented on pull request blender/blender#121925 2024-05-23 18:11:49 +02:00
WIP: GPU: Subprocess based parallel shader compilation

Ok, I've updated it since as you mention, it won't cause any harm. But I really don't see how a single Blender session could request over 4 billion compilation batches and never request them.

Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-05-23 18:04:23 +02:00
224c1f1992 Document compilation loops
12c00733e5 Remove do_batch_compilation from ShaderCreateInfo
78e21bfe9f Cleanup
90d05cdfff Simplify use_parallel_compilation
9b2c065069 Remove no longer used properties
Compare 7 commits »
Miguel Pozo commented on issue blender/blender#120403 2024-05-23 16:34:34 +02:00
NPR Design

@MVPuccino I don't think we will be able to have that granularity with the already existing BSDF nodes. But I agree that for NPR nodes having per-node control of light groups is a must-have. Per-…

Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-05-22 20:28:24 +02:00
87d09190f3 Revert ShaderBinaryHeader order swap
1b4bfa0565 Redesign IPC API
018d62fdb8 cleanup
Compare 3 commits »
Miguel Pozo commented on pull request blender/blender#121925 2024-05-22 16:39:13 +02:00
WIP: GPU: Subprocess based parallel shader compilation

The problem with BLI_file_read_binary_as_mem is that it allocates memory, while this is loading the file contents directly into the already allocated shared memory pool.

Miguel Pozo commented on pull request blender/blender#121925 2024-05-22 16:35:41 +02:00
WIP: GPU: Subprocess based parallel shader compilation

Ah, thanks for the explanation. Of course, it wouldn't be the std without some stupid landmines in it.

Miguel Pozo commented on pull request blender/blender#121925 2024-05-22 16:33:15 +02:00
WIP: GPU: Subprocess based parallel shader compilation

I don't get why this is a problem. Do we target any platform where int is not 32 bits? ints are used all over the place, what makes this different?

Miguel Pozo commented on pull request blender/blender#121925 2024-05-22 16:30:12 +02:00
WIP: GPU: Subprocess based parallel shader compilation

The thing is, it blocks for Metal and Vulkan.

Miguel Pozo commented on pull request blender/blender#121925 2024-05-22 16:29:41 +02:00
WIP: GPU: Subprocess based parallel shader compilation

But this only needs to run once per Blender session, just like the constructor. Unless you're not suggesting calling this init function from Instance::init?

And yes, as we already discussed,…

Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-05-22 16:16:25 +02:00
7c99933a20 RenderBuffers::sync > RenderBuffers::init
8439fa0352 ShaderBinary cleanup
1e2bf0cf61 Use BLI_sys_types
fc43b3679c Remove not needed virtual qualifier
f1be2bb750 Update Max Shader Compilation Subprocess tooltip
Compare 6 commits »
Miguel Pozo commented on pull request blender/blender#121925 2024-05-21 19:59:10 +02:00
WIP: GPU: Subprocess based parallel shader compilation

I've updated it to use blender::fstream, I assume that's fine as well?

Miguel Pozo commented on pull request blender/blender#121925 2024-05-21 19:58:06 +02:00
WIP: GPU: Subprocess based parallel shader compilation

I think filesystem::path uses wchar on Windows, so in that sense I think it should work. Anyway, better take the safe route. I've updated all the path/file related code to use the Blender APIs.