platform/upstream/Vulkan-Tools.git
9 years agoicd: Add shader IL header
Courtney Goeltzenleuchter [Tue, 19 Aug 2014 17:43:21 +0000 (11:43 -0600)]
icd: Add shader IL header

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

9 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

9 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

9 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

9 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

9 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

9 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

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

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

9 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

9 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().

9 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

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

9 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

9 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

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

9 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}

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

9 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

9 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

9 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

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

9 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

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

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

9 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

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

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

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

9 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

9 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

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

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

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

9 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

9 years agoxgl-generate: add a script for code generation
Chia-I Wu [Fri, 1 Aug 2014 03:19:52 +0000 (11:19 +0800)]
xgl-generate: add a script for code generation

9 years agoadd a terse xglDbg.h
Chia-I Wu [Fri, 1 Aug 2014 03:18:21 +0000 (11:18 +0800)]
add a terse xglDbg.h

Based on mantleDbg.h.

10 years agoxgl: Fix typos
Courtney Goeltzenleuchter [Thu, 24 Jul 2014 23:34:00 +0000 (17:34 -0600)]
xgl: Fix typos

10 years agoStarting to build framework.
Courtney Goeltzenleuchter [Thu, 24 Jul 2014 14:36:15 +0000 (08:36 -0600)]
Starting to build framework.