~eliasnaur/gio-shader

64959e2a53b8e871a7e952c2a21d2384e20de648 — Elias Naur 2 years ago 3aec9cc
piet: properly quote shell environment variables

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 14 insertions(+), 14 deletions(-)

M piet/gencpu.sh
M piet/gencpu.sh => piet/gencpu.sh +14 -14
@@ 13,13 13,13 @@ export GOARCH=386
export VK_ICD_FILENAMES=$SWIFTSHADER/build.32bit/Linux/vk_swiftshader_icd.json

export SWIFTSHADER_TRIPLE=armv7a-none-eabi
go run gioui.org/cpu/cmd/compile -arch arm -objcopy $OBJCOPY_ARM -layout "0:buffer,1:buffer,2:image,3:image" kernel4.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy $OBJCOPY_ARM -layout "0:buffer,1:buffer" coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy $OBJCOPY_ARM -layout "0:buffer,1:buffer" binning.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy $OBJCOPY_ARM -layout "0:buffer,1:buffer" backdrop.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy $OBJCOPY_ARM -layout "0:buffer,1:buffer" path_coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy $OBJCOPY_ARM -layout "0:buffer,1:buffer" tile_alloc.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy $OBJCOPY_ARM -layout "0:buffer,1:buffer,2:buffer,3:buffer" elements.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy "$OBJCOPY_ARM" -layout "0:buffer,1:buffer,2:image,3:image" kernel4.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy "$OBJCOPY_ARM" -layout "0:buffer,1:buffer" coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy "$OBJCOPY_ARM" -layout "0:buffer,1:buffer" binning.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy "$OBJCOPY_ARM" -layout "0:buffer,1:buffer" backdrop.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy "$OBJCOPY_ARM" -layout "0:buffer,1:buffer" path_coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy "$OBJCOPY_ARM" -layout "0:buffer,1:buffer" tile_alloc.comp
go run gioui.org/cpu/cmd/compile -arch arm -objcopy "$OBJCOPY_ARM" -layout "0:buffer,1:buffer,2:buffer,3:buffer" elements.comp

export GOARCH=amd64
export VK_ICD_FILENAMES=$SWIFTSHADER/build.64bit/Linux/vk_swiftshader_icd.json


@@ 35,10 35,10 @@ go run gioui.org/cpu/cmd/compile -arch amd64 -layout "0:buffer,1:buffer,2:buffer

export SWIFTSHADER_TRIPLE=aarch64-unknown-linux-gnu

go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy $OBJCOPY_ARM64 -layout "0:buffer,1:buffer,2:image,3:image" kernel4.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy $OBJCOPY_ARM64 -layout "0:buffer,1:buffer" coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy $OBJCOPY_ARM64 -layout "0:buffer,1:buffer" binning.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy $OBJCOPY_ARM64 -layout "0:buffer,1:buffer" backdrop.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy $OBJCOPY_ARM64 -layout "0:buffer,1:buffer" path_coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy $OBJCOPY_ARM64 -layout "0:buffer,1:buffer" tile_alloc.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy $OBJCOPY_ARM64 -layout "0:buffer,1:buffer,2:buffer,3:buffer" elements.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy "$OBJCOPY_ARM64" -layout "0:buffer,1:buffer,2:image,3:image" kernel4.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy "$OBJCOPY_ARM64" -layout "0:buffer,1:buffer" coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy "$OBJCOPY_ARM64" -layout "0:buffer,1:buffer" binning.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy "$OBJCOPY_ARM64" -layout "0:buffer,1:buffer" backdrop.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy "$OBJCOPY_ARM64" -layout "0:buffer,1:buffer" path_coarse.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy "$OBJCOPY_ARM64" -layout "0:buffer,1:buffer" tile_alloc.comp
go run gioui.org/cpu/cmd/compile -arch arm64 -objcopy "$OBJCOPY_ARM64" -layout "0:buffer,1:buffer,2:buffer,3:buffer" elements.comp