platform/upstream/Vulkan-Tools.git
9 years agolayers: Fix bug in DestroyObject code of MemTracker layer.
Tobin Ehlis [Tue, 25 Nov 2014 19:27:38 +0000 (12:27 -0700)]
layers: Fix bug in DestroyObject code of MemTracker layer.

9 years agolayers: Update xglEnumerateLayers() to work with layer names
Jon Ashburn [Tue, 25 Nov 2014 18:08:42 +0000 (11:08 -0700)]
layers: Update xglEnumerateLayers() to work with layer names

Use layer names  in the librarires rather than library filenames.

9 years agoloader: Make layer names be independent of layer library filename
Jon Ashburn [Tue, 18 Nov 2014 16:06:04 +0000 (09:06 -0700)]
loader: Make layer names be independent of layer library filename

Also change env var from LIBXGL_LAYER_LIBS to LIBXGL_LAYER_NAMES
since the layer name rather than library name is given.

9 years agoloader: Change ActivateLayers name to be consistent with rest of loader
Jon Ashburn [Mon, 17 Nov 2014 17:17:37 +0000 (10:17 -0700)]
loader: Change ActivateLayers name to be consistent with rest of loader

9 years agolayers: Add VBO validation to DrawState layer.
Tobin Ehlis [Tue, 25 Nov 2014 17:24:15 +0000 (10:24 -0700)]
layers: Add VBO validation to DrawState layer.

9 years agolayers: Account for the slotOffset when DS bound.
Tobin Ehlis [Tue, 25 Nov 2014 00:09:09 +0000 (17:09 -0700)]
layers: Account for the slotOffset when DS bound.

9 years agolayers: Flag ERROR on no DS bound if that DS is used by a shader.
Tobin Ehlis [Mon, 24 Nov 2014 23:06:04 +0000 (16:06 -0700)]
layers: Flag ERROR on no DS bound if that DS is used by a shader.

9 years agoxgl: Update to current BIL/glslang/LunarGLASS
Courtney Goeltzenleuchter [Tue, 25 Nov 2014 00:36:02 +0000 (17:36 -0700)]
xgl: Update to current BIL/glslang/LunarGLASS

9 years agolayers: Add thread ID to API dump messages
Tobin Ehlis [Mon, 24 Nov 2014 22:46:55 +0000 (15:46 -0700)]
layers: Add thread ID to API dump messages

Initial code from Jon and I added indexing so TID stays in 0-512 range and will be the same on consecutive runs with a single thread.

9 years agodemos: Fix uninitialized dataSize input to GetObjectInfo()
Jon Ashburn [Fri, 21 Nov 2014 20:29:30 +0000 (13:29 -0700)]
demos: Fix uninitialized dataSize input to GetObjectInfo()

9 years agolayers: For APIFileDump, overwrite an existing file rather than always appending.
Tobin Ehlis [Fri, 21 Nov 2014 16:35:53 +0000 (09:35 -0700)]
layers: For APIFileDump, overwrite an existing file rather than always appending.

9 years agolayers: Added mutex for APIDump[File] layers to guard prints.
Tobin Ehlis [Thu, 20 Nov 2014 19:18:45 +0000 (12:18 -0700)]
layers: Added mutex for APIDump[File] layers to guard prints.

9 years agolayers: Added Sampler details slot printout
Tobin Ehlis [Thu, 20 Nov 2014 17:48:56 +0000 (10:48 -0700)]
layers: Added Sampler details slot printout

9 years agolayers: Update DrawState to support all Gfx shader types and to shadow full Gfx Pipel...
Tobin Ehlis [Thu, 20 Nov 2014 16:49:17 +0000 (09:49 -0700)]
layers: Update DrawState to support all Gfx shader types and to shadow full Gfx Pipeline state

9 years agolayers: Struct printing improvements for "pNext" struct chains
Tobin Ehlis [Thu, 20 Nov 2014 13:38:50 +0000 (06:38 -0700)]
layers: Struct printing improvements for "pNext" struct chains

9 years agobuild: fix in-tree build
Chia-I Wu [Wed, 19 Nov 2014 15:05:04 +0000 (23:05 +0800)]
build: fix in-tree build

When building in-tree, layers/object_track.h may be removed because it was
also listed as a generated file.  This commit stops generating object_track.h
or any file in the source tree.  Instead, it adds ${CMAKE_CURRENT_SOURCE_DIR}
and ${CMAKE_CURRENT_BINARY_DIR} to the include directories.

9 years agobuild: do not pollute source tree with icd-dispatch-table.h
Chia-I Wu [Wed, 19 Nov 2014 14:55:33 +0000 (22:55 +0800)]
build: do not pollute source tree with icd-dispatch-table.h

Generate icd-dispatch-table.h in the binary directory and add the diretory to
ICD_INCLUDE_DIRS.

9 years agobuild: remove icd-dispatch-table.h generation from loader
Chia-I Wu [Wed, 19 Nov 2014 14:45:51 +0000 (22:45 +0800)]
build: remove icd-dispatch-table.h generation from loader

It was added by d43f9b6658a3cc2115fd9db118f6fd51acf09379 but it did not seem
to be needed.

9 years agolayers: Update MemTracker to support dbg Callbacks and a few bug fixes
Tobin Ehlis [Wed, 19 Nov 2014 23:19:28 +0000 (16:19 -0700)]
layers: Update MemTracker to support dbg Callbacks and a few bug fixes

MemTracker now handles creation of Image and Mem binding done by xglWsiX11CreatePresentableImage() call, and it also correctly clears a previous mem binding on object if one existed.

9 years agolayers: Fix API Dump to handle xglWsiX11CreatePresentableImage() which has 2 output...
Tobin Ehlis [Wed, 19 Nov 2014 22:52:46 +0000 (15:52 -0700)]
layers: Fix API Dump to handle xglWsiX11CreatePresentableImage() which has 2 output params.

9 years agolayers: Updated DrawState to support dbg callbacks
Tobin Ehlis [Tue, 18 Nov 2014 23:38:08 +0000 (16:38 -0700)]
layers: Updated DrawState to support dbg callbacks

9 years agoxgl: Ignore generated header files
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 20:26:22 +0000 (13:26 -0700)]
xgl: Ignore generated header files

9 years agoxgl: Update external revisions
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 19:08:29 +0000 (12:08 -0700)]
xgl: Update external revisions

9 years agolayers: Add flush to apidump to see output while debugging
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 17:40:29 +0000 (10:40 -0700)]
layers: Add flush to apidump to see output while debugging

9 years agolayers: Fix apidump buffer overruns
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 17:39:30 +0000 (10:39 -0700)]
layers: Fix apidump buffer overruns

9 years agodemo cube: Clean up event processing
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 18:28:09 +0000 (11:28 -0700)]
demo cube: Clean up event processing

Will now really wait for an event when paused.
Always update and render after checking for events

9 years agodemo: tri: Add window destroy processing
Courtney Goeltzenleuchter [Fri, 7 Nov 2014 22:17:03 +0000 (15:17 -0700)]
demo: tri: Add window destroy processing

9 years agodemo: cube: Process destroy window
Courtney Goeltzenleuchter [Thu, 6 Nov 2014 21:27:52 +0000 (14:27 -0700)]
demo: cube: Process destroy window

Demo was not exiting cleanly when the window close button
was clicked.
Found this solution on-line:
http://lists.freedesktop.org/pipermail/xcb/2010-December/006713.html

9 years agoxgl: Update README with current status
Courtney Goeltzenleuchter [Wed, 26 Nov 2014 16:56:28 +0000 (09:56 -0700)]
xgl: Update README with current status

9 years agolayers: Update ObjectTracker layer to be generated and support callbacks
Tobin Ehlis [Tue, 18 Nov 2014 18:28:33 +0000 (11:28 -0700)]
layers: Update ObjectTracker layer to be generated and support callbacks

Added some code to render_tests.cpp to support Dbg callbacks and ObjectTracker extensions, but code is #defined off by default.

9 years agolayers: Updated Object Tracker to support callbacks and extensions
Tobin Ehlis [Fri, 14 Nov 2014 20:01:02 +0000 (13:01 -0700)]
layers: Updated Object Tracker to support callbacks and extensions

9 years agoMake the Dbg xgl global calls use dispatch table for layer support
Jon Ashburn [Fri, 14 Nov 2014 16:52:42 +0000 (09:52 -0700)]
Make the Dbg xgl global calls  use dispatch table for layer support

xglDbgRegisterMsgCallbacks, xglDbgUnregisterMsgCallbacks,
xglDbgSetGlobalOptions  dispatched via dispatch table so layers can
intercept these calls.  Also add support for these calls being dispatched
to different icd functions based on gpu  for icd's which may want different
functions per gpu.

9 years agolayers: Update ObjTracker to track each object type separately and report obj count...
Tobin Ehlis [Thu, 13 Nov 2014 20:31:10 +0000 (13:31 -0700)]
layers: Update ObjTracker to track each object type separately and report obj count status

9 years agolayers: Correctly set generic_layer.c as generated in CMakeLists.txt
Tobin Ehlis [Wed, 12 Nov 2014 23:02:46 +0000 (16:02 -0700)]
layers: Correctly set generic_layer.c as generated in CMakeLists.txt

9 years agolayers: Include print helper file dependencies for MemTracker and DrawState layers
Tobin Ehlis [Wed, 12 Nov 2014 22:21:03 +0000 (15:21 -0700)]
layers: Include print helper file dependencies for MemTracker and DrawState layers

9 years agolayers: Make APIDumpFile layer fully generated
Tobin Ehlis [Wed, 12 Nov 2014 20:11:15 +0000 (13:11 -0700)]
layers: Make APIDumpFile layer fully generated

9 years agolayers: Use xgl-layer-generate.py to generate the generic layer
Tobin Ehlis [Wed, 12 Nov 2014 18:47:07 +0000 (11:47 -0700)]
layers: Use xgl-layer-generate.py to generate the generic layer

9 years agolayers: Updated APIDump Layer and made it fully generated.
Tobin Ehlis [Wed, 12 Nov 2014 00:28:22 +0000 (17:28 -0700)]
layers: Updated APIDump Layer and made it fully generated.

9 years agolayers: Improve handling of printing embedded structs in generated string helper...
Tobin Ehlis [Tue, 11 Nov 2014 19:28:12 +0000 (12:28 -0700)]
layers: Improve handling of printing embedded structs in generated string helper functions.

9 years agolayers: Restore dynamic malloc fix in xgl-helper.py
Tobin Ehlis [Tue, 11 Nov 2014 15:00:58 +0000 (08:00 -0700)]
layers: Restore dynamic malloc fix in xgl-helper.py

9 years agolayers: Update xglWsiX11GetMSC interface in layers
Tobin Ehlis [Tue, 11 Nov 2014 15:00:58 +0000 (08:00 -0700)]
layers: Update xglWsiX11GetMSC interface in layers

9 years agolayers: Actual auto-gen of print helper code used by layers
Tobin Ehlis [Mon, 10 Nov 2014 23:03:19 +0000 (16:03 -0700)]
layers: Actual auto-gen of print helper code used by layers

9 years agoupdate to the latest vertex fetch proposal
Chia-I Wu [Sat, 8 Nov 2014 02:48:20 +0000 (10:48 +0800)]
update to the latest vertex fetch proposal

The main difference is that XGL_SLOT_VERTEX_INPUT is replaced by
xglCmdBindVertexData.  This actually simplifies the driver, which can be seen
with:

 $ git show icd/intel/

The new proposal also adds some new formats, but they are ignored for now
because they are marked TBD.

9 years agodemos: add a fence for presentation
Chia-I Wu [Fri, 7 Nov 2014 06:30:34 +0000 (14:30 +0800)]
demos: add a fence for presentation

After xglWsiX11QueuePresent(), the image is scheduled for copying.  We should
not render to it until the copying is done.  Otherwise, depending on how the
DDX works, flickering or GPU hangs may be expected.

Add and wait on the fence before submitting the command buffer.  This ensures
the DDX is done with the image.   Set async to true to run as fast as
possible.

9 years agowsi_x11: add xcb_window_t to xglWsiX11GetMSC()
Chia-I Wu [Fri, 7 Nov 2014 05:33:45 +0000 (13:33 +0800)]
wsi_x11: add xcb_window_t to xglWsiX11GetMSC()

To match XGL_WSI_X11_PRESENT_INFO and allow xcb_crtc_id to be XCB_NONE.

9 years agoAdded u_popcount to abstract __builtin_popcount.
GregF [Tue, 11 Nov 2014 00:26:41 +0000 (17:26 -0700)]
Added u_popcount to abstract __builtin_popcount.

9 years agolayers: Added APIFileDump and MemTracker layers and fix DrawState
Tobin Ehlis [Mon, 10 Nov 2014 19:29:12 +0000 (12:29 -0700)]
layers: Added APIFileDump and MemTracker layers and fix DrawState

9 years agolayers: Fix memory overrun issue causing segfault.
Courtney Goeltzenleuchter [Mon, 10 Nov 2014 18:21:04 +0000 (11:21 -0700)]
layers: Fix memory overrun issue causing segfault.

9 years agoMisc. cleanup
Courtney Goeltzenleuchter [Mon, 3 Nov 2014 01:50:52 +0000 (18:50 -0700)]
Misc. cleanup

9 years agoUpdate Intel Driver README
JensOwen [Sat, 1 Nov 2014 20:05:50 +0000 (14:05 -0600)]
Update Intel Driver README

Update Intel Driver README and add a specific README for the compiler

9 years agoformatting
JensOwen [Sat, 1 Nov 2014 19:19:54 +0000 (13:19 -0600)]
formatting

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

9 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

9 years agocheckpoint: Adding GLSL compiler extension
Courtney Goeltzenleuchter [Sat, 4 Oct 2014 00:05:10 +0000 (18:05 -0600)]
checkpoint: Adding GLSL compiler extension

9 years agocmake: Lift common glslang definitions up to main CMakeLists
Courtney Goeltzenleuchter [Fri, 3 Oct 2014 21:34:53 +0000 (15:34 -0600)]
cmake: Lift common glslang definitions up to main CMakeLists

9 years agocompiler: C linkage for icd alloc and free
Cody Northrop [Thu, 25 Sep 2014 20:00:32 +0000 (14:00 -0600)]
compiler: C linkage for icd alloc and free

9 years agolayers: Update object tracker to account for Memory alloc/free
Tobin Ehlis [Tue, 28 Oct 2014 15:19:13 +0000 (09:19 -0600)]
layers: Update object tracker to account for Memory alloc/free

9 years agolayers: Verify that slot binding is compatible with shader mapping
Tobin Ehlis [Mon, 27 Oct 2014 23:12:54 +0000 (17:12 -0600)]
layers: Verify that slot binding is compatible with shader mapping

9 years agoBug fixes and enhancements to draw_state.c
Tobin Ehlis [Mon, 27 Oct 2014 20:53:17 +0000 (14:53 -0600)]
Bug fixes and enhancements to draw_state.c

9 years agoLayers: Change Basic layer to implement an extension and wrap GetExtension
Jon Ashburn [Fri, 24 Oct 2014 21:57:32 +0000 (15:57 -0600)]
Layers: Change Basic layer to implement an extension  and wrap GetExtension

9 years agoLoader: GPA fixes and also properly insert wrapped gpu objs into chain
Jon Ashburn [Fri, 24 Oct 2014 21:48:55 +0000 (15:48 -0600)]
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.

9 years agoBug fixes for draw_state.c layer
Tobin Ehlis [Fri, 24 Oct 2014 19:03:56 +0000 (13:03 -0600)]
Bug fixes for draw_state.c layer

9 years agoInitial version of draw state layer
Tobin Ehlis [Fri, 24 Oct 2014 18:01:45 +0000 (12:01 -0600)]
Initial version of draw state layer

Prints out Descriptor Set state at the time of Draw.

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 agolayers: update documentation
Jon Ashburn [Thu, 23 Oct 2014 16:59:23 +0000 (10:59 -0600)]
layers: update documentation

9 years agoLoader: Fix Seg fault when layers not activated via env var
Jon Ashburn [Thu, 23 Oct 2014 16:29:09 +0000 (10:29 -0600)]
Loader: Fix Seg fault when layers not activated via env var

9 years agolayers : Updates to layers README
Tobin Ehlis [Thu, 23 Oct 2014 14:44:44 +0000 (08:44 -0600)]
layers : Updates to layers README