fe6b48948c
This also adds a little helper to fuzz that allows us to see what GPU is being targeted. This is the first step in getting a SwiftShader fuzz target. To prove that this works, simply download this patch and run: ./docker/skia-with-swift-shader-base/build-with-swift-shader-and-run "out/with-swift-shader/fuzz --gpuInfo -t api -n NativeGLCanvas -b out/with-swift-shader/fiddle" Running supplied command ['out/with-swift-shader/fuzz', '--gpuInfo', '-t', 'api', '-n', 'NativeGLCanvas', '-b', 'out/with-swift-shader/fiddle'] Fuzzing NativeGLCanvas... GL_RENDERER Google SwiftShader GL_VENDOR Google Inc. GL_VERSION OpenGL ES 3.0 SwiftShader 4.0.0.6 Bug: skia: Change-Id: I3cc11a6bcd14f70f6025011722f9a73c94cb1f65 Reviewed-on: https://skia-review.googlesource.com/132269 Reviewed-by: Joe Gregorio <jcgregorio@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
18 lines
756 B
Docker
18 lines
756 B
Docker
# Dockerfile for building Skia in release mode, using 3rd party libs from DEPS, with SwiftShader.
|
|
FROM launcher.gcr.io/google/clang-debian9 AS build
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
|
git \
|
|
python \
|
|
curl \
|
|
build-essential \
|
|
libfontconfig-dev \
|
|
libgl1-mesa-dev \
|
|
libglu1-mesa-dev
|
|
|
|
ADD https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/libGLESv2.so /usr/local/lib/libGLESv2.so
|
|
ADD https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/libEGL.so /usr/local/lib/libEGL.so
|
|
RUN cd /tmp \
|
|
&& git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' \
|
|
&& git clone https://swiftshader.googlesource.com/SwiftShader swiftshader
|
|
|
|
RUN mkdir -m 0777 /skia |