platform/upstream/Vulkan-LoaderAndValidationLayers.git
9 years agointel: fix DEPTH_STENCIL_STATE on Gen6
Chia-I Wu [Sat, 24 Jan 2015 04:49:28 +0000 (12:49 +0800)]
intel: fix DEPTH_STENCIL_STATE on Gen6

pipeline_build_depth_stencil() should be called on all Gens.

9 years agointel: set stencil masks for front and back faces
Courtney Goeltzenleuchter [Fri, 23 Jan 2015 22:21:37 +0000 (15:21 -0700)]
intel: set stencil masks for front and back faces

9 years agoBIL: Update to support descriptor set GLSL features
Courtney Goeltzenleuchter [Fri, 23 Jan 2015 21:00:52 +0000 (14:00 -0700)]
BIL: Update to support descriptor set GLSL features

9 years agoxgl: Fix syntax error
Courtney Goeltzenleuchter [Fri, 23 Jan 2015 18:47:02 +0000 (11:47 -0700)]
xgl: Fix syntax error

9 years agoxgl: resource transition integrated, update xgl.h version
Mike Stroyan [Mon, 19 Jan 2015 18:37:12 +0000 (11:37 -0700)]
xgl: resource transition integrated, update xgl.h version

9 years agoxgl: Resource transition proposal from Bug 12904.
Mike Stroyan [Thu, 4 Dec 2014 11:08:39 +0000 (11:08 +0000)]
xgl: Resource transition proposal from Bug 12904.

Added resource transition proposal from Bug 12904.
Updated function prototypes.
Added XGL_IMAGE_CREATE_MUTABLE_FORMAT_BIT based on Intel's request.
Unless this flag is specified, image views created from the image must match the base format.
xgl.py: changes for resource tracking
loader: changes for resource tracking
icd: changes for resource tracking
tests: changes for resource tracking
demos: changes for resource tracking

9 years agoxgl: Dynamic State complete, update header version
Courtney Goeltzenleuchter [Wed, 21 Jan 2015 00:54:08 +0000 (17:54 -0700)]
xgl: Dynamic State complete, update header version

9 years agodriver:implement changes for Dynamic State
Tony Barbour [Fri, 16 Jan 2015 21:27:35 +0000 (14:27 -0700)]
driver:implement changes for Dynamic State

9 years agointel: Fix undefined references
Courtney Goeltzenleuchter [Fri, 23 Jan 2015 21:27:58 +0000 (14:27 -0700)]
intel: Fix undefined references

9 years agoRemove unnecessary semicolon
Tony Barbour [Fri, 23 Jan 2015 18:48:13 +0000 (11:48 -0700)]
Remove unnecessary semicolon

9 years agoIntel: Initialize stencil_ref before using
Tony Barbour [Fri, 23 Jan 2015 01:01:18 +0000 (18:01 -0700)]
Intel: Initialize stencil_ref before using

9 years agotests:Fix memory leak
Tony Barbour [Tue, 20 Jan 2015 00:58:15 +0000 (17:58 -0700)]
tests:Fix memory leak

9 years agoxgl: Buffer Object integrated, update xgl.h version
Courtney Goeltzenleuchter [Fri, 16 Jan 2015 00:19:45 +0000 (17:19 -0700)]
xgl: Buffer Object integrated, update xgl.h version

9 years agoupdate for buffer object changes
Chia-I Wu [Wed, 31 Dec 2014 23:55:04 +0000 (07:55 +0800)]
update for buffer object changes

9 years agoxgl: Tiler updates complete, Update header version
Courtney Goeltzenleuchter [Thu, 15 Jan 2015 20:02:34 +0000 (13:02 -0700)]
xgl: Tiler updates complete, Update header version

9 years agomisc: Fix tiler rebase in driver, tests, include
Jeremy Hayes [Wed, 14 Jan 2015 23:17:08 +0000 (16:17 -0700)]
misc: Fix tiler rebase in driver, tests, include

9 years agoglave: Make tiler GPU changes work for tracing and replaying
Jon Ashburn [Sat, 3 Jan 2015 01:28:26 +0000 (18:28 -0700)]
glave: Make tiler GPU changes work for tracing and replaying

The tracing  and replay code gen didn't handle all the special cases
for the removal of CmdBindAttachments() and the addition of nested structures
with pointers and objects  in the three APIs: CreateFramebuffer,
CreateRenderPass, BeginCommandBuffer.  It now does!

9 years agotests: Remove CmdBindAttachments() for Tiler Gpus
Jon Ashburn [Sat, 3 Jan 2015 01:27:14 +0000 (18:27 -0700)]
tests: Remove CmdBindAttachments() for Tiler Gpus

9 years agodemos: Remove CmdBindAttachments() for tiler Gpus
Jon Ashburn [Sat, 3 Jan 2015 01:24:05 +0000 (18:24 -0700)]
demos: Remove CmdBindAttachments() for tiler Gpus

9 years agolayers: Remove CmdBindAttachment() for tiler GPUs
Jon Ashburn [Sat, 3 Jan 2015 01:22:38 +0000 (18:22 -0700)]
layers: Remove CmdBindAttachment() for tiler GPUs

9 years agointel: Remove CmdBindAttachments for tiler GPUs
Jon Ashburn [Fri, 9 Jan 2015 01:54:34 +0000 (18:54 -0700)]
intel: Remove CmdBindAttachments for tiler GPUs

Conflicts:
icd/intel/cmd.c
icd/intel/cmd_pipeline.c

9 years agoinclude: Remove CmdBindAttachments()
Jon Ashburn [Sat, 3 Jan 2015 01:15:22 +0000 (18:15 -0700)]
include: Remove CmdBindAttachments()

9 years agolayers: Update BeginCommandBuffer API for Tiler Gpus
Jon Ashburn [Thu, 1 Jan 2015 00:11:49 +0000 (17:11 -0700)]
layers: Update BeginCommandBuffer API for Tiler Gpus

9 years agotests: Update BeginCommandBuffer Api for Tiler GPUs
Jon Ashburn [Thu, 1 Jan 2015 00:10:47 +0000 (17:10 -0700)]
tests: Update BeginCommandBuffer Api for Tiler GPUs

9 years agodemos: Change BeginCommandBuffer for Tiler Gpus
Jon Ashburn [Thu, 1 Jan 2015 00:08:35 +0000 (17:08 -0700)]
demos: Change BeginCommandBuffer for Tiler Gpus

9 years agointel: Add render target attachments at BeginCommandBuffer for TilerGpus
Jon Ashburn [Fri, 9 Jan 2015 01:48:10 +0000 (18:48 -0700)]
intel: Add render target attachments at BeginCommandBuffer for TilerGpus

Still allow for binding via CmdBindAttachments as the default if no
RENDER_PASS object is specified at begin time.  This allows for easier testing.

9 years agoinclude: xglBeginCommandBuffer API changed for Tiler Gpus
Jon Ashburn [Wed, 31 Dec 2014 23:56:13 +0000 (16:56 -0700)]
include: xglBeginCommandBuffer API changed for Tiler Gpus

Bump version patch number also.

9 years agoglave: Add support for new APIs to support Tiler Gpus
Jon Ashburn [Wed, 31 Dec 2014 18:30:53 +0000 (11:30 -0700)]
glave: Add support for new APIs to support Tiler Gpus

Adds support for xglCreateFramebuffer and xglCreateRenderPass

9 years agointel: Add new APIs for Tiler GPU support
Jon Ashburn [Wed, 24 Dec 2014 19:38:36 +0000 (12:38 -0700)]
intel: Add new APIs for Tiler GPU support

The new APIs create objects but don't do anything yet so they are just a shell.

9 years agoinclude: Add new API changes including structs/enums for Tiling GPU support
Jon Ashburn [Wed, 24 Dec 2014 19:09:06 +0000 (12:09 -0700)]
include: Add new API changes including structs/enums for Tiling GPU support

Omit changes for now that alter existing APIs: xglcmdBindAttachments and
xglBeginCommandBuffer

Bump the API version patch number, since we are diverging our version numbers
from the SVN  history. This is necessary since we are not implementing header
changes in the same order they were added to SVN header.

9 years agoXGL: Move to svn r28460.
Jeremy Hayes [Wed, 14 Jan 2015 21:58:37 +0000 (14:58 -0700)]
XGL: Move to svn r28460.

9 years agoxgl: Do not build layers or glave during xgl.h update
Courtney Goeltzenleuchter [Wed, 14 Jan 2015 22:21:10 +0000 (15:21 -0700)]
xgl: Do not build layers or glave during xgl.h update

9 years agocompiler: fix beginForLoop() in glass backend translator.
GregF [Tue, 27 Jan 2015 20:47:39 +0000 (13:47 -0700)]
compiler: fix beginForLoop() in glass backend translator.

Specifically, generate break with a compare that is opposite the compare
that would be used in the corresponding for loop.

9 years agocmake: Fix BIL overlay to glslang
Cody Northrop [Tue, 27 Jan 2015 18:31:41 +0000 (11:31 -0700)]
cmake: Fix BIL overlay to glslang

9 years agocompiler: Connect shader depth flags to driver
Cody Northrop [Mon, 26 Jan 2015 21:41:36 +0000 (14:41 -0700)]
compiler: Connect shader depth flags to driver

Populate the bits to inform driver of how the fragment shader
is going to use depth, including KILL.

Also slight change to send more information than was available
before, letting hardware know if new depth is GE/LE source depth.

v2: Create enum for depth mode for cleaner use.

9 years agointel: Add cmake external dependency checks
Cody Northrop [Fri, 23 Jan 2015 23:21:02 +0000 (16:21 -0700)]
intel: Add cmake external dependency checks

9 years agotests: Fix regresions in trace/replay from uninitialized parameters.
Jon Ashburn [Thu, 22 Jan 2015 20:33:15 +0000 (13:33 -0700)]
tests: Fix regresions in trace/replay  from uninitialized parameters.

9 years agointel: constify intel_gpu_exts
Chia-I Wu [Sun, 18 Jan 2015 08:02:55 +0000 (16:02 +0800)]
intel: constify intel_gpu_exts

9 years agointel: constify intel_base_magic
Chia-I Wu [Sun, 18 Jan 2015 03:32:18 +0000 (11:32 +0800)]
intel: constify intel_base_magic

9 years agointel: add -Wmissing-declarations
Chia-I Wu [Sun, 18 Jan 2015 03:22:13 +0000 (11:22 +0800)]
intel: add -Wmissing-declarations

Useful when a function is removed from the public API but the driver is not
updated.

9 years agointel: add -Wl,--exclude-libs,ALL
Chia-I Wu [Sun, 18 Jan 2015 03:11:42 +0000 (11:11 +0800)]
intel: add -Wl,--exclude-libs,ALL

Now only the public API (xgl*) is exported.

9 years agocmake: fix up gtest and set -fvisibility=hidden globally
Chia-I Wu [Sun, 18 Jan 2015 03:09:29 +0000 (11:09 +0800)]
cmake: fix up gtest and set -fvisibility=hidden globally

9 years agoicd: update glslang, bil and lunarglass
GregF [Tue, 20 Jan 2015 18:55:00 +0000 (11:55 -0700)]
icd: update glslang, bil and lunarglass

Move ahead with versions installed by update_external_sources.sh

9 years agoicd: Link ICD with -Bsymbolic
GregF [Tue, 20 Jan 2015 18:51:00 +0000 (11:51 -0700)]
icd: Link ICD with -Bsymbolic

We were previously linking with -Bsymbolic-functions, but this was not
sufficient as it caused glslang virtual function calls to still be linked
to rendersystemtest copy of glslang.

9 years agoinclude: set version to 0.22.1 for recent ABI changes
Jon Ashburn [Fri, 16 Jan 2015 16:48:37 +0000 (09:48 -0700)]
include: set version to 0.22.1 for recent ABI changes

While this branch is divereged from Khronos SVN sequence of xgl.h versions.
Any ABI change in this branch  should increment the patch number: XX.YY.ZZ++.
Glave relies on the xgl.h version number to track trace file compatibility.

9 years agoloader: Fix infinite loop on layer library scan if dlopen fails
Jon Ashburn [Fri, 16 Jan 2015 15:46:38 +0000 (08:46 -0700)]
loader: Fix infinite loop on layer library scan if dlopen fails

9 years agointel: fix undefined references
Chia-I Wu [Tue, 13 Jan 2015 04:06:03 +0000 (12:06 +0800)]
intel: fix undefined references

Add -Wl,-no-undefined and fix all linking errors (by commenting them out).

9 years agointel: Set gen7 stencil reference
Mike Stroyan [Thu, 15 Jan 2015 18:27:12 +0000 (11:27 -0700)]
intel: Set gen7 stencil reference

The stencil reference value for gen7 had uninitialized value.

9 years agointel: Set stencil read and write for backfaces
Mike Stroyan [Thu, 15 Jan 2015 00:39:35 +0000 (17:39 -0700)]
intel: Set stencil read and write for backfaces

The stencil read and write masks for backfaces need to be set separately.

9 years agoxgl.py: missing xgl prefix in XGL_LAYER_DISPATCH_TABLE
Chia-I Wu [Thu, 15 Jan 2015 20:55:47 +0000 (04:55 +0800)]
xgl.py: missing xgl prefix in XGL_LAYER_DISPATCH_TABLE

67ac8db7571aa07cdce3dcaa39102198639f52f1 is incomplete.

9 years agocompiler: signed/unsigned cast code review cleanup
GregF [Thu, 15 Jan 2015 00:44:50 +0000 (17:44 -0700)]
compiler: signed/unsigned cast code review cleanup

Of note, changed mk_ir_expression to glass_to_ir_expression and replaced
all unprotected uses of ir_expression. Also replace nested pair with
tuple.

9 years agocompiler: Add signed/unsigned casts to remainder of ops.
GregF [Wed, 14 Jan 2015 23:12:18 +0000 (16:12 -0700)]
compiler: Add signed/unsigned casts to remainder of ops.

9 years agoAdd signed/unsigned casting to backend translator.
GregF [Wed, 14 Jan 2015 01:32:53 +0000 (18:32 -0700)]
Add signed/unsigned casting to backend translator.

Specifically, make sure types of operands are consistent with ir_validation.
Types of operands determine the type of the operation, so these must be
correct. There were also issues of agreement between operands and between
operand and result. This fixes issues currently seen in rendersystemtests
and dota2, but there is still some additional fixes that will be needed for
some more obscure unsigned llvm operations.

9 years agolayers: Updated MemTracker to track per-region memory transition states for allocations
Tobin Ehlis [Wed, 14 Jan 2015 19:47:30 +0000 (12:47 -0700)]
layers: Updated MemTracker to track per-region memory transition states for allocations

9 years agolayers: Added per-region memory state tracking
Tobin Ehlis [Thu, 8 Jan 2015 22:22:32 +0000 (15:22 -0700)]
layers: Added per-region memory state tracking

Initially only tracking mem transitions. Need to validate these and still have further work with images.

9 years agolayers: Enhancements to MemTracker and DrawState
Tobin Ehlis [Thu, 8 Jan 2015 00:49:29 +0000 (17:49 -0700)]
layers: Enhancements to MemTracker and DrawState

DrawState flags error when Descriptor Set that hasn't had "EndUpdate" called is bound to cmd buffer.
Moved MemTracker struct defines to header.
Added State to memory objects and flag state transition errors at prepare time
Added CreateInfo for all object types that can be bound to memory

9 years agoRevert "layers: Fix generation of EnumerateLayers in APIDump"
Jon Ashburn [Wed, 14 Jan 2015 15:52:37 +0000 (08:52 -0700)]
Revert "layers: Fix generation of EnumerateLayers in APIDump"

This reverts commit 9c8e8a955eded8788a68c694cea11742e8d84690.

Stale generated code was the real issue.

9 years agolayers: Fix generation of EnumerateLayers in APIDump
Jon Ashburn [Tue, 13 Jan 2015 23:33:56 +0000 (16:33 -0700)]
layers: Fix generation of EnumerateLayers in APIDump

9 years agoxgl_helper: Eliminate compiler not used warning
Courtney Goeltzenleuchter [Tue, 13 Jan 2015 22:33:33 +0000 (15:33 -0700)]
xgl_helper: Eliminate compiler not used warning

Using static inline vs. static only prevents the compiler
from complaining that the functions have been defined but
not used.

9 years agolayers: Make sure we deref pointers to counts
Courtney Goeltzenleuchter [Tue, 13 Jan 2015 22:32:18 +0000 (15:32 -0700)]
layers: Make sure we deref pointers to counts

For functions that can return a count of elements, be sure to
dereference that pointer when looping over the array.

9 years agocompiler: clean up InfoLog prints
Cody Northrop [Mon, 12 Jan 2015 23:19:27 +0000 (16:19 -0700)]
compiler: clean up InfoLog prints

9 years agorender_test: Add std140 layout test
Cody Northrop [Wed, 17 Dec 2014 22:26:33 +0000 (15:26 -0700)]
render_test: Add std140 layout test

9 years agotranslator: Reinit interface when hoisting anon blocks
Cody Northrop [Wed, 17 Dec 2014 23:16:09 +0000 (16:16 -0700)]
translator: Reinit interface when hoisting anon blocks

9 years agointel: Set buffer format along with stride for UBO
Cody Northrop [Tue, 13 Jan 2015 19:13:46 +0000 (12:13 -0700)]
intel: Set buffer format along with stride for UBO

9 years agoRevert "intel: work around raw/structured buffers"
Cody Northrop [Tue, 13 Jan 2015 19:11:51 +0000 (12:11 -0700)]
Revert "intel: work around raw/structured buffers"

This reverts commit cf9554135ef9b4134320fec45fd2564f638871ca.

This doesn't work with how we're doing stride for UBOs, and won't
work when we move to new Buffer Object model.

9 years agoglave: update TODO
Peter Lohrmann [Tue, 13 Jan 2015 19:29:39 +0000 (11:29 -0800)]
glave: update TODO

* Auto-pause on validation layer messages is now supported
* Settings dialog has been added

9 years agoglvdebug_xgl: Add callbacks related to the replay starting, stopping, and finishing.
Peter Lohrmann [Tue, 13 Jan 2015 01:20:59 +0000 (17:20 -0800)]
glvdebug_xgl: Add callbacks related to the replay starting, stopping, and finishing.

* This provides a better user understanding as to what the UI is doing.

9 years agoglvdebug: Improve handling of replay return values.
Peter Lohrmann [Tue, 13 Jan 2015 01:18:01 +0000 (17:18 -0800)]
glvdebug: Improve handling of replay return values.

* Validation errors do not indicate that the packet failed to replay.
* BAD_RETURN not reports a warning that the replay has diverged from the trace.
* Validation and parameter errors are not reported, as any validation layers should be reporting them through a different channel.
* ERROR, INVALID_ID, and CALL_ERROR are reported as failures to replay a packet.

9 years agoglvdebug: Use WaitCursor when UI is selecting a packet index.
Peter Lohrmann [Tue, 13 Jan 2015 00:07:25 +0000 (16:07 -0800)]
glvdebug: Use WaitCursor when UI is selecting a packet index.

* Sometimes finding the API call can take a while (which is a perf issue that should probably be investigated), so put up the wait cursor to indicate to the user that something is still happening.

9 years agoglvdebug_xgl: Add settings to control printing and pausing on validation messages.
Peter Lohrmann [Mon, 12 Jan 2015 23:54:45 +0000 (15:54 -0800)]
glvdebug_xgl: Add settings to control printing and pausing on validation messages.

* Fix the debug_xgl settings so that they actually get initialized to their default values.
* Replace the placeholder setting with settings that allow to print and pause on driver / validation layer info, warning, and error messages.
* The new default is to ignore all info messages, but to print and pause on warnings and errors.

9 years agoglave: Improve parsing of BOOL settings to be case insensitive.
Peter Lohrmann [Mon, 12 Jan 2015 23:49:43 +0000 (15:49 -0800)]
glave: Improve parsing of BOOL settings to be case insensitive.

9 years agolayers: Fix APIDump param generation for Cpp versus C
Jon Ashburn [Tue, 13 Jan 2015 15:38:14 +0000 (08:38 -0700)]
layers: Fix APIDump param generation for Cpp versus C

Remanent from the merge of glave_integration.

9 years agoglvdebug: Limit which replay debug messages are printed and when the replay will...
Peter Lohrmann [Sat, 10 Jan 2015 00:43:44 +0000 (16:43 -0800)]
glvdebug: Limit which replay debug messages are printed and when the replay will pause due to debug messages.

* Info messages are NOT printed and will NOT be paused on.
* Warnings ARE printed and WILL be paused on.
* Errors ARE printed and WILL be paused on.
* Also moved when pause detection happens to AFTER the packet is replayed. this provides better correlation between when a debug message is printed and which line caused it. This also allows pausing on the final API call if it generated an error, warning, or info message.

9 years agoglvdebug: Replay now pauses automatically on any debug message output.
Peter Lohrmann [Sat, 10 Jan 2015 00:04:32 +0000 (16:04 -0800)]
glvdebug: Replay now pauses automatically on any debug message output.

* Will soon be controlled by a setting.

9 years agoglave: glvdebug now outputs debug messages from glvreplay_xgl.
Peter Lohrmann [Fri, 9 Jan 2015 23:57:53 +0000 (15:57 -0800)]
glave: glvdebug now outputs debug messages from glvreplay_xgl.

* Added a callback to the glvreplay plugin interface so that parent tools can choose how to report the debug output.
* Currently all error, warning, and info messages are printed to the Output window, but that will soon be controlled by a setting.

9 years agoglvreplay_xgl: Add 'EnableLayers' setting to control which XGL validation layers...
Peter Lohrmann [Fri, 9 Jan 2015 20:34:50 +0000 (12:34 -0800)]
glvreplay_xgl: Add 'EnableLayers' setting to control which XGL validation layers get enabled.

* The string is a comma separated list of layer names, defaulting to "Drawstate,ObjectTracker".
* Fix the way in which the settings are assigned to the default values, as the previous approach was attempting to delete the default 'EnableLayers' value, which would have caused problems eventually.

9 years agoglave: Fix declaration of glv_SettingGroup_reset_defaults(..)
Peter Lohrmann [Fri, 9 Jan 2015 20:33:02 +0000 (12:33 -0800)]
glave: Fix declaration of glv_SettingGroup_reset_defaults(..)

9 years agoglave: Update xgl debugger and replayer to include support for settings.
Peter Lohrmann [Fri, 9 Jan 2015 03:47:03 +0000 (19:47 -0800)]
glave: Update xgl debugger and replayer to include support for settings.

* glvreplay_xgl has a 'debugLevel' setting that is used to control the validation level.
* glvdebug_xgl has a 'supportDrawCalls' placeholder setting that is not currently hooked up.

9 years agoUpdate README.md
Peter Lohrmann [Fri, 9 Jan 2015 03:37:51 +0000 (19:37 -0800)]
Update README.md

Added -t flag specify the trace file to glvreplay.

9 years agoglave: Add comment to clarify what glv_SettingGroup_update(..) does.
Peter Lohrmann [Fri, 9 Jan 2015 00:25:21 +0000 (16:25 -0800)]
glave: Add comment to clarify what glv_SettingGroup_update(..) does.

9 years agoglvreplay: Add Settings support, format of passing the trace file now requires -t...
Peter Lohrmann [Thu, 8 Jan 2015 21:31:51 +0000 (13:31 -0800)]
glvreplay: Add Settings support, format of passing the trace file now requires -t or -- <filename>. Also added numloops to the command line options.

9 years agoglvdebug: Pass settings to the replayers. Will need to update glvreplay to support...
Peter Lohrmann [Thu, 8 Jan 2015 17:53:48 +0000 (09:53 -0800)]
glvdebug: Pass settings to the replayers. Will need to update glvreplay to support this as well.

9 years agoglvdebug: Pass settings to debug controllers. Adds two new entrypoints to a controlle...
Peter Lohrmann [Thu, 8 Jan 2015 01:18:27 +0000 (17:18 -0800)]
glvdebug: Pass settings to debug controllers. Adds two new entrypoints to a controller: GetSettings() and UpdateFromSettings(..)

9 years agoglave: minor changes to fix Windows compile errors and warnings
Peter Lohrmann [Wed, 7 Jan 2015 18:40:29 +0000 (10:40 -0800)]
glave: minor changes to fix Windows compile errors and warnings

9 years agoglvdebug: Improve Settings functionality.
Peter Lohrmann [Tue, 6 Jan 2015 23:06:35 +0000 (15:06 -0800)]
glvdebug: Improve Settings functionality.

Replace pType_data with a union of datatype pointers to make code more easily understandable.
Settings Dialog buttons are now "OK" and "Save & Apply" to better reflect what is actually happening.
Moving and resizing the main window now automatically update the in-memory settings.
Opening and closing a trace file will update the 'trace file to load' setting. This way the UI will automatically reload the trace file if it was still opened when the UI was closed.
Settings are now saved when the UI is closed.

9 years agoglave: Settings now supports 'merging' a SettingGroup into an array of groups.
Peter Lohrmann [Tue, 6 Jan 2015 00:35:54 +0000 (16:35 -0800)]
glave: Settings now supports 'merging' a SettingGroup into an array of groups.

This allows glvdebug (and other plugins) to merge their known settings into the array of loaded settings - thus ensuring that the loaded settings (and ultimately the settings file) will contain all known settings in addition to any that the user manually entered into the settings file.
This also ensures that on first-load, the Settings dialog will be populated with the UI's available settings.

9 years agoglvtrace: Removed unused local variable
Peter Lohrmann [Tue, 6 Jan 2015 00:35:47 +0000 (16:35 -0800)]
glvtrace: Removed unused local variable

9 years agoglvdebug: When settings are saved, apply the updates to the local settingGroup so...
Peter Lohrmann [Tue, 6 Jan 2015 00:33:53 +0000 (16:33 -0800)]
glvdebug: When settings are saved, apply the updates to the local settingGroup so that the UI can react to the updated settings.

9 years agoglave: Remove min() as this was conflicting with STL library
Jon Ashburn [Mon, 5 Jan 2015 20:45:26 +0000 (13:45 -0700)]
glave: Remove min()  as this was conflicting with STL library

9 years agoglvdebug: Add elipses to menus and buttons which bring up dialog boxes.
Peter Lohrmann [Mon, 5 Jan 2015 19:40:57 +0000 (11:40 -0800)]
glvdebug: Add elipses to menus and buttons which bring up dialog boxes.

9 years agoglvdebug: Fix build errors / warnings
Peter Lohrmann [Mon, 5 Jan 2015 19:39:21 +0000 (11:39 -0800)]
glvdebug: Fix build errors / warnings

9 years agoglvdebug: settings are now saved, loaded, and applied. Edits in the dialog box affect...
Peter Lohrmann [Mon, 5 Jan 2015 17:29:08 +0000 (09:29 -0800)]
glvdebug: settings are now saved, loaded, and applied. Edits in the dialog box affect the in-memory settings immediately, but are only stored to disk if the user clicks 'save' in the dialog box. Settings are not yet passed on to the tracer, replayer, or api-specific debug plugin.

9 years agoglvdebug: Initial support for a Settings Dialog (not fully functional).
Peter Lohrmann [Sat, 20 Dec 2014 00:14:39 +0000 (16:14 -0800)]
glvdebug: Initial support for a Settings Dialog (not fully functional).

Also includes initial (but still unused) support for saving settings to disk.
The settings DO NOT yet get updated when the user clicks "Save" on the dialog.
The settings DO NOT yet get saved to a settings file.
There is currently no way for the UI to query settings on the dialog either.

Currently only the default window positions get populated in the dialog. We
are still trying to determine the best way for the settings dialog to stay
generic, but support options that might be API-specific. To be continued...

9 years agoglvdebug: Fix build warning due to comparing signed vs unsigned number
Peter Lohrmann [Sat, 20 Dec 2014 00:13:04 +0000 (16:13 -0800)]
glvdebug: Fix build warning due to comparing signed vs unsigned number

9 years agoglvdebug: Make the path to the settings file more explicit.
Peter Lohrmann [Sat, 20 Dec 2014 00:08:52 +0000 (16:08 -0800)]
glvdebug: Make the path to the settings file more explicit.

This also makes the message more clear if the settings file cannot be found.

9 years agoglave: Fix xglCreateDevice replay code to not modify packet.
Jon Ashburn [Fri, 19 Dec 2014 19:31:19 +0000 (12:31 -0700)]
glave: Fix xglCreateDevice replay code to not modify packet.

Fixes sporadic  crashes on multiple replays.

9 years agoglave: Remove MemTracker and replace with ObjectTracker
Jon Ashburn [Fri, 19 Dec 2014 16:32:33 +0000 (09:32 -0700)]
glave: Remove MemTracker and replace with ObjectTracker

Too many tests cause MemTracker to spew a ton of errors.
Also don't print Info or Warnings during DbgCall in replayer as the
validation layers are too chatty!

9 years agoglave: Register a handler in replayer for error msg callbacks and report these
Jon Ashburn [Fri, 19 Dec 2014 00:03:34 +0000 (17:03 -0700)]
glave: Register a handler in replayer for error msg callbacks and report these

Hook up DbgMsgCallbacks  from validation layers to replayer.  Log Warnings
and Info messages.  For Error messages log them and also fail the replay of
the packet that caused it.
By default enable debug level 4 in debugger and layers MemTracker and DrawState.

9 years agoglave: update TODO with some items for command line tools
Jon Ashburn [Thu, 18 Dec 2014 23:59:25 +0000 (16:59 -0700)]
glave: update TODO with some items for command line tools

9 years agolayers: APIDump* layers now print input array elements
Tobin Ehlis [Thu, 18 Dec 2014 22:20:05 +0000 (15:20 -0700)]
layers: APIDump* layers now print input array elements

Conflicts:
xgl-layer-generate.py