platform/upstream/Vulkan-LoaderAndValidationLayers.git
9 years agofix build instructions
JensOwen [Sat, 1 Nov 2014 19:18:21 +0000 (13:18 -0600)]
fix build instructions

9 years agofix formatting
JensOwen [Sat, 1 Nov 2014 19:11:50 +0000 (13:11 -0600)]
fix formatting

9 years agoBuild Direction
JensOwen [Sat, 1 Nov 2014 19:05:43 +0000 (13:05 -0600)]
Build Direction

add link in top level readme to build info, and put a place holder in
for demo/readme

9 years agoTest removal of newlines
JensOwen [Sat, 1 Nov 2014 18:21:06 +0000 (12:21 -0600)]
Test removal of newlines

9 years agofixed typo
JensOwen [Sat, 1 Nov 2014 15:39:46 +0000 (09:39 -0600)]
fixed typo

9 years agofixed typos
JensOwen [Sat, 1 Nov 2014 15:37:13 +0000 (09:37 -0600)]
fixed typos

9 years agov 0.2
JensOwen [Sat, 1 Nov 2014 15:28:29 +0000 (09:28 -0600)]
v 0.2

First Pass at Version 0.2 Readme

9 years agotests: Can now check for extension we support.
Courtney Goeltzenleuchter [Fri, 31 Oct 2014 22:16:00 +0000 (16:16 -0600)]
tests: Can now check for extension we support.

9 years agoblit_test: Remove incomplete test
Courtney Goeltzenleuchter [Fri, 31 Oct 2014 22:01:07 +0000 (16:01 -0600)]
blit_test: Remove incomplete test

Will restore test when driver functionality is ready.

9 years agorender_tests: Remove broken test
Courtney Goeltzenleuchter [Fri, 31 Oct 2014 20:19:26 +0000 (14:19 -0600)]
render_tests: Remove broken test

9 years agorender_tests: remove unneeded or obsolete tests
Courtney Goeltzenleuchter [Fri, 31 Oct 2014 20:16:09 +0000 (14:16 -0600)]
render_tests: remove unneeded or obsolete tests

Now that BIL is on by default do not need BIL specific tests.
Others removed because they are duplicates or not testing
functionality interesting to XGL.

9 years agotestframework: Enable BIL as default
Courtney Goeltzenleuchter [Fri, 31 Oct 2014 20:13:33 +0000 (14:13 -0600)]
testframework: Enable BIL as default

Also added --no-BIL option to use built-in GLSL compiler.

9 years agoxgl: Update to current BIL/glslang/LunarGLASS
Courtney Goeltzenleuchter [Fri, 31 Oct 2014 20:12:25 +0000 (14:12 -0600)]
xgl: Update to current BIL/glslang/LunarGLASS

9 years agoDocument build dependencies and demos
Mike Stroyan [Thu, 30 Oct 2014 21:59:54 +0000 (15:59 -0600)]
Document build dependencies and demos

9 years agotests: Add more detailed failure data for blit test
Courtney Goeltzenleuchter [Thu, 30 Oct 2014 22:35:05 +0000 (16:35 -0600)]
tests: Add more detailed failure data for blit test

9 years agodemos: Cube: Read shaders from external BIL binary files
Courtney Goeltzenleuchter [Thu, 30 Oct 2014 21:14:16 +0000 (15:14 -0600)]
demos: Cube: Read shaders from external BIL binary files

Added function to read binary BIL files into memory.
When EXTERNAL_BIL is defined, the demo will use BIL binaries.
Otherwise, it uses the built-in driver GLSL compiler.

9 years agodemos: Add shader source files for cube demo
Courtney Goeltzenleuchter [Thu, 30 Oct 2014 16:07:20 +0000 (10:07 -0600)]
demos: Add shader source files for cube demo

9 years agodemos: Add LunarG logo with transparent background
Courtney Goeltzenleuchter [Thu, 30 Oct 2014 16:06:45 +0000 (10:06 -0600)]
demos: Add LunarG logo with transparent background

9 years agodemos: Cube: Make it spin
Courtney Goeltzenleuchter [Wed, 29 Oct 2014 14:29:35 +0000 (08:29 -0600)]
demos: Cube: Make it spin

9 years agodemos: Add LunarG logo texture file.
Courtney Goeltzenleuchter [Wed, 29 Oct 2014 22:25:34 +0000 (16:25 -0600)]
demos: Add LunarG logo texture file.

9 years agodemos: Use png library to read texture from file
Courtney Goeltzenleuchter [Wed, 29 Oct 2014 21:59:49 +0000 (15:59 -0600)]
demos: Use png library to read texture from file

9 years agodemos: Add spinning cube demo with texture
Courtney Goeltzenleuchter [Tue, 28 Oct 2014 20:50:30 +0000 (14:50 -0600)]
demos: Add spinning cube demo with texture

9 years agodemos: Add cube demo
Courtney Goeltzenleuchter [Tue, 28 Oct 2014 16:32:57 +0000 (10:32 -0600)]
demos: Add cube demo

9 years agodemos: Add matrix math "library"
Courtney Goeltzenleuchter [Tue, 28 Oct 2014 16:27:47 +0000 (10:27 -0600)]
demos: Add matrix math "library"

9 years agodemos: Add spinning cube demo
Courtney Goeltzenleuchter [Thu, 23 Oct 2014 19:16:59 +0000 (13:16 -0600)]
demos: Add spinning cube demo

9 years agoClean up: convert compiler_render_tests to all use BIL, remove redundant tests
Cody Northrop [Thu, 30 Oct 2014 17:20:22 +0000 (11:20 -0600)]
Clean up: convert compiler_render_tests to all use BIL, remove redundant tests

9 years agoAdd LunarG copyright to files with substantative changes
Cody Northrop [Thu, 30 Oct 2014 16:19:47 +0000 (10:19 -0600)]
Add LunarG copyright to files with substantative changes

9 years agocompiler: Use metadata qualifier to determine IO status
Cody Northrop [Thu, 30 Oct 2014 15:19:13 +0000 (09:19 -0600)]
compiler: Use metadata qualifier to determine IO status

9 years agocompiler_render_tests: Turn on test that uses sampler bindings and multiple textures
Cody Northrop [Wed, 29 Oct 2014 18:09:45 +0000 (12:09 -0600)]
compiler_render_tests: Turn on test that uses sampler bindings and multiple textures

9 years agocompiler: Allow texture unit bindings to also set sampler index
Cody Northrop [Wed, 22 Oct 2014 22:14:47 +0000 (16:14 -0600)]
compiler: Allow texture unit bindings to also set sampler index

9 years agocompiler: Propagate sampler bindings through glassy translator
Cody Northrop [Wed, 29 Oct 2014 20:27:00 +0000 (14:27 -0600)]
compiler: Propagate sampler bindings through glassy translator

9 years agocompiler_render_tests: Add test that pulls from uniform buffer based on binding
Cody Northrop [Tue, 28 Oct 2014 21:41:42 +0000 (15:41 -0600)]
compiler_render_tests: Add test that pulls from uniform buffer based on binding

9 years agocompiler: If XGL is being used, assign buffer bindings directly from the shader
Cody Northrop [Tue, 28 Oct 2014 21:25:25 +0000 (15:25 -0600)]
compiler: If XGL is being used, assign buffer bindings directly from the shader

9 years agocompiler: Propagate buffer bindings in glassy translator
Cody Northrop [Tue, 28 Oct 2014 21:41:04 +0000 (15:41 -0600)]
compiler: Propagate buffer bindings in glassy translator

9 years agocompiler: Create an API enum for XGL, add checks where appropriate
Cody Northrop [Tue, 28 Oct 2014 20:55:29 +0000 (14:55 -0600)]
compiler: Create an API enum for XGL, add checks where appropriate

9 years agoAdd VERT_ATTRIB_GENERIC0 to explicit locations on vertex attributes.
GregF [Wed, 29 Oct 2014 17:05:05 +0000 (11:05 -0600)]
Add VERT_ATTRIB_GENERIC0 to explicit locations on vertex attributes.

9 years agoxgl: Update to specific version of external libraries
Courtney Goeltzenleuchter [Wed, 29 Oct 2014 23:50:15 +0000 (17:50 -0600)]
xgl: Update to specific version of external libraries

As the BIL spec is rapidly changing, we will explicitly
check out the working version at the time the driver
was tested. Need to update the REVISION values in
the update_external_sources.sh to update to later versions
of BIL.

9 years agotests: Add descriptions to some of the tests.
Courtney Goeltzenleuchter [Mon, 27 Oct 2014 19:09:23 +0000 (13:09 -0600)]
tests: Add descriptions to some of the tests.

9 years agotests: Refactor common code to test method
Courtney Goeltzenleuchter [Mon, 27 Oct 2014 19:08:55 +0000 (13:08 -0600)]
tests: Refactor common code to test method

9 years agotests: Remove bad test
Courtney Goeltzenleuchter [Mon, 27 Oct 2014 19:06:08 +0000 (13:06 -0600)]
tests: Remove bad test

Had two slightly different shaders that were returning
different outputs. Now understand differences and
this commit eliminates the test with poorly defined
results (i.e. does not use a location for the mat4
uniform and thus cannot count on where it is.)

9 years agotests: Add helper macro for tagging tests with a description
Courtney Goeltzenleuchter [Mon, 27 Oct 2014 19:04:37 +0000 (13:04 -0600)]
tests: Add helper macro for tagging tests with a description

9 years agocompiler: Add correct base offset to user's layout
Courtney Goeltzenleuchter [Mon, 27 Oct 2014 17:52:17 +0000 (11:52 -0600)]
compiler: Add correct base offset to user's layout

9 years agotests: Clean up and bug fixes
Courtney Goeltzenleuchter [Mon, 27 Oct 2014 15:48:52 +0000 (09:48 -0600)]
tests: Clean up and bug fixes

Copy correct amount of data to data buffer.
Misc code format cleanup
Update TriangleVSUniform to use uniform block.
For some reason the previous plain uniform mat4 mvp
was no longer working so added that as a separate
test to debug.
Changing the order of the matrix multiply
(mat4 * vec) vs. (vec * mat4) does allow the plain
uniform case to work - but that really shouldn't matter.
Something odd going on.

9 years agodemos/tri: make it prettier
Chia-I Wu [Sat, 25 Oct 2014 04:47:33 +0000 (12:47 +0800)]
demos/tri: make it prettier

And easier to see what the demo does.

9 years agodemos/tri: use xglCmdClear*
Chia-I Wu [Sat, 25 Oct 2014 04:40:28 +0000 (12:40 +0800)]
demos/tri: use xglCmdClear*

The demo was written before xglCmdClear* was supported.  We should be fine
now.

9 years agodemos/tri: fix the shaders
Chia-I Wu [Sat, 25 Oct 2014 04:11:27 +0000 (12:11 +0800)]
demos/tri: fix the shaders

The GLSL code was apparently copy-and-pasted from some other test when the
hardcoded shaders were replaced.  It was not supposed to work.

9 years agotests: Add XGL Triangle test
Courtney Goeltzenleuchter [Fri, 24 Oct 2014 22:26:12 +0000 (16:26 -0600)]
tests: Add XGL Triangle test

9 years agointel: Set Debug options to off by default
Courtney Goeltzenleuchter [Fri, 24 Oct 2014 21:28:25 +0000 (15:28 -0600)]
intel: Set Debug options to off by default

9 years agotests: add basic blit (copy, clear, and resolve) tests
Chia-I Wu [Tue, 21 Oct 2014 03:06:26 +0000 (11:06 +0800)]
tests: add basic blit (copy, clear, and resolve) tests

9 years agotests: allow image tiling to be specified
Chia-I Wu [Fri, 24 Oct 2014 02:12:05 +0000 (10:12 +0800)]
tests: allow image tiling to be specified

Add tiling to XglImage::init() with default value XGL_LINEAR_TILING.

9 years agointel: use the compiler to compile meta shaders
Chia-I Wu [Wed, 22 Oct 2014 05:49:13 +0000 (13:49 +0800)]
intel: use the compiler to compile meta shaders

9 years agointel/compiler: add intel_pipeline_shader_compile_meta()
Chia-I Wu [Wed, 22 Oct 2014 05:48:59 +0000 (13:48 +0800)]
intel/compiler: add intel_pipeline_shader_compile_meta()

9 years agointel/compiler: add brw_blorp_blit_eu from Mesa
Chia-I Wu [Wed, 22 Oct 2014 05:23:31 +0000 (13:23 +0800)]
intel/compiler: add brw_blorp_blit_eu from Mesa

9 years agomisc: Exit update script on error
Courtney Goeltzenleuchter [Fri, 24 Oct 2014 20:37:18 +0000 (14:37 -0600)]
misc: Exit update script on error

9 years agotests: update to match render_test order
Courtney Goeltzenleuchter [Fri, 24 Oct 2014 00:05:20 +0000 (18:05 -0600)]
tests: update to match render_test order

9 years agodemo: tri - only need version 130 for this shader
Courtney Goeltzenleuchter [Thu, 23 Oct 2014 21:16:07 +0000 (15:16 -0600)]
demo: tri - only need version 130 for this shader

9 years agoAdd xglDestroyDevice() call to test framework.
Tobin Ehlis [Thu, 23 Oct 2014 19:45:13 +0000 (13:45 -0600)]
Add xglDestroyDevice() call to test framework.

9 years agoadded BIL_MixTriangle test. This tests support for location on varyings
GregF [Thu, 23 Oct 2014 16:44:44 +0000 (10:44 -0600)]
added BIL_MixTriangle test. This tests support for location on varyings
through BIL.

9 years agoAdd MixTriangle test which tests explicit locations on varyings.
GregF [Wed, 22 Oct 2014 20:40:26 +0000 (14:40 -0600)]
Add MixTriangle test which tests explicit locations on varyings.

9 years agoAdd the starting user varying slot number (24) to any explicit location
GregF [Wed, 22 Oct 2014 20:37:21 +0000 (14:37 -0600)]
Add the starting user varying slot number (24) to any explicit location
passed by user on varying.

9 years agocompiler_render_tests: Add a simple VS texturing test
Cody Northrop [Thu, 23 Oct 2014 16:21:47 +0000 (10:21 -0600)]
compiler_render_tests: Add a simple VS texturing test

9 years agocompiler: Allow sampler index to be looked up, although bindings not present yet
Cody Northrop [Mon, 20 Oct 2014 22:42:23 +0000 (16:42 -0600)]
compiler: Allow sampler index to be looked up, although bindings not present yet

9 years agocompiler: Allow sampler unit bindings to propagate in backend
Cody Northrop [Tue, 21 Oct 2014 15:50:57 +0000 (09:50 -0600)]
compiler: Allow sampler unit bindings to propagate in backend

9 years agocompiler: Remove most of the contents of uniforms.c and add to build
Cody Northrop [Tue, 21 Oct 2014 15:47:26 +0000 (09:47 -0600)]
compiler: Remove most of the contents of uniforms.c and add to build

9 years agocompiler: Add clean copy of uniforms.c
Cody Northrop [Tue, 21 Oct 2014 15:33:23 +0000 (09:33 -0600)]
compiler: Add clean copy of uniforms.c

9 years agodemos: Convert shader to GLSL
Courtney Goeltzenleuchter [Mon, 13 Oct 2014 23:51:58 +0000 (17:51 -0600)]
demos: Convert shader to GLSL

9 years agodemos/tri: enable FF vertex fetch
Chia-I Wu [Wed, 8 Oct 2014 04:14:39 +0000 (12:14 +0800)]
demos/tri: enable FF vertex fetch

9 years agodemos/tri: allocate depth buffer
Chia-I Wu [Tue, 7 Oct 2014 06:15:01 +0000 (14:15 +0800)]
demos/tri: allocate depth buffer

And enable depth test with XGL_COMPARE_GREATER.

9 years agodemos/tri: allocate vertex buffer
Chia-I Wu [Wed, 8 Oct 2014 03:52:22 +0000 (11:52 +0800)]
demos/tri: allocate vertex buffer

9 years agodemos/tri: allocate textures
Chia-I Wu [Mon, 6 Oct 2014 07:30:33 +0000 (15:30 +0800)]
demos/tri: allocate textures

9 years agodemos: Add gen7 ISA to tri demo
Courtney Goeltzenleuchter [Wed, 17 Sep 2014 19:17:12 +0000 (13:17 -0600)]
demos: Add gen7 ISA to tri demo

9 years agodemos: add tri
Chia-I Wu [Sat, 13 Sep 2014 03:12:55 +0000 (11:12 +0800)]
demos: add tri

9 years agotests: Start using XGL blit
Courtney Goeltzenleuchter [Thu, 23 Oct 2014 00:02:30 +0000 (18:02 -0600)]
tests: Start using XGL blit

9 years agotests: Start adding spinning cube test
Courtney Goeltzenleuchter [Mon, 20 Oct 2014 22:33:15 +0000 (16:33 -0600)]
tests: Start adding spinning cube test

9 years agotest-framework: make color and depth binding info accessible
Courtney Goeltzenleuchter [Wed, 22 Oct 2014 20:12:38 +0000 (14:12 -0600)]
test-framework: make color and depth binding info accessible

9 years agotest-framework: Make ReadFile available to tests
Courtney Goeltzenleuchter [Tue, 21 Oct 2014 21:24:51 +0000 (15:24 -0600)]
test-framework: Make ReadFile available to tests

9 years agotest-framework: minor whitespace cleanup
Courtney Goeltzenleuchter [Wed, 22 Oct 2014 20:06:17 +0000 (14:06 -0600)]
test-framework: minor whitespace cleanup

9 years agocompiler: Set some better defaults for gl_context constants
Cody Northrop [Tue, 21 Oct 2014 20:26:57 +0000 (14:26 -0600)]
compiler: Set some better defaults for gl_context constants

9 years agocompiler_render_tests: Clean up single texture test a bit
Cody Northrop [Mon, 20 Oct 2014 17:51:32 +0000 (11:51 -0600)]
compiler_render_tests: Clean up single texture test a bit

9 years agocompiler_render_tests: Turn on VS and FS uniform block tests
Cody Northrop [Mon, 20 Oct 2014 17:51:06 +0000 (11:51 -0600)]
compiler_render_tests:  Turn on VS and FS uniform block tests

9 years agorender_test: Bring over constant buffer stride fix from base_render_test
Cody Northrop [Tue, 14 Oct 2014 20:10:26 +0000 (14:10 -0600)]
render_test: Bring over constant buffer stride fix from base_render_test

9 years agocompiler: Bump up some const values to allow UBO
Cody Northrop [Tue, 14 Oct 2014 18:15:03 +0000 (12:15 -0600)]
compiler: Bump up some const values to allow UBO

9 years agocompiler: Print out link errors from CreateShader
Cody Northrop [Tue, 14 Oct 2014 18:11:30 +0000 (12:11 -0600)]
compiler: Print out link errors from CreateShader

9 years agocompiler_render_tests: Turn on textured triangle test, with just t0 and s0
Cody Northrop [Mon, 20 Oct 2014 17:23:32 +0000 (11:23 -0600)]
compiler_render_tests: Turn on textured triangle test, with just t0 and s0

9 years agocompiler_render_tests: Turn on the compiler_render_tests build
Cody Northrop [Mon, 20 Oct 2014 15:25:17 +0000 (09:25 -0600)]
compiler_render_tests: Turn on the compiler_render_tests build

9 years agocompiler_render_tests: Fork the render_tests file for quick compiler test turn on
Cody Northrop [Mon, 20 Oct 2014 15:22:42 +0000 (09:22 -0600)]
compiler_render_tests: Fork the render_tests file for quick compiler test turn on

9 years agotools: utility script to create and update external sources
Courtney Goeltzenleuchter [Sat, 18 Oct 2014 00:21:42 +0000 (18:21 -0600)]
tools: utility script to create and update external sources

9 years agotests: draw multiple triangles to a buffer
Courtney Goeltzenleuchter [Mon, 13 Oct 2014 19:03:31 +0000 (13:03 -0600)]
tests: draw multiple triangles to a buffer

9 years agoClean up some more non-glassy code from instruction scheduler.
Steve K [Thu, 16 Oct 2014 20:31:50 +0000 (14:31 -0600)]
Clean up some more non-glassy code from instruction scheduler.

9 years agocompiler: Turn off all the compiler spew by default
Cody Northrop [Tue, 14 Oct 2014 20:17:26 +0000 (14:17 -0600)]
compiler: Turn off all the compiler spew by default

9 years agocompiler: Clean up backend some more
Cody Northrop [Wed, 15 Oct 2014 23:32:09 +0000 (17:32 -0600)]
compiler: Clean up backend some more

9 years agocompiler: Remove some (not nearly all) dead files from frontend
Cody Northrop [Wed, 15 Oct 2014 22:53:50 +0000 (16:53 -0600)]
compiler: Remove some (not nearly all) dead files from frontend

9 years agocompiler: Clean up front end changes a bit
Cody Northrop [Wed, 15 Oct 2014 22:39:23 +0000 (16:39 -0600)]
compiler: Clean up front end changes a bit

9 years agoRemove some unneeded non-glassy FS TD scheduler code.
Steve K [Wed, 15 Oct 2014 19:52:30 +0000 (13:52 -0600)]
Remove some unneeded non-glassy FS TD scheduler code.

9 years agoRemove some unneeded non-glassy code from brw register allocator.
Steve K [Wed, 15 Oct 2014 19:45:12 +0000 (13:45 -0600)]
Remove some unneeded non-glassy code from brw register allocator.

9 years agoCleanup some code that's no longer needed with logical IO.
Steve K [Wed, 15 Oct 2014 19:26:21 +0000 (13:26 -0600)]
Cleanup some code that's no longer needed with logical IO.

9 years agoBring across logical IO changes from Mesa branch. Note: some further cleanup
Steve K [Wed, 15 Oct 2014 19:22:09 +0000 (13:22 -0600)]
Bring across logical IO changes from Mesa branch.  Note: some further cleanup
can follow, now that physical IO is no longer needed.

9 years agotests: Remove CreateShader test
Courtney Goeltzenleuchter [Mon, 13 Oct 2014 17:31:55 +0000 (11:31 -0600)]
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.

9 years agorender_tests: fix constant buffer setup
Chia-I Wu [Mon, 13 Oct 2014 08:04:31 +0000 (16:04 +0800)]
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+]

9 years agointel: use intel_gpu to set up the compiler context
Chia-I Wu [Sat, 11 Oct 2014 06:08:15 +0000 (14:08 +0800)]
intel: use intel_gpu to set up the compiler context

Instead of hardcoding Haswell.  The tests now pass on my SandyBridge.