Binary that renders a triangle using Open GL, scans the resulting image to a PNG, and makes an occlusion query to determine the number of fragments shaded. To be used as reference when developing Turnip.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Brian Ho d6fc73e915 Use GL instead of GLES for GL_ARB_occlusion_query support pirms 6 gadiem
.gitignore Implement a simple GL program that draws 2 triangles with a depth buffer pirms 6 gadiem
Makefile Use GL instead of GLES for GL_ARB_occlusion_query support pirms 6 gadiem
README.md Add an occlusion query to count shaded fragments pirms 6 gadiem
occlusion.cc Use GL instead of GLES for GL_ARB_occlusion_query support pirms 6 gadiem
occlusion.frag Use GL instead of GLES for GL_ARB_occlusion_query support pirms 6 gadiem
occlusion.vert Use GL instead of GLES for GL_ARB_occlusion_query support pirms 6 gadiem

README.md

Open GL occlusion query demo

Overview

This repo contains the source for an applicaiton that renders triangles using Open GL, saves the output as a PNG, and outputs the number of shaded fragments via an occlusion query. This applicaiton is used as a reference for implementing occlusion queries for Vulkan on Turnip.

Instructions

  • Enter the CrOS chroot and set up the boards you want to test against (setup_board --board=${BOARD}).
  • Emerge mesa, and libpng to the device under test (emerge x11-drivers/opengles-headers media-libs/mesa libpng && cros deploy ${IP_ADDR} ${PACKAGES}).
  • make shaders
  • target={local, atlas (i915), cheza (adreno)} make