Repository navigation
Commit d74966a
committed
bazel: enable Blender 3D-viewer targets via bazel-orfs bump + addon workaround
Two pieces, bundled because they only make sense together:
1. Bump bazel-orfs ce6efd9 -> 3a5ddd7 (~80 commits of upstream main).
This pulls in the orfs_blender() rule plus the layerstack-trim
`_LAYER_PRESETS` heuristic in render_gds.py. The previously
vendored //bazel:0001-orfs_design-add-user_sources.patch is now
upstream as of 5b65b4e so it goes away.
2. Flip `blender = True` once in flow/designs/design.bzl's design()
funnel so every design routes through the same blender-supported
branch. Designs whose PDK has no BlenderGDS stackup (asap7,
nangate45, ...) silently no-op via the upstream
`blender_supports_pdk` predicate.
A small vendored patch on render_gds.py works around a real bug in
the BlenderGDS addon (`UnboundLocalError: pdk_info` inside
import_gdsii's custom-config branch); routing the trimmed YAML
through `addon.PDK_CONFIGS[pdk]['config_path']` instead of
`gdsii_use_custom_config = True` avoids the bug. TODO: upstream the
fix to aesc-silicon/BlenderGDS and drop this patch.
End-to-end on sky130hd/microwatt (a 562 MB merged GDS), the trim
heuristic produces a 123 MB GLB and a 158 MB self-contained HTML
viewer in ~71 s of wall time once synth/place/route are cached.
gcd-class designs already fit under the addon's full default
layerstack so the preset is a no-op for them.
Usage:
bazelisk run //flow/designs/sky130hd/gcd:gcd_final_blender_html
opens the resulting model-viewer page in the default browser via
xdg-open.
Signed-off-by: Øyvind Harboe <oyvind@ascenium.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 2f6e9c9 commit d74966a
5 files changed
Lines changed: 65 additions & 160 deletions
File tree
- bazel
- flow/designs
- patches/bazel-orfs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments