Cody Northrop
8b62ebc812
compiler_render_tests: Fork the render_tests file for quick compiler test turn on
2014-10-31 15:29:17 -06:00
Courtney Goeltzenleuchter
57cf495b4e
tests: draw multiple triangles to a buffer
2014-10-31 15:29:17 -06:00
Courtney Goeltzenleuchter
12ec01b13e
tests: Remove CreateShader test
...
Removed CreateShader test that was not really testing
the driver with a real shader. Instead let the render tests,
which do use real shaders, do the testing.
2014-10-31 15:29:16 -06:00
Chia-I Wu
3f4ffb324e
render_tests: fix constant buffer setup
...
glm::mat4 has 64 bytes yet we copied 256 bytes from it. Fix memory view range
and stride. It worked because
(OWord Dual Block Read/Write)
the surface pitch is ignored, the surface is treated as a 1-dimensional
surface. An element size (pitch) of 16 bytes is used to determine the size
of the buffer for out-of-bounds checking if using the surface state model.
[DevSNB+]
2014-10-31 15:29:16 -06:00
Courtney Goeltzenleuchter
9f56c85219
tests: Add matrix library (libglm-dev) and test
...
Update draw with uniform to take the uniform (matrix) as a
parameter and can now rotate the test triangle.
2014-10-31 15:29:16 -06:00
Courtney Goeltzenleuchter
76b97303ef
tests: Rename tests to be shorter and more descriptive
2014-10-31 15:29:16 -06:00
Cody Northrop
8bb02ce1ea
render_test: Clean up VS uniform test, draw rotated triangle
2014-10-31 15:29:16 -06:00
Cody Northrop
271b1e533e
render_test: Start turning on simplified VS uniform test
2014-10-31 15:29:16 -06:00
Courtney Goeltzenleuchter
7c667cdc89
intel: Support GLSL compiling in less intrusive way
...
Removed all the extension semantics. Support for compiling GLSL in the
driver is intended to be a tempory feature and these changes minimize
the impact on the driver and make it easier to remove in the future.
2014-10-31 15:29:16 -06:00
Courtney Goeltzenleuchter
645f95552f
tests: Add test to explicitly use GLSL to BIL module
2014-10-31 15:29:16 -06:00
Steve K
484d620fcf
Connect thin vertical BIL path.
2014-10-31 15:29:16 -06:00
Courtney Goeltzenleuchter
57f1662877
tests: Draw two triangles from mesh
2014-10-31 15:29:15 -06:00
Cody Northrop
8a6864cb9e
render_test: Turn all tests back on, easier to debug with just one
2014-10-31 15:29:15 -06:00
Cody Northrop
8946015f2b
render_test: Render a triangle using compiler and vertex fetch
2014-10-31 15:29:15 -06:00
Cody Northrop
33d2b073e6
render_tests: Turn on FS with two uniforms
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
f552fcfcd4
tests: Add another test triangle for compiler
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
c88d48dce0
tests: Clean up shader code, unused functions.
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
44e2f2d9aa
tests: Remove app specific code out of framework
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
9037152404
tests: Remove ISA byte code now that we can compile
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
416dc5fa3f
intel: Turn on BIL in driver
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
6452018c97
tests: Add -use-BIL option
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
2918b7a1fd
tests: Now have two triangle tests using different shaders
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
39e6b73f91
tests: migrate render test to render framework
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
d32e0b6840
tests: Make simple test with everything needed
...
base_render_test does everything needed to render a triangle.
Have in single function to aid understanding what it does.
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
4b388aa88e
tests: Add another class to help implementing tests
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
09521a96c8
tests: Use global SetUp/TearDown for compiler setup
...
The GLSL compiler requires some one-time per process setup and
teardown to operate properly. Using gtest global environment to
manage those functions.
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
189a4711d5
tests: Add additional shaders for testing
2014-10-31 15:29:15 -06:00
Courtney Goeltzenleuchter
a06b818ad0
tests: Add utility function to compile GLSL to BIL
...
This requires glslang + BIL to be in a peer folder (glslang) to XGL.
2014-10-31 15:29:15 -06:00
Cody Northrop
0e19353a99
triangle: Hook up a uniform read in fragment shader
...
Add a constant buffer and descriptor set to render_test
Read the uniform in fragment shader, add it to existing color
Triangle colors should remain, but be whiter
2014-10-31 15:29:15 -06:00
Tobin Ehlis
8f50bf97ea
Refactor test code to pull common section into functions
2014-10-31 15:29:15 -06:00
Cody Northrop
9730695800
render_test: Restore use of %
2014-10-31 15:29:15 -06:00
Cody Northrop
64d861705c
render_test: refactor image/sampler setup, render textured triangle
...
Conflicts:
icd/intel/compiler/shader/compiler_interface.cpp
2014-10-31 15:29:15 -06:00
Cody Northrop
80333ed236
render_test: Populate the texture more correctly, render purple triangle
...
Conflicts:
icd/intel/compiler/shader/compiler_interface.cpp
2014-10-31 15:29:14 -06:00
Cody Northrop
d7ba463f7b
render_test: Start turning on sampler and texture setup
2014-10-31 15:29:14 -06:00
Steve K
0c277d4c56
Checkpoint getting LogicalIO working by backing shader off to 130
...
instead of 430 (which would drag in output blocks). This change
uses the simpler of the two frag shaders in render_tests.cpp,
since that doesn't use more advanced features like layout qualifiers
which may not be present in the BIL->TopIR path yet.
Logical IO is now enabled, as well as a glsl->BIL path. When
BIL is supplied in the shader, we can trim out the glsl bits.
Conflicts:
icd/intel/compiler/shader/compiler_interface.cpp
2014-10-31 15:29:14 -06:00
Steve K
e802c1e08d
Checkpoint some work on useLogicalIO mode for converter, and going through a BIL
...
conversion in the compile method. That'll change soon to consume BIL directly
instead of converting it from glsl.
This is disabled for the moment pending figuring out the varying output count
problem.
Conflicts:
icd/intel/CMakeLists.txt
icd/intel/compiler/shader/compiler_interface.cpp
2014-10-31 15:29:14 -06:00
Courtney Goeltzenleuchter
fd45f76f57
tests: Add additional shaders for testing
2014-10-31 15:29:14 -06:00
Courtney Goeltzenleuchter
c6490057cc
checkpoint: Adding GLSL compiler extension
2014-10-31 15:29:14 -06:00
Courtney Goeltzenleuchter
8603878ebe
cmake: Lift common glslang definitions up to main CMakeLists
2014-10-31 15:29:14 -06:00
Courtney Goeltzenleuchter
35866804ae
tests: Add utility function to compile GLSL to BIL
...
This requires glslang + BIL to be in a peer folder (glslang) to XGL.
2014-10-31 15:29:14 -06:00
Cody Northrop
00d36503b1
triangle: Hook up a uniform read in fragment shader
...
Add a constant buffer and descriptor set to render_test
Read the uniform in fragment shader, add it to existing color
Triangle colors should remain, but be whiter
2014-10-31 15:29:14 -06:00
Tobin Ehlis
856a72bb0a
layers: Update object tracker to account for Memory alloc/free
2014-10-29 18:02:04 -06:00
Jon Ashburn
8cecc69d80
Loader: GPA fixes and also properly insert wrapped gpu objs into chain
...
Loader wasn't properly inserting the wrapped gpu objects for activated layers
into the chain of objects. This was a problem for any calls that used
the wrapped gpu object chain after activation of layers.
2014-10-29 18:02:04 -06:00
Tobin Ehlis
c0602a2b8f
Destroy device before calling 2nd initAndEnum...
2014-10-29 18:02:03 -06:00
Tobin Ehlis
b1185063a0
Add xglDestroyDevice() call to test framework.
2014-10-29 18:02:02 -06:00
Jon Ashburn
601d2ef667
Loader: Fix Seg fault when layers not activated via env var
2014-10-29 18:02:02 -06:00
Tobin Ehlis
6783aa4041
More formated struct printing for API Dump
2014-10-29 18:02:01 -06:00
Jon Ashburn
c357223bfc
Fix memory leaks in loader related to layers.
2014-10-29 18:02:01 -06:00
Jon Ashburn
2506956d31
Make layer activation via CreateDevice struct or env variable
...
Also finish making all activated layers per icd and per gpu.
2014-10-29 18:02:01 -06:00
Tobin Ehlis
154caa36dc
Better memory management in api_dump layer and struct print helper
2014-10-29 18:02:00 -06:00