Commit 608d960b authored by Elie Tournier's avatar Elie Tournier
Browse files

Add README.md

parents
# How to setup a working environment for virglrenderer.
`export ALT_LOCAL=/opt/local/virgl`
`export PKG_CONFIG_PATH=$ALT_LOCAL/lib/pkgconfig`
## LIBEPOXY
You need a version of libepoxy that contain `7c4817f`.
(See https://github.com/anholt/libepoxy/issues/147 for more details).
You can build it from source or get the binary from your system.
## VIRGLRENDERER
Building virglrenderer.
Clone the development repo:
`git clone https://gitlab.collabora.com/virgl-es/virglrenderer.git`
Checkout the hacks branch:
`git checkout hacks`
Configure the build:
`./autogen.sh --prefix=$ALT_LOCAL`
Build:
`make`
Install:
`make install`
## QEMU
Building qemu.
Clone the development repo:
`git clone https://gitlab.collabora.com/elie/qemu.git`
Checkout the dev branch:
`git checkout gles-option`
Configure the build:
`./configure \
--prefix=$ALT_LOCAL \
--target-list=x86_64-softmmu \
--enable-kvm \
--disable-werror \
--enable-virglrenderer`
Build:
`make -j`
Install:
`make install`
## LIBPCIACCESS
Clone the repo:
`git clone git://anongit.freedesktop.org/xorg/lib/libpciaccess`
Configure the build:
`cd libpciaccess`
`./autogen.sh --prefix=$ALT_LOCAL`
Build:
`make -j`
Install:
`make install`
## MESA
Clone the repo:
`git clone git://anongit.freedesktop.org/mesa/mesa`
Configure the build:
`./configure --prefix=$ALT_LOCAL \
--enable-driglx-direct \
--enable-gles1 \
--enable-gles2 \
--enable-glx-tls \
--with-egl-platforms='drm x11 wayland' \
--with-dri-drivers="i915 i965" \
--with-gallium-drivers="nouveau swrast"`
Build:
`make -j$(nproc --ignore=1)`
Install:
`make install`
Running qemu.
`export LD_LIBRARY_PATH=/home/user/GLES/install/lib`
`x86_64-softmmu/qemu-system-x86_64 \
-enable-kvm -M q35 -smp 2 -m 4G \
-hda ubuntu.qcow2 \
-net nic,model=virtio \
-net user,hostfwd=tcp::2222-:22 \
-vga virtio \
-display sdl,gles=on`
## GUEST
Clone VK-GL-CTS:
`git clone https://github.com/KhronosGroup/VK-GL-CTS.git`
Build it as describe in the following doc:
`https://github.com/KhronosGroup/VK-GL-CTS/blob/master/external/openglcts/README.md`
`cd VK-GL-CTS`
`mkdir build`
`cd build`
`cmake .. -DDEQP_TARGET=x11_egl -DGLCTS_GTF_TARGET=gles2`
`cmake --build .`
Clone deqp_runner:
`git clone https://gitlab.collabora.com/virgl-es/deqp_runner.git`
To run all the tests:
`python3 deqp_runner/deqp_runner.py --cts-build-dir VK-GL-CTS/build dEQP-GLES2`
To run one test:
`python3 deqp_runner/deqp_runner.py --cts-build-dir VK-GL-CTS/build dEQP-GLES2.functional.texture.mipmap.2d.generate.la88_fastest`
Alternative ways to run tests:
To run all the tests
`./cts-runner --type=es2 --verbose > file.txt`
To run one test
`./glcts --deqp-case=dEQP-GLES2.functional.texture.mipmap.2d.generate.la88_fastest`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment