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

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

10 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

10 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

10 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

10 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

10 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

10 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

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

10 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

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

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

10 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

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

10 years agoMore formated struct printing for API Dump
Tobin Ehlis [Thu, 23 Oct 2014 14:19:47 +0000 (08:19 -0600)]
More formated struct printing for API Dump

10 years agoFix memory leaks in loader related to layers.
Jon Ashburn [Thu, 23 Oct 2014 03:15:26 +0000 (21:15 -0600)]
Fix memory leaks in loader  related to layers.

10 years agoMake layer activation via CreateDevice struct or env variable
Jon Ashburn [Thu, 23 Oct 2014 00:13:16 +0000 (18:13 -0600)]
Make layer activation via CreateDevice struct or env variable

Also finish making all activated layers per icd and per gpu.

10 years agoBetter memory management in api_dump layer and struct print helper
Tobin Ehlis [Wed, 22 Oct 2014 21:13:53 +0000 (15:13 -0600)]
Better memory management in api_dump layer and struct print helper

10 years agoLoader: fix dispatch table initialization to handle multiple layers
Jon Ashburn [Wed, 22 Oct 2014 18:42:13 +0000 (12:42 -0600)]
Loader: fix dispatch table initialization to handle  multiple layers

10 years agoImproved API Dump and OBJ Track layers
Tobin Ehlis [Wed, 22 Oct 2014 15:06:33 +0000 (09:06 -0600)]
Improved API Dump and OBJ Track layers

Added generator script just for layers that generates API Dump and Object Tracker layers.  Improved output of API Dump layer.

10 years agoInitial layer to dump api calls
Tobin Ehlis [Tue, 21 Oct 2014 16:47:45 +0000 (10:47 -0600)]
Initial layer to dump api calls

10 years agoAdded object_track.c layer and include cmake step to build libXGLLayerObjectTrack.so
Tobin Ehlis [Mon, 20 Oct 2014 22:50:21 +0000 (16:50 -0600)]
Added object_track.c layer and include cmake step to build libXGLLayerObjectTrack.so

10 years agoChange GetProcAddr function signature to use XGL types.
Jon Ashburn [Fri, 17 Oct 2014 21:31:22 +0000 (15:31 -0600)]
Change GetProcAddr  function signature to use XGL types.

Fix bug in GPA for basic_plugin.c .

10 years agoMake layer activation per icd in loader and gets deactivated.
Jon Ashburn [Fri, 17 Oct 2014 21:09:07 +0000 (15:09 -0600)]
Make layer activation per icd in loader  and gets deactivated.

Fixes issue where multiple xglInitAndEnumerate were causing the layer
activation to fail  and dispatch table setup in loader to fail.

10 years agoAdd function to set an icd's dispatch table for subsequently created objects.
Jon Ashburn [Thu, 16 Oct 2014 21:48:50 +0000 (15:48 -0600)]
Add function to set an icd's dispatch table for subsequently created objects.

With layers the loaders dispatch table is used instead of the drivers dispatch
table.  The gpu objects were reflecting this change but not subsequent objects.
Tell the icd driver about the loader's dispatch table so it will use it on
object creation rather than the default  driver dispatch table.

10 years agoAdd xglEnumerateLayers function including support in layers.
Jon Ashburn [Wed, 15 Oct 2014 21:30:23 +0000 (15:30 -0600)]
Add xglEnumerateLayers function including support in layers.

Also add this call to xglbase (init.cpp) test.

10 years agoFixes to Basic and Generic layers to work singly with LD_PRELOAD
Jon Ashburn [Wed, 15 Oct 2014 18:08:33 +0000 (12:08 -0600)]
Fixes to Basic and Generic layers to work singly with LD_PRELOAD

10 years agoLayers initial prototype.
Jon Ashburn [Wed, 15 Oct 2014 01:15:22 +0000 (19:15 -0600)]
Layers initial prototype.

Includes  an auto generated layer (GenericLayer) that wraps  all api calls.
Includes a basic handwritten layer (basicLayer)  that wraps a few apis.
Adds xglGetProcAddr as a new api, which is used to chain layers together.
All layers and loader implement  a dispatch table.

10 years agoloader: initialize memory
Courtney Goeltzenleuchter [Tue, 28 Oct 2014 16:29:27 +0000 (10:29 -0600)]
loader: initialize memory

uninitialized use from by valgrind

10 years agoicd: add icd_format_is_equal()
Chia-I Wu [Mon, 20 Oct 2014 05:50:43 +0000 (13:50 +0800)]
icd: add icd_format_is_equal()

It returns true when the formats are equal.

10 years agointel: fix memory leak spotted by valgrind
Courtney Goeltzenleuchter [Fri, 26 Sep 2014 00:13:21 +0000 (18:13 -0600)]
intel: fix memory leak spotted by valgrind

10 years agoicd: Fix incorrect return type
Courtney Goeltzenleuchter [Wed, 15 Oct 2014 00:14:31 +0000 (18:14 -0600)]
icd: Fix incorrect return type

10 years agoFix loader icd_scan to Null terminate strings
Jon Ashburn [Fri, 3 Oct 2014 22:31:35 +0000 (16:31 -0600)]
Fix loader icd_scan to Null terminate strings

10 years agoinclude: update xgl.h with FF vertex fetch
Chia-I Wu [Mon, 6 Oct 2014 07:07:25 +0000 (15:07 +0800)]
include: update xgl.h with FF vertex fetch

https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/proposals/IMG/xgl_vertex_input_description2_img.h

10 years agoicd: add icd_format_get_channel_count
Chia-I Wu [Wed, 8 Oct 2014 01:12:58 +0000 (09:12 +0800)]
icd: add icd_format_get_channel_count

10 years agoAdded graphiviz dot and png files to visualize some API details
Tobin Ehlis [Mon, 6 Oct 2014 15:07:53 +0000 (09:07 -0600)]
Added graphiviz dot and png files to visualize some API details

10 years agoadd stubs for XGL_WSI_X11
Chia-I Wu [Tue, 23 Sep 2014 02:37:23 +0000 (10:37 +0800)]
add stubs for XGL_WSI_X11

10 years agoinclude: add preliminary XGL_WSI_X11 proposal
Chia-I Wu [Tue, 23 Sep 2014 02:37:08 +0000 (10:37 +0800)]
include: add preliminary XGL_WSI_X11 proposal

It is built around DRI3 and Present.

10 years agotidy up the build system a bit
Chia-I Wu [Thu, 18 Sep 2014 09:05:09 +0000 (17:05 +0800)]
tidy up the build system a bit

10 years agodelete GitSHA1.c generation
Chia-I Wu [Thu, 18 Sep 2014 08:58:27 +0000 (16:58 +0800)]
delete GitSHA1.c generation

It is unused.  Could be revived anytime if found useful.

10 years agoicd: add an API to scan Linux DRM subsystem
Chia-I Wu [Mon, 15 Sep 2014 05:08:49 +0000 (13:08 +0800)]
icd: add an API to scan Linux DRM subsystem

It differs from the scanner in intel ICD in that both legacy (primary) nodes
and render nodes are supported.  And it does not open() any of them.

10 years agoxgl-generate: do not hardcode #include's
Chia-I Wu [Sat, 13 Sep 2014 05:36:06 +0000 (13:36 +0800)]
xgl-generate: do not hardcode #include's

Add core_headers to xgl.py and use it to generate #include's

10 years agoremove XGLConfig.h.in
Chia-I Wu [Sat, 13 Sep 2014 05:18:47 +0000 (13:18 +0800)]
remove XGLConfig.h.in

Unused.

10 years agoxgl: Remove mantle headers
Courtney Goeltzenleuchter [Thu, 11 Sep 2014 18:51:27 +0000 (12:51 -0600)]
xgl: Remove mantle headers

10 years agoicd: add u_uif
Chia-I Wu [Mon, 8 Sep 2014 16:23:07 +0000 (00:23 +0800)]
icd: add u_uif

For bit-preserving uint32_t to float type casting.

10 years agoupdate copyright information
Chia-I Wu [Tue, 2 Sep 2014 00:32:09 +0000 (08:32 +0800)]
update copyright information

To my best knowledge.

10 years agoxgl: Add build instructions
Courtney Goeltzenleuchter [Tue, 2 Sep 2014 00:05:45 +0000 (18:05 -0600)]
xgl: Add build instructions

10 years agoxgl: Add project readme
Courtney Goeltzenleuchter [Mon, 1 Sep 2014 23:18:57 +0000 (17:18 -0600)]
xgl: Add project readme

10 years agoadd a top-level .gitignore
Chia-I Wu [Mon, 1 Sep 2014 01:27:08 +0000 (09:27 +0800)]
add a top-level .gitignore

10 years agoicd: remove generated icd-dispatch-table.h
Chia-I Wu [Fri, 29 Aug 2014 01:15:43 +0000 (09:15 +0800)]
icd: remove generated icd-dispatch-table.h

Added by accident in 814cd2969bc42056edebd733f55f06ebf1d2358f.

10 years agointel: Use single PSO command buffer
Courtney Goeltzenleuchter [Thu, 28 Aug 2014 19:16:27 +0000 (13:16 -0600)]
intel: Use single PSO command buffer

10 years agoicd: rename and prefix shader_il.h
Chia-I Wu [Thu, 28 Aug 2014 03:56:29 +0000 (11:56 +0800)]
icd: rename and prefix shader_il.h

Rename shader_il.h to icd-bil.h, and make it more C compatible.  Prefix
everything with icd_.

10 years agointel: Add CreateShader
Courtney Goeltzenleuchter [Tue, 19 Aug 2014 17:52:02 +0000 (11:52 -0600)]
intel: Add CreateShader

10 years agoicd: Add shader IL header
Courtney Goeltzenleuchter [Tue, 19 Aug 2014 17:43:21 +0000 (11:43 -0600)]
icd: Add shader IL header

10 years agoxgl: Fix typo for IA_PIPELINE sType.
Courtney Goeltzenleuchter [Fri, 15 Aug 2014 20:54:58 +0000 (14:54 -0600)]
xgl: Fix typo for IA_PIPELINE sType.

10 years agoicd: add more utils for working with floats
Chia-I Wu [Mon, 18 Aug 2014 06:39:31 +0000 (14:39 +0800)]
icd: add more utils for working with floats

10 years agoicd: add common format functions
Chia-I Wu [Sat, 16 Aug 2014 04:46:32 +0000 (12:46 +0800)]
icd: add common format functions

10 years agoicd: add common utility functions
Chia-I Wu [Sat, 16 Aug 2014 04:43:53 +0000 (12:43 +0800)]
icd: add common utility functions

10 years agoicd: add a note about thread safety
Chia-I Wu [Wed, 6 Aug 2014 04:46:51 +0000 (12:46 +0800)]
icd: add a note about thread safety

10 years agoloader: short cut when init with maxGpus equal to 0
Chia-I Wu [Wed, 6 Aug 2014 04:17:04 +0000 (12:17 +0800)]
loader: short cut when init with maxGpus equal to 0

10 years agoicd: fix driver reinit without alloc cb
Chia-I Wu [Wed, 6 Aug 2014 04:08:44 +0000 (12:08 +0800)]
icd: fix driver reinit without alloc cb

10 years agointel: adapt intel_winsys for our needs
Chia-I Wu [Tue, 5 Aug 2014 06:22:03 +0000 (14:22 +0800)]
intel: adapt intel_winsys for our needs

No mutex.  Always associate a intel_winsys with a hardware context.

10 years agoicd: assign each allocator a unique id
Chia-I Wu [Tue, 5 Aug 2014 02:17:50 +0000 (10:17 +0800)]
icd: assign each allocator a unique id

It can be used to determine if an object is allocated by the current
allocator.

10 years agoheader: add XGL_DBG_OBJECT_TYPE
Chia-I Wu [Tue, 5 Aug 2014 06:50:53 +0000 (14:50 +0800)]
header: add XGL_DBG_OBJECT_TYPE

10 years agoloader: refactor loader_icd_scan()
Chia-I Wu [Mon, 4 Aug 2014 03:18:20 +0000 (11:18 +0800)]
loader: refactor loader_icd_scan()

Move ICD loading to loader_icd_add().

10 years agoloader: fix out-of-tree builds
Chia-I Wu [Mon, 4 Aug 2014 03:08:49 +0000 (11:08 +0800)]
loader: fix out-of-tree builds

10 years agointel: add dummy dispatch tables
Chia-I Wu [Mon, 4 Aug 2014 02:08:08 +0000 (10:08 +0800)]
intel: add dummy dispatch tables

Add two icd_dispatch_table both dispatching to dummy functions.  We wil
gradually replace the dummy functions by real ones.

10 years agoadd and deal with -fvisibility=hidden everywhere
Chia-I Wu [Mon, 4 Aug 2014 00:03:57 +0000 (08:03 +0800)]
add and deal with -fvisibility=hidden everywhere

10 years agocommon: add common code for all drivers
Chia-I Wu [Sun, 3 Aug 2014 01:55:18 +0000 (09:55 +0800)]
common: add common code for all drivers

The common code includes

 - XGL API except xglInitAndEnumerateGpus
 - helper and utility functions

10 years agocmake: -Werror -Wextra -Wno...
Chia-I Wu [Sun, 3 Aug 2014 23:31:46 +0000 (07:31 +0800)]
cmake: -Werror -Wextra -Wno...

10 years agoloader: ignore __icd{Load,Unload}
Chia-I Wu [Sun, 3 Aug 2014 01:53:46 +0000 (09:53 +0800)]
loader: ignore __icd{Load,Unload}

10 years agorename drivers/ to icd/
Chia-I Wu [Sun, 3 Aug 2014 01:50:47 +0000 (09:50 +0800)]
rename drivers/ to icd/

10 years agoloader: let cmake generate the source file
Chia-I Wu [Sun, 3 Aug 2014 01:31:26 +0000 (09:31 +0800)]
loader: let cmake generate the source file

10 years agoxgl-generate: add _generate_icd_dispatch_entrypoints to Subcommand
Chia-I Wu [Sat, 2 Aug 2014 15:49:43 +0000 (23:49 +0800)]
xgl-generate: add _generate_icd_dispatch_entrypoints to Subcommand

10 years agocmake: find libdrm with pkg-config
Chia-I Wu [Sat, 2 Aug 2014 01:14:28 +0000 (09:14 +0800)]
cmake: find libdrm with pkg-config

10 years agoi965: Add GetGpuInfo function
Courtney Goeltzenleuchter [Sat, 2 Aug 2014 00:10:31 +0000 (18:10 -0600)]
i965: Add GetGpuInfo function

10 years agointel: Add support for git ID in version string
Courtney Goeltzenleuchter [Sat, 2 Aug 2014 00:06:40 +0000 (18:06 -0600)]
intel: Add support for git ID in version string

10 years agoloader: Scans for libXGL libraries.
Courtney Goeltzenleuchter [Fri, 1 Aug 2014 20:18:11 +0000 (14:18 -0600)]
loader: Scans for libXGL libraries.

loader_icd_scan now scans the system default libraries
/usr/lib/i386-linux-gnu/xgl:/usr/lib/x86_64-linux-gnu/xgl
or the LIBXGL_DRIVERS_PATH environment variable looking
for a file of the form libXGL_. When found it will try to
dlopen the library and call the initialization and DbgRegister
calls to setup the ICD. The ICD is responsible for figuring out
what, if any, HW is on the system that it can manage.

10 years agoxgl: add verbose cmake option
Courtney Goeltzenleuchter [Fri, 1 Aug 2014 19:01:47 +0000 (13:01 -0600)]
xgl: add verbose cmake option

10 years agoi965: Add Device ID to name translation file
Courtney Goeltzenleuchter [Sat, 2 Aug 2014 00:11:51 +0000 (18:11 -0600)]
i965: Add Device ID to name translation file

10 years agoi965: Add Intel driver ICD
Courtney Goeltzenleuchter [Fri, 1 Aug 2014 18:44:23 +0000 (12:44 -0600)]
i965: Add Intel driver ICD

This driver will work with Ivybridge and Haswell graphics.

10 years agoxgl: remove unused driver files
Courtney Goeltzenleuchter [Fri, 1 Aug 2014 18:43:08 +0000 (12:43 -0600)]
xgl: remove unused driver files

10 years agomain: silence warnings
Chia-I Wu [Fri, 1 Aug 2014 07:41:08 +0000 (15:41 +0800)]
main: silence warnings

Use generated xglapi.c for now to silence warnings.

10 years agoxgl-generate: add pretty-dummy subcommand
Chia-I Wu [Fri, 1 Aug 2014 07:30:31 +0000 (15:30 +0800)]
xgl-generate: add pretty-dummy subcommand

10 years agocmake: set -std=c99 -Wall
Chia-I Wu [Fri, 1 Aug 2014 07:31:12 +0000 (15:31 +0800)]
cmake: set -std=c99 -Wall

10 years agoxgl-generate: improve constness
Chia-I Wu [Fri, 1 Aug 2014 06:47:14 +0000 (14:47 +0800)]
xgl-generate: improve constness

The dispatch table pointer embedded in the XGL object cannot be modified.

10 years agoxgl-generate: add is_dispatchable()
Chia-I Wu [Fri, 1 Aug 2014 06:44:16 +0000 (14:44 +0800)]
xgl-generate: add is_dispatchable()

Return true for functions that have access to the ICD dispatch table.

10 years agoxgl-generate: move _generate_icd_dispatch_table to Subcommand
Chia-I Wu [Fri, 1 Aug 2014 03:58:32 +0000 (11:58 +0800)]
xgl-generate: move _generate_icd_dispatch_table to Subcommand

To make it available for future subcommands.

10 years agoloader: add a generic ICD loader
Chia-I Wu [Fri, 1 Aug 2014 03:21:23 +0000 (11:21 +0800)]
loader: add a generic ICD loader