Commit Graph

174 Commits

Author SHA1 Message Date
Chia-I Wu
1dc0400941 tests: allow image tiling to be specified
Add tiling to XglImage::init() with default value XGL_LINEAR_TILING.
2014-10-31 15:29:18 -06:00
Courtney Goeltzenleuchter
66cee66b91 tests: update to match render_test order 2014-10-31 15:29:18 -06:00
Tobin Ehlis
34d12f76b1 Add xglDestroyDevice() call to test framework. 2014-10-31 15:29:18 -06:00
GregF
39393040ae added BIL_MixTriangle test. This tests support for location on varyings
through BIL.
2014-10-31 15:29:18 -06:00
GregF
3f5aada1a7 Add MixTriangle test which tests explicit locations on varyings. 2014-10-31 15:29:18 -06:00
Cody Northrop
d36a71978f compiler_render_tests: Add a simple VS texturing test 2014-10-31 15:29:18 -06:00
Chia-I Wu
5c178cabe0 demos: add tri 2014-10-31 15:29:17 -06:00
Courtney Goeltzenleuchter
5c2b815777 tests: Start using XGL blit 2014-10-31 15:29:17 -06:00
Courtney Goeltzenleuchter
ea94c262fe tests: Start adding spinning cube test 2014-10-31 15:29:17 -06:00
Courtney Goeltzenleuchter
ca89c91eb2 test-framework: make color and depth binding info accessible 2014-10-31 15:29:17 -06:00
Courtney Goeltzenleuchter
9a34e263a3 test-framework: Make ReadFile available to tests 2014-10-31 15:29:17 -06:00
Courtney Goeltzenleuchter
77bc5a4775 test-framework: minor whitespace cleanup 2014-10-31 15:29:17 -06:00
Cody Northrop
9a901c0b65 compiler_render_tests: Clean up single texture test a bit 2014-10-31 15:29:17 -06:00
Cody Northrop
7f3ce56a9c compiler_render_tests: Turn on VS and FS uniform block tests 2014-10-31 15:29:17 -06:00
Cody Northrop
081c73e6c6 render_test: Bring over constant buffer stride fix from base_render_test 2014-10-31 15:29:17 -06:00
Cody Northrop
5b86122036 compiler_render_tests: Turn on textured triangle test, with just t0 and s0 2014-10-31 15:29:17 -06:00
Cody Northrop
000208953e compiler_render_tests: Turn on the compiler_render_tests build 2014-10-31 15:29:17 -06:00
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