Miguel Pozo pragma37
  • Joined on 2018-04-26
Miguel Pozo commented on pull request blender/blender#122232 2024-06-05 18:48:10 +02:00
GPU: Add GPU_shader_batch_create_from_infos

We have decided to merge this ASAP, so I can start opening the rest of the PRs. This should be fine since the API is not used anywhere yet, but we will do more testing before we merge the other PRs.

Miguel Pozo deleted branch pull-gpu-batch-compilation from pragma37/blender 2024-06-05 18:46:12 +02:00
Miguel Pozo merged pull request blender/blender#122232 2024-06-05 18:46:09 +02:00
GPU: Add GPU_shader_batch_create_from_infos
Miguel Pozo pushed to blender-v4.2-release at blender/blender 2024-06-05 18:46:07 +02:00
74224b25a5 GPU: Add GPU_shader_batch_create_from_infos
Miguel Pozo commented on pull request blender/blender#122232 2024-06-05 17:57:12 +02:00
GPU: Add GPU_shader_batch_create_from_infos

sem_timedwait uses an absolute time value, that's why we need the clock_gettime call.

Miguel Pozo commented on pull request blender/blender#122232 2024-06-05 17:56:22 +02:00
GPU: Add GPU_shader_batch_create_from_infos

I've changed those redundant CHECKs for ERRORs.

EAGAIN is for sem_trywait. The equivalent for sem_timedwait is ETIMEDOUT, which is what we check here.

Miguel Pozo commented on pull request blender/blender#122232 2024-06-05 17:53:44 +02:00
GPU: Add GPU_shader_batch_create_from_infos

No, because we pass 0 as parameter, which means no wait. See the beginning of the function: if (wait_ms == 0) {.

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

Ah, I somehow thought FILE_MAX was the same value as PATH_MAX.

Miguel Pozo pushed to pull-gpu-batch-compilation at pragma37/blender 2024-06-05 17:49:28 +02:00
96840335a1 Convert some checks to errors
19cabb910f Use PATH_MAX + 1
1e2317c176 Remove NULLs
Compare 3 commits »
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-05 17:49:09 +02:00
15914c945c Convert some checks to errors
044f06bde2 Use PATH_MAX + 1
4e7326d68b Remove NULLs
Compare 3 commits »
Miguel Pozo commented on pull request blender/blender#122232 2024-06-05 17:17:26 +02:00
GPU: Add GPU_shader_batch_create_from_infos

When assert triggers it means something unexpected has happened.

But that's true here too. Those asserts should never trigger. It's only that, since errors here could lock Blender, we try to…

Miguel Pozo pushed to pull-gpu-batch-compilation at pragma37/blender 2024-06-05 17:03:45 +02:00
1382efa8a1 BLI_subprocess documentation
dd37dddb32 SharedMemory already_exists > is_owner
Compare 2 commits »
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-05 17:02:43 +02:00
adb46acd77 BLI_subprocess documentation
91b37b50b9 SharedMemory already_exists > is_owner
Compare 2 commits »
Miguel Pozo commented on pull request blender/blender#121925 2024-06-04 20:24:09 +02:00
WIP: GPU: Subprocess based parallel shader compilation

@blender-bot package

Miguel Pozo pushed to pull-gpu-batch-compilation at pragma37/blender 2024-06-04 20:23:25 +02:00
70888a972c Merge branch 'main' into pull-gpu-batch-compilation
a7171e0391 Cycles: oneAPI: Cleanup: Change packed_float3 to float3
fac32e9647 Cleanup: make format
ffa363355d Extensions: "permissions" Expect a dictionary instead of a list
e2458001e4 UI: Extensions: Layout tweaks to list items
Compare 521 commits »
Miguel Pozo pushed to test-parallel-compilation-workers-2 at pragma37/blender 2024-06-04 20:21:23 +02:00
9c8217f0e2 Remove DRW_viewport_request_redraw (no longer needed)
f2792e7812 Merge branch 'main' into test-parallel-compilation-workers-2
a7171e0391 Cycles: oneAPI: Cleanup: Change packed_float3 to float3
fac32e9647 Cleanup: make format
ffa363355d Extensions: "permissions" Expect a dictionary instead of a list
Compare 335 commits »
Miguel Pozo commented on pull request blender/blender#122232 2024-06-04 20:02:04 +02:00
GPU: Add GPU_shader_batch_create_from_infos

Yes, this was wrong and was breaking the lost process detection. It should be solved now.

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

Ooops! That's exactly the case, I've used seconds initially. Thanks!

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

I've removed the CHECKs from conditionals, but I can't say I get your point. Other than asserts triggering or not (which is always the case), I don't see how the behavior between release and debug…

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

Ok, I changed it to `S_IRUSR