Miguel Pozo pragma37
  • Joined on 2018-04-26
Miguel Pozo pushed to pull-gpu-batch-compilation at pragma37/blender 2024-06-04 19:49:18 +02:00
299ab18a2b Fix sleep fallback
9f8fed14ea Remove check return
c0526dfb44 Use __func__
1787a4e5f2 Set rw user mode (Linux)
47336e99ef Fix try_decrement (Linux)
Compare 5 commits »
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-04 19:48:18 +02:00
4ec0159b06 Fix sleep fallback
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-04 19:44:41 +02:00
db5ee5efa7 Remove check return
56d363acf0 Use __func__
Compare 2 commits »
Miguel Pozo commented on pull request blender/blender#121925 2024-06-04 18:55:45 +02:00
WIP: GPU: Subprocess based parallel shader compilation

@blender-bot package

Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-04 18:48:37 +02:00
2e5cbc4e3a Set rw user mode (Linux)
4931b656f8 Fix try_decrement (Linux)
Compare 2 commits »
Miguel Pozo commented on pull request blender/blender#122232 2024-06-04 17:47:16 +02:00
GPU: Add GPU_shader_batch_create_from_infos

I don't mind removing check from the conditional body itself if that really bothers you, but the error prints and the asserts should stay IMO. The fact that we try to handle the failure from…

Miguel Pozo pushed to pull-gpu-batch-compilation at pragma37/blender 2024-06-04 17:37:58 +02:00
b7b7360ae9 validate_arguments > check_arguments_are_valid
802707d0fa Rename Subprocess > BlenderSubprocess
b5cdb04122 Always define BLI_SUBPROCESS_SUPPORT
Compare 3 commits »
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-04 17:37:43 +02:00
209ad573d0 validate_arguments > check_arguments_are_valid
13023e3089 Rename Subprocess > BlenderSubprocess
d4f79137bb Always define BLI_SUBPROCESS_SUPPORT
Compare 3 commits »
Miguel Pozo commented on pull request blender/blender#122232 2024-06-04 17:23:43 +02:00
GPU: Add GPU_shader_batch_create_from_infos

I heavily disagree with this one. I started doing it that way and then went with the macros because it was becoming really unreadable. Also, keep in mind that in your example, if you get a user…

Miguel Pozo commented on pull request blender/blender#122232 2024-06-04 16:33:27 +02:00
GPU: Add GPU_shader_batch_create_from_infos

While I get the point. I think it's much easier to do an #ifdef BLI_SUBPROCESS_SUPPORT by mistake in that case. If you use this API you're likely using it from an OS that supports it, so if the…

Miguel Pozo commented on pull request blender/blender#122232 2024-06-04 16:28:58 +02:00
GPU: Add GPU_shader_batch_create_from_infos

blender::BlenderSubprocess ? 😕 I would just mention it in a comment.

Miguel Pozo commented on pull request blender/blender#122232 2024-06-04 16:27:17 +02:00
GPU: Add GPU_shader_batch_create_from_infos

I thought you meant the is_owner_ property. That's there because shm_unlink must be called only once.

If you mean the third shm_open parameter, then maybe? TBH, I have no idea what that is,…

Miguel Pozo pushed to pull-gpu-batch-compilation at pragma37/blender 2024-06-04 16:19:56 +02:00
73255f5cb5 Clarify lpCommandLine
ef2a1d3b80 validate_arguments
c2a955c0bd Add ERROR macro
a5ba8dcc93 NULL > nullptr
852f593457 Use FILE_MAX
Compare 5 commits »
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-04 16:19:29 +02:00
66bd219108 Clarify lpCommandLine
671c19a9c3 validate_arguments
e3dd677292 Add ERROR macro
466ffbf303 NULL > nullptr
790ceca4a7 Use FILE_MAX
Compare 5 commits »
Miguel Pozo pushed to pull-gpu-batch-compilation at pragma37/blender 2024-06-03 21:28:56 +02:00
eae65d96a1 Fix OpenGL support outside Windows/Linux
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-03 21:28:35 +02:00
9ea00dc7bf Fix OpenGL support outside Windows/Linux
Miguel Pozo commented on pull request blender/blender#122232 2024-06-03 20:25:20 +02:00
GPU: Add GPU_shader_batch_create_from_infos

I've made a full pass on all the OS API function calls, so the whole thing is properly checked and more robust.

Miguel Pozo commented on pull request blender/blender#122232 2024-06-03 20:23:47 +02:00
GPU: Add GPU_shader_batch_create_from_infos

Yes, that's the whole point. You need to access it from both processes.

Miguel Pozo commented on pull request blender/blender#122232 2024-06-03 20:21:35 +02:00
GPU: Add GPU_shader_batch_create_from_infos

The thing is, that parameter must be mutable for some reason. That's why I'm using data() instead of c_str().

Miguel Pozo commented on pull request blender/blender#122232 2024-06-03 20:19:54 +02:00
GPU: Add GPU_shader_batch_create_from_infos

Wide-string might use different number of characters than the multi-byte one

It can have a different number, but never more? Anyway, I copied the Cycles code since I assume it's widely…