platform/upstream/Vulkan-LoaderAndValidationLayers.git
10 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

10 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

10 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.

10 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

10 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()

10 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

10 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

10 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

10 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

10 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.

10 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.

10 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.

10 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.

10 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

10 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

10 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

10 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

10 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

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

10 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

10 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.

10 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

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

10 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

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

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

10 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

10 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

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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.

10 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

10 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

10 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

10 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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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+]

10 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.

10 years agointel: remove unused INTEL_EXT_COMPILE_GLSL
Chia-I Wu [Sat, 11 Oct 2014 04:09:46 +0000 (12:09 +0800)]
intel: remove unused INTEL_EXT_COMPILE_GLSL

10 years agointel: make intel_ir opaque
Chia-I Wu [Fri, 10 Oct 2014 05:57:29 +0000 (13:57 +0800)]
intel: make intel_ir opaque

It is just gl_shader_program in the end, and we want gl_shader_program to be
opaque.  This also forces the driver to correctly use intel_pipeline_shader
instead of intel_ir.

With the change, xglCreateShader() now asks the compiler to compile BIL into
intel_ir.  Later when the pipeline is created, the intel_ir is passed to the
compiler again to generate the binary kernel as well as metadata.

10 years agotests: Add matrix library (libglm-dev) and test
Courtney Goeltzenleuchter [Sat, 11 Oct 2014 00:04:39 +0000 (18:04 -0600)]
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.

10 years agotests: Rename tests to be shorter and more descriptive
Courtney Goeltzenleuchter [Fri, 10 Oct 2014 23:02:53 +0000 (17:02 -0600)]
tests: Rename tests to be shorter and more descriptive

10 years agorender_test: Clean up VS uniform test, draw rotated triangle
Cody Northrop [Fri, 10 Oct 2014 21:45:00 +0000 (15:45 -0600)]
render_test: Clean up VS uniform test, draw rotated triangle

10 years agocompiler: Turn off uniform loads via sampler for vec4 for now
Cody Northrop [Fri, 10 Oct 2014 21:42:53 +0000 (15:42 -0600)]
compiler: Turn off uniform loads via sampler for vec4 for now

10 years agorender_test: Start turning on simplified VS uniform test
Cody Northrop [Fri, 10 Oct 2014 20:49:36 +0000 (14:49 -0600)]
render_test: Start turning on simplified VS uniform test

10 years agocompiler: Propagate VS binding table size
Cody Northrop [Fri, 10 Oct 2014 20:48:39 +0000 (14:48 -0600)]
compiler: Propagate VS binding table size

10 years agocompiler: Turn off push constants for vec4 shaders
Cody Northrop [Fri, 10 Oct 2014 20:48:05 +0000 (14:48 -0600)]
compiler: Turn off push constants for vec4 shaders

10 years agointel: Support GLSL compiling in less intrusive way
Courtney Goeltzenleuchter [Fri, 10 Oct 2014 22:29:46 +0000 (16:29 -0600)]
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.

10 years agotests: Add test to explicitly use GLSL to BIL module
Courtney Goeltzenleuchter [Fri, 10 Oct 2014 19:59:38 +0000 (13:59 -0600)]
tests: Add test to explicitly use GLSL to BIL module

10 years agoConnect thin vertical BIL path.
Steve K [Fri, 10 Oct 2014 14:54:29 +0000 (08:54 -0600)]
Connect thin vertical BIL path.

10 years agotests: Draw two triangles from mesh
Courtney Goeltzenleuchter [Fri, 10 Oct 2014 15:52:27 +0000 (09:52 -0600)]
tests: Draw two triangles from mesh

10 years agorender_test: Turn all tests back on, easier to debug with just one
Cody Northrop [Fri, 10 Oct 2014 03:26:47 +0000 (21:26 -0600)]
render_test: Turn all tests back on, easier to debug with just one

10 years agorender_test: Render a triangle using compiler and vertex fetch
Cody Northrop [Fri, 10 Oct 2014 03:25:22 +0000 (21:25 -0600)]
render_test: Render a triangle using compiler and vertex fetch

10 years agorender_tests: Turn on FS with two uniforms
Cody Northrop [Fri, 10 Oct 2014 01:55:56 +0000 (19:55 -0600)]
render_tests: Turn on FS with two uniforms

10 years agotests: Add another test triangle for compiler
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 21:40:19 +0000 (15:40 -0600)]
tests: Add another test triangle for compiler

10 years agotests: Clean up shader code, unused functions.
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 21:37:21 +0000 (15:37 -0600)]
tests: Clean up shader code, unused functions.

10 years agotests: Remove app specific code out of framework
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 21:36:43 +0000 (15:36 -0600)]
tests: Remove app specific code out of framework

10 years agotests: Remove ISA byte code now that we can compile
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 21:35:24 +0000 (15:35 -0600)]
tests: Remove ISA byte code now that we can compile

10 years agointel: Only destroy object if it exists
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 21:24:39 +0000 (15:24 -0600)]
intel: Only destroy object if it exists

10 years agointel: Turn on BIL in driver
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 17:05:19 +0000 (11:05 -0600)]
intel: Turn on BIL in driver

10 years agointel: record size of incoming shader source
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 15:30:32 +0000 (09:30 -0600)]
intel: record size of incoming shader source

10 years agotests: Add -use-BIL option
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 15:13:56 +0000 (09:13 -0600)]
tests: Add -use-BIL option

10 years agointel: disable BIL for now
Courtney Goeltzenleuchter [Thu, 9 Oct 2014 15:13:18 +0000 (09:13 -0600)]
intel: disable BIL for now

10 years agotests: Now have two triangle tests using different shaders
Courtney Goeltzenleuchter [Wed, 8 Oct 2014 20:26:40 +0000 (14:26 -0600)]
tests: Now have two triangle tests using different shaders

10 years agotests: migrate render test to render framework
Courtney Goeltzenleuchter [Wed, 8 Oct 2014 18:20:26 +0000 (12:20 -0600)]
tests: migrate render test to render framework

10 years agotests: Make simple test with everything needed
Courtney Goeltzenleuchter [Wed, 8 Oct 2014 14:59:45 +0000 (08:59 -0600)]
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.

10 years agotests: Add another class to help implementing tests
Courtney Goeltzenleuchter [Wed, 8 Oct 2014 14:50:49 +0000 (08:50 -0600)]
tests: Add another class to help implementing tests

10 years agotests: Use global SetUp/TearDown for compiler setup
Courtney Goeltzenleuchter [Wed, 8 Oct 2014 14:46:51 +0000 (08:46 -0600)]
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.

10 years agotests: Add additional shaders for testing
Courtney Goeltzenleuchter [Mon, 6 Oct 2014 18:45:37 +0000 (12:45 -0600)]
tests: Add additional shaders for testing

10 years agotests: Add utility function to compile GLSL to BIL
Courtney Goeltzenleuchter [Fri, 3 Oct 2014 15:53:32 +0000 (09:53 -0600)]
tests: Add utility function to compile GLSL to BIL

This requires glslang + BIL to be in a peer folder (glslang) to XGL.

10 years agotriangle: Hook up a uniform read in fragment shader
Cody Northrop [Wed, 1 Oct 2014 20:03:25 +0000 (14:03 -0600)]
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

10 years agoRefactor test code to pull common section into functions
Tobin Ehlis [Tue, 7 Oct 2014 20:41:29 +0000 (14:41 -0600)]
Refactor test code to pull common section into functions

10 years agorender_test: Restore use of %
Cody Northrop [Tue, 7 Oct 2014 22:38:45 +0000 (16:38 -0600)]
render_test: Restore use of %

10 years agorender_test: refactor image/sampler setup, render textured triangle
Cody Northrop [Tue, 7 Oct 2014 22:25:00 +0000 (16:25 -0600)]
render_test: refactor image/sampler setup, render textured triangle

Conflicts:
icd/intel/compiler/shader/compiler_interface.cpp

10 years agoUndo changes to driver that mirror what Olv cooked up
Cody Northrop [Tue, 7 Oct 2014 17:27:25 +0000 (11:27 -0600)]
Undo changes to driver that mirror what Olv cooked up

10 years agorender_test: Populate the texture more correctly, render purple triangle
Cody Northrop [Mon, 6 Oct 2014 23:07:40 +0000 (17:07 -0600)]
render_test: Populate the texture more correctly, render purple triangle

Conflicts:
icd/intel/compiler/shader/compiler_interface.cpp

10 years agorender_test: Start turning on sampler and texture setup
Cody Northrop [Mon, 6 Oct 2014 21:42:00 +0000 (15:42 -0600)]
render_test: Start turning on sampler and texture setup

10 years agocompiler: Changes in the direction of textures and samplers
Cody Northrop [Mon, 6 Oct 2014 21:41:18 +0000 (15:41 -0600)]
compiler: Changes in the direction of textures and samplers

10 years agocompiler: Use pipeline shader rather than info shader for state update
Cody Northrop [Mon, 6 Oct 2014 21:11:45 +0000 (15:11 -0600)]
compiler: Use pipeline shader rather than info shader for state update

10 years agocompiler: Start dumping vertex shader data
Cody Northrop [Fri, 3 Oct 2014 15:36:37 +0000 (09:36 -0600)]
compiler: Start dumping vertex shader data

10 years agoCheckpoint getting LogicalIO working by backing shader off to 130
Steve K [Tue, 7 Oct 2014 16:57:33 +0000 (10:57 -0600)]
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

10 years agoCheckpoint some work on useLogicalIO mode for converter, and going through a BIL
Steve K [Tue, 7 Oct 2014 16:44:41 +0000 (10:44 -0600)]
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

10 years agotests: Add additional shaders for testing
Courtney Goeltzenleuchter [Mon, 6 Oct 2014 18:45:37 +0000 (12:45 -0600)]
tests: Add additional shaders for testing

10 years agointel: complete plumbing to add GLSL compile extension
Courtney Goeltzenleuchter [Mon, 6 Oct 2014 18:44:43 +0000 (12:44 -0600)]
intel: complete plumbing to add GLSL compile extension

10 years agointel: Add shader structure for GLSL compile extension
Courtney Goeltzenleuchter [Mon, 6 Oct 2014 18:44:03 +0000 (12:44 -0600)]
intel: Add shader structure for GLSL compile extension