Arda Coskunses [Sat, 25 Feb 2017 18:34:37 +0000 (11:34 -0700)]
layers: Added more format checks to utils
Change-Id: I1f91403656ddb9b69e3c519b35b95a48f3ac2bb4
Mark Lobodzinski [Fri, 24 Feb 2017 15:53:14 +0000 (08:53 -0700)]
layers: GL168, fix bad compressed texel block size
The image<->buffer copy validation was checking against texel block
sizes, but needed the block size in byte. Fixed the bad validation
errors and renamed existing util function and updated a compressed
texture size to match the spec.
Change-Id: I40b9635a4fab131ab1525da51e94c4c5577217be
Mike Schuchardt [Tue, 21 Feb 2017 16:48:06 +0000 (09:48 -0700)]
tests: Add test that uses object on wrong device
Exercise new object tracker handle check by trying to delete a render
pass on the wrong VkDevice.
Change-Id: I4480c5210d399c46b22e4c34630d76922aa934e3
Mike Schuchardt [Tue, 14 Feb 2017 22:33:52 +0000 (15:33 -0700)]
layers: Check all devices for valid object handles
Additional check in ValidateObject to distinguish between an invalid
object and an object that was created on another device.
Change-Id: I939ca7a23df47ad5809e46c780e084085f141c13
Mark Lobodzinski [Wed, 22 Feb 2017 17:55:30 +0000 (10:55 -0700)]
layers: GH1489, fix CmdClearAttachments validation
Calling CmdClearAttachments in a secondary command buffer could
result in bad validation errors as existing checks rely upon
RenderPass begin info data that may not yet be present. Good
validation for this case will come in a follow-on patch series.
Change-Id: Ib169e26f506124f0c1ad75f57de3b6b5146df872
Dave Houlton [Tue, 21 Feb 2017 22:59:08 +0000 (15:59 -0700)]
layers: Fix a bug in depth/stencil packing
Fixed incorrect size calculations for image<->buffer copies
due to special packing rules of depth and stencil formats.
Added test code to layer_validation_tests ImageBufferCopyTests to
exercise these checks.
Change-Id: I90446379ba8888bf91eda6567e18fa1aae9593b1
Karl Schultz [Wed, 22 Feb 2017 20:41:55 +0000 (13:41 -0700)]
build: Change appveyor to build VS 2013 and 2015
Change-Id: Idccb248aa46a5028b9c28d5487760c749a8d61e2
Jeremy Hayes [Wed, 22 Feb 2017 15:53:13 +0000 (08:53 -0700)]
demos: Use device local heap for depth
Fix GH 116: Cube demo does not allocate depth buffer in device local
heap.
Change-Id: Ic368bc039fc555f0d8739b0aeb6648237a6fcc5c
Mike Weiblen [Tue, 21 Feb 2017 21:32:53 +0000 (14:32 -0700)]
layers: Move code to preferred cpp file
PreCallValidateGetImageSubresourceLayout() from core_validation.cpp
to buffer_validation.cpp
Change-Id: Ic55e049fab28384d30768e8c590f158e603dd343
Mike Weiblen [Fri, 10 Feb 2017 04:25:59 +0000 (21:25 -0700)]
tests: VU 732, 733, 739, 740 tests
Create ExerciseGetImageSubresourceLayout() for varioud VU tests
of vkGetImageSubresourceLayout().
Update VU database to indicate implemented tests for those VUs.
Change-Id: I961d9ab54f35d307a87dedcc550d4d72af927dac
Mike Weiblen [Tue, 21 Feb 2017 03:57:40 +0000 (20:57 -0700)]
layers: VU 732, 733, 739, 740 checks GH-402
Implement several Valid Usage checks in
PreCallValidateGetImageSubresourceLayout()
Update VU database to mark check_implemented flag to Y.
Change-Id: I04f3281012889c03aece121ecf6726437054040f
Mike Weiblen [Tue, 21 Feb 2017 02:43:02 +0000 (19:43 -0700)]
layers: Refactor for PreCallValidate
Refactor vkGetImageSubresourceLayout() validation out to separate
PreCallValidateGetImageSubresourceLayout() function.
Cleanup existing Valid Usage check 00741.
Change-Id: Id17a06063673b0f47cdaf8d051974887205d2f6d
Mike Weiblen [Tue, 21 Feb 2017 05:21:09 +0000 (22:21 -0700)]
externals: update external GitHub commits refs
Update LVL externals to top of GitHub master branches:
glslang_revision
8f674e821e1e5f628474b21d7fe21af2e86b5fb4
spirv-headers_revision
b6dca2397d512e4db62f051a47bb5334d5d44360
spirv-tools_revision
c0949703b1264c33df45584efba50a8444b53022
Change-Id: I155c06206267b20c6fbb23fd3692259ad285be1b
Benjamin Saunders [Sun, 19 Feb 2017 19:14:24 +0000 (11:14 -0800)]
loader: Configurable fallback search paths
This makes it easier for non-FHS distributions to behave well when the
loader is used by a SUID process or in an otherwise unusual environment.
Mark Young [Fri, 17 Feb 2017 16:02:23 +0000 (09:02 -0700)]
loader: Fix a few potential overruns
Fixed a few places a strcpy or strcat could overrun.
Change-Id: I58184bd418ae5ee4596a40bf66ef2ab41400ee55
Mike Weiblen [Fri, 17 Feb 2017 00:00:35 +0000 (17:00 -0700)]
externals: Update script to take URLs as params
To provide flexibility in which git repositories are used as the
upstream source for LVL's externals, remove the hardcoded repo URLs
from the update scripts, and instead read those URLs from parameter
files.
Also fix typos and comments.
Change-Id: Ic1b49fcf30d37b602e20bf3f83eb5991847476dc
Mark Lobodzinski [Fri, 17 Feb 2017 16:01:48 +0000 (09:01 -0700)]
header: Update to Vulkan 1.0.41
updated:
- include/vulkan/vk_platform.h
- include/vulkan/vulkan.h
- scripts/generator.py
- scripts/cgenerator.py
- scripts/lvl_genvk.py
- scripts/reg.py
- scripts/vk.xml
- include/vulkan/vulkan.hpp
- layers/tests json files
- loader SOVERSION
Change-Id: I1e7c3e39206be3c6d2c12b46c438a1fb9343945e
Tobin Ehlis [Thu, 16 Feb 2017 20:21:20 +0000 (13:21 -0700)]
layers:RenderPass depth/stencil layout transition
Fixes #1454
For image views into depth/stencil images we need to make sure that
both the depth and stencil aspects have their layouts transitioned to
the initialLayout setting for the first subpass.
Mark Lobodzinski [Thu, 16 Feb 2017 18:45:27 +0000 (11:45 -0700)]
layers: Fix AllocateDescriptorSets in threading
Needed to special case this routine to skip validating objects
before creation. Caught in CTS testing.
Change-Id: Ic1c1b69bd1d75a5742c8b709624153db6af71885
Mark Lobodzinski [Wed, 15 Feb 2017 21:50:53 +0000 (14:50 -0700)]
layers: Remove image layer source/build
Change-Id: If1fd066048f6eb440298c0f1bb7117a4b9d8100d
Mark Lobodzinski [Wed, 15 Feb 2017 21:15:53 +0000 (14:15 -0700)]
android: Update build to skip image layer
All image layer functionality has been moved into the core_validation
layer.
Change-Id: I980e279626e4e3f29c5068240260a737a5a707b1
Mark Lobodzinski [Wed, 15 Feb 2017 21:46:24 +0000 (14:46 -0700)]
loader: Remove image layer from standard_validation
Change-Id: I54a1c0580034c2676defd1408699201568ffaf6f
Mark Lobodzinski [Wed, 15 Feb 2017 21:43:21 +0000 (14:43 -0700)]
demos: Remove image layer references
Change-Id: I937f1387ca6d4405cbceea12d66e97985d367bbd
Mark Lobodzinski [Wed, 15 Feb 2017 21:57:47 +0000 (14:57 -0700)]
layers: Remove image layer from stats script
Change-Id: I9c24d4f8e7e375d3e78280e0bfffe319c4ab64a9
Mark Lobodzinski [Wed, 15 Feb 2017 21:34:10 +0000 (14:34 -0700)]
layers: Remove image layer refs from docs
Change-Id: I5fd91fd3b1697ca8c27cc89fea016ce131a6a9e6
Mark Lobodzinski [Wed, 15 Feb 2017 21:11:12 +0000 (14:11 -0700)]
layers: Update buffer-image copy routines for style
Change-Id: Id768e9e8967c687e7592169bae6d40652b58fa4f
Mark Lobodzinski [Wed, 15 Feb 2017 20:58:23 +0000 (13:58 -0700)]
layers: Separate val/state updates in buff-img copy
Moved state updates out of precallvalidate routines into
precallrecord routines.
Change-Id: If13e8a14cabc2b63a53f5369c33b1e632b15ff3a
Mark Lobodzinski [Wed, 15 Feb 2017 20:45:18 +0000 (13:45 -0700)]
layers: Move buffer/image validation out of CV
Moved guts of buffer-image-copy validation out of the core_validation
module and into the buffer_validation module, integrating with the
PreCallValidateXxx routines.
Change-Id: Ia2f867b96532eee773d0a6b899fbff160ac7b4d6
Mark Lobodzinski [Wed, 15 Feb 2017 19:59:00 +0000 (12:59 -0700)]
layers: Move image layer image-buffer-copy to CV
Moved the image layer validation for buffer-image copies to the
buffer validation module.
Change-Id: If8ff8aa183f88560dc5db9d59c92346ee47b01e9
Mark Lobodzinski [Thu, 16 Feb 2017 17:43:18 +0000 (10:43 -0700)]
layers: Fix validation routine name typo
Change-Id: I2b102c048131cd875888df2196f41480c8c1eb75
Dave Houlton [Fri, 3 Feb 2017 00:26:23 +0000 (17:26 -0700)]
layers: Add checks&tests to Img-Buf copy - GH284
Added 16 VU checks for CmdCopyImageToBuffer and CmdCopyBufferToImage
Fixed 1 test in MiscImageLayerTests
Added 12 test in ImageBufferCopyTests
Individual commits:
GH284 add VUs 1240, 1241, 1258, 1259
GH284 add VUs 1238, 1244
GH284 add 1271 1272 1273 1274 1279 1281 1746 1747 remove 1238 1244 1262 1269
GH284 add 1227 1228 1245 1246
GH284 fix validation test MiscImageLayerTests for VU 1269/1747 swap
GH284 update database with new VU checks
GH284 redo VUs 1227 1246, move them into core validation
GH284 final checks and tests
GH284 fix a rebase merge error
GH284 fix uint64 format specifier that broke the Android build
Change-Id: I5b69eddab945fb09d4cf3645349fa45a61576355
Mark Lobodzinski [Wed, 15 Feb 2017 16:31:53 +0000 (09:31 -0700)]
layers: Updated changed subroutines for style
Change-Id: Idda8fd88bc63ba9d441b6fe4854b98e25eede279
Mark Lobodzinski [Tue, 14 Feb 2017 20:08:15 +0000 (13:08 -0700)]
layers: GH1478, Add error msg for CB invalidation
Previously, any command buffer not in a recording state would emit
an error message indication that BeginCommandBuffer had not been
called. Added a separate message for command buffers that were
invalidated.
- Combined ValidateCMD and report_error_no_cb_begin
- For invalidated CBs, output cause of invalidation
- Updated test for improved error text
Change-Id: Ie72fb0ec039fbd6d4471ba32c75cc540e5c871d3
Mark Lobodzinski [Tue, 14 Feb 2017 20:17:35 +0000 (13:17 -0700)]
layers: Fix CB status checks in bindVtx/IndexBuffer
These calls were calling the wrong validate function if a CB_NODE
was not found. Fixed this and added appropriate calls to check the
CB recording state.
Change-Id: I8f22f5bca7233fc92b0b91f3aceb8c38b312dc8f
Bill Hollings [Wed, 15 Feb 2017 03:58:56 +0000 (22:58 -0500)]
demos: Support cube on iOS and macOS via MoltenVK
Mark Lobodzinski [Tue, 14 Feb 2017 21:30:08 +0000 (14:30 -0700)]
layers: Fix a few parameter validation holes
Added a few missing checks for validation return codes.
Change-Id: Ia6a3a3fbf702ebb982d4f4d26510f3f8fdcf2710
Mark Lobodzinski [Tue, 14 Feb 2017 23:09:03 +0000 (16:09 -0700)]
headers: Fix vulkan.hpp clang compiler errors
Change-Id: Ibca9f31b722945f1d96fb41aca0f1e78bd6567f1
Cort Stratton [Tue, 14 Feb 2017 20:11:18 +0000 (12:11 -0800)]
layers: commented SetMemBinding and ValidateSetMemBinding
Cort Stratton [Mon, 13 Feb 2017 22:11:50 +0000 (14:11 -0800)]
layers: Refactored SetMemBinding() for pre/post calls
Cort Stratton [Mon, 6 Feb 2017 23:30:33 +0000 (15:30 -0800)]
layers: refactor BindBufferMemory for pre/postcall style
Cort Stratton [Sat, 4 Feb 2017 21:43:39 +0000 (13:43 -0800)]
layers: Add trailing "()" to vkBind*Memory strings
Cort Stratton [Sat, 28 Jan 2017 21:33:10 +0000 (13:33 -0800)]
tests: Add VU 797,806 to BindInvalidMemory
Cort [Sat, 28 Jan 2017 02:34:50 +0000 (18:34 -0800)]
tests: Add VU 793,805 to BindInvalidMemory
Cort Stratton [Sat, 28 Jan 2017 22:17:47 +0000 (14:17 -0800)]
layers: Add VU error 805,793 (bind mem w/bad memoryOffset)
Cort Stratton [Sat, 28 Jan 2017 22:17:04 +0000 (14:17 -0800)]
tests: Add VU 792,804 to BindInvalidMemory
Cort Stratton [Sat, 28 Jan 2017 22:16:16 +0000 (14:16 -0800)]
tests: Add VU 791,803 to BindInvalidMemory
Cort [Wed, 18 Jan 2017 02:10:21 +0000 (18:10 -0800)]
tests: Add VU 800 to BindInvalidMemory
Cort [Wed, 18 Jan 2017 02:09:09 +0000 (18:09 -0800)]
layers: Add VU 791,803 (bind mem w/existing binding)
Cort [Wed, 18 Jan 2017 01:32:33 +0000 (17:32 -0800)]
layers: Add VU 792,804 (bind mem to sparse image/buffer)
Cort Stratton [Sat, 28 Jan 2017 22:14:06 +0000 (14:14 -0800)]
layers: Refactor BindImageMem for pre/postcall style
Change-Id: I40d5e8566a7e72a72e59ad07de01c51f10cd5bea
Mark Lobodzinski [Wed, 23 Nov 2016 17:18:53 +0000 (10:18 -0700)]
layers: Update BindImageMemory var names for style
Change-Id: I38fa79b4c696b3d986558cd885156004ad082468
Mark Lobodzinski [Mon, 13 Feb 2017 17:15:53 +0000 (10:15 -0700)]
header: Update to Vulkan 1.0.40
fixed:
- generators for latex math changes
updated:
- include/vulkan/vk_platform.h
- include/vulkan/vulkan.h
- scripts/generator.py
- scripts/lvl_genvk.py
- scripts/reg.py
- scripts/vk.xml
- include/vulkan/vulkan.hpp
- layers/tests json files
- loader SOVERSION
Change-Id: Id7d6f9dee73888877f2e7528f5701871f54ece79
Mark Lobodzinski [Mon, 13 Feb 2017 17:33:08 +0000 (10:33 -0700)]
scripts: Add copy of cgenerator.py to LVL repo
This will be needed for genvk.py updates.
Change-Id: I48e28b3051b367cb883d86f7fc5b217cadecb495
Mark Lobodzinski [Tue, 14 Feb 2017 16:16:56 +0000 (09:16 -0700)]
layers: Remove predefined threading object lists
These lists were hard-coded in the generator. Added on-the-fly
detection of handles to reduce maintenance.
Change-Id: I8a897da731d96c2f70f00e479a17c355f03a7486
Mark Lobodzinski [Fri, 10 Feb 2017 15:34:54 +0000 (08:34 -0700)]
Layers: Add KHR/KHX/NN extensions to threading layer
These were skipped due to problems in codegen. Added support for new
objects into the layer, fixed codegen.
Change-Id: Iaf4fcaa229664f7d3118da4db35649fbdf36e2eb
Mark Young [Mon, 13 Feb 2017 22:39:22 +0000 (15:39 -0700)]
docs: Update LoaderAndLayerInterface
Added section detailing the loader's instance extension name
filtering behavior and the environment varaible that can be used
to disable the behavior.
Change-Id: Iadbde47e2933a163906a7cfa1c4b340da0d73789
Mike Weiblen [Tue, 7 Feb 2017 02:21:52 +0000 (19:21 -0700)]
tests: Implement test for VU 2116 check
Add test 'PipelineRenderpassCompatibility' to exercise VU 2116 check.
Bump copyright year.
Update database test name.
Change-Id: I4eb73232e69874f34502d25867d2aa60c17f6a13
Mike Weiblen [Thu, 9 Feb 2017 19:13:24 +0000 (12:13 -0700)]
layers: Add VU 2116 pColorBlendState checking GH-777
Add Valid Usage 02116 check.
If the rasterizerDiscardEnable member of pRasterizationState is
VK_FALSE, and subpass uses color attachments, pColorBlendState must be
a pointer to a valid VkPipelineColorBlendStateCreateInfo structure.
Update VU database check_implemented flag.
Change-Id: I154321e3a891a61c0917ec8a9520ae766162e2e6
Mike Weiblen [Thu, 9 Feb 2017 19:26:58 +0000 (12:26 -0700)]
layers: Refactor checking code
Combine code blocks to avoid repetitive checking of the same state.
Change-Id: I788538b82ce9420035d9ab2ba9fefb9befb67722
Tony Barbour [Wed, 8 Feb 2017 20:53:39 +0000 (13:53 -0700)]
Clang-format for recent QueueSubmit commits
Change-Id: Id029c12d36b6327ac73c43879f315513c71b13d1
Tony Barbour [Wed, 25 Jan 2017 19:53:48 +0000 (12:53 -0700)]
layers: Separate validation from state in QueueSubmit
Change-Id: I95878805bfc025afd60ba2167aeb78dba064b56e
layers: Rework semaphore signal tracking in QueueSubmit
Change-Id: I6ee12fd44ebd42c1a4e14bb7fd0eae300489d413
layers: Better submit count tracking in QueueSubmit
Change-Id: I90065fc4546354cb2be14be9143356132ac2f3df
layers: Improve image layout tracking in QueueSubmit
Change-Id: I6e10c8a6d18730939dfa0a5d5e452a23c540f94e
layers: Move cmd collection from validate to record
Change-Id: I89df7358f1916ea4688d4b8cfe2cb870f946b3d9
layers: Fix command buffer submit count in QueueSubmit
Use vector and count instead of unordered_map
Change-Id: I227951085af7df0c288cb3563d17a04d7f2f41e1
Mark Lobodzinski [Fri, 10 Feb 2017 21:01:27 +0000 (14:01 -0700)]
layers: Refactor CmdFillBuffer
Separated validation from state updates, refactored for pre/post
and moved these functions out of core_validation. Also updated for
coding style.
Change-Id: I9b24bc8c951fd1df99a65db5fa8f1d0412488192
Mark Lobodzinski [Fri, 10 Feb 2017 20:48:38 +0000 (13:48 -0700)]
layers: Move destroybuffer/bufferview out of CV
Moved pre/post routines to buffer module, along with a couple of
functions.
Change-Id: Ibb67bf18ed376a37666f171c4e30676fa18157ca
Karl Schultz [Sun, 12 Feb 2017 19:34:03 +0000 (12:34 -0700)]
loader: Fix XDG path parsing
Fixes #1474
Fix path parsing code to handle leading and trailing
path separators. Also handle contiguous path separators.
When encountering something like ::: in the path, the old
code would add multiple entries containing only the
relative part of the path (e.g., /vulkan.icd.d).
Michael Lentine [Fri, 10 Feb 2017 20:57:15 +0000 (14:57 -0600)]
layers: Change mem map error to warning
Currently the spec allows memory to be mapped regardless of format.
However, because the memory cannot be used by the device in a predicable
way unless the format is PREINITIALIZED or GENERAL we still need a
warning here.
Change-Id: Ie50b21c0840d97409e40d7f9187f34b9552050f2
Tony Barbour [Fri, 10 Feb 2017 20:41:15 +0000 (13:41 -0700)]
layers: Fix CheckPreserved to allow input attachment
Attachments that are used (input / color / depth attachment)
in a subpass are not allowed in the preserved list, so if they
are used as a color, depth or input attachment they should
be consided preserved. Color and depth attachments were accounted
for, this commit adds input attachment
Change-Id: Id87c3c1546092bc64b293bead1d997e0f61f7990
Mark Lobodzinski [Fri, 10 Feb 2017 19:09:23 +0000 (12:09 -0700)]
layers: Consolidate GetPhysicalDevice* accessors
Simplified core_validation->descriptor_sets/buffer_validation.
Change-Id: I6921ac458bce5899e8bd60145bfaa0e0f5e8a2ac
Mark Lobodzinski [Thu, 9 Feb 2017 20:06:56 +0000 (13:06 -0700)]
layers: Refactor CmdCopyBuffer for pre-post style
Change-Id: Ic0004cad00ba04295e8c05a703a085e07d3ad56e
Mark Lobodzinski [Thu, 9 Feb 2017 19:01:27 +0000 (12:01 -0700)]
layers: Refactor CmdCopyImage for pre/post
Refactored this API and moved routines to buffer validation module.
Also moved several related helper routines.
Change-Id: I5859c3413290c81983f7e1b30ddb75928448fb20
Mark Lobodzinski [Thu, 9 Feb 2017 18:01:33 +0000 (11:01 -0700)]
layers: Move pre/post CreateImageView out of CV
Moved PreCallValidateCreateImageView and the postCallRecord routine,
along with a couple of helpers: ValidateImageSubrangeLevelLayerCounts
and ValidateImageAspectMask.
Change-Id: I1d94ecee6244010d71cf910a95aeb320c30fc0fb
Mark Lobodzinski [Thu, 9 Feb 2017 17:40:41 +0000 (10:40 -0700)]
layers: Update CreateBuffer/BufferView for style
Clang-format and variable naming.
Change-Id: Ibbf60e547f8ece2d73896e7e3ba6979d993b9e59
Mark Lobodzinski [Thu, 9 Feb 2017 17:33:46 +0000 (10:33 -0700)]
layers: Move CreateBuffer/BufferView routines
Moved out of core_validation, refactored for pre/post calls.
Moved ValidateImageUsageFlags, ValidateBufferUsageFlags, CreateBuffer,
and CreateBufferView, along with a couple of helper routines.
Change-Id: I7157369982d93b2327121406c208df36c15bcab4
Lenny Komow [Fri, 10 Feb 2017 17:44:37 +0000 (10:44 -0700)]
winsdk: Build runtime from RelWithDebInfo
Change-Id: I6d1484035de816d7bea0a3cad16fddf7b86cee24
Lenny Komow [Fri, 10 Feb 2017 17:38:30 +0000 (10:38 -0700)]
build: Fix RelWithDebInfo CRT warnings
Change-Id: I0957264aa068af8e4d47a0ce9f7a9950b9729de9
Mark Young [Fri, 10 Feb 2017 18:19:02 +0000 (11:19 -0700)]
loader: Add env var to disable inst ext filter
Add an environmental variable to disable the instance extension
filtering. Simply defining VK_LOADER_DISABLE_INST_EXT_FILTER to
a non-zero number will disable the functionality.
Change-Id: I953814b49e87289a35f154755521d5433474c920
Jeremy Hayes [Thu, 9 Feb 2017 20:32:28 +0000 (13:32 -0700)]
tests: Fix UnusedPreserveAttachment
Undefined shouldn't be an error since its a valid enumerant.
Change-Id: I542b47cdf885bd9ccb96a0a113a56a849423800a
Mark Lobodzinski [Thu, 9 Feb 2017 22:58:14 +0000 (15:58 -0700)]
layers: Codegen unique-objects extension whitelists
These lists are now generated from vk.xml.
Change-Id: Id7571d8b18b272c7d7ead905d53e5ff778afcb6e
Mike Weiblen [Thu, 9 Feb 2017 23:02:15 +0000 (16:02 -0700)]
external: Update glslang, spirv-tools
glslang_revision to
07939886
spirv-tools_revision to
f980d8c6
Change-Id: I54f3adf713cc73bba22b66319cd56fe1bf6a7f5a
Mark Lobodzinski [Wed, 8 Feb 2017 23:04:35 +0000 (16:04 -0700)]
layers: Added some missing extensions to PV
Added the display control and indirect count extensions.
Support is now included for all 1.0.39 extensions.
Change-Id: I299ffd939da0571920c401fb298bc3b8773a394b
Mark Lobodzinski [Wed, 8 Feb 2017 22:27:18 +0000 (15:27 -0700)]
layers: Enable autogen'd procmap for PV
Routines and tables were previously hard-coded. They are now
generated from vk.xml.
Change-Id: I26c98bb42c9ccc287e9dd4c12447d66ea1c68d91
Mark Lobodzinski [Wed, 8 Feb 2017 21:37:15 +0000 (14:37 -0700)]
scripts: Automate intercepts for parameter validation
Change-Id: Idcacab581775ce95cf11965b417b625df8e12176
Mark Lobodzinski [Wed, 8 Feb 2017 23:28:18 +0000 (16:28 -0700)]
layers: Fix CmdUpdateBuffer API definition
Change-Id: I7a8a2215ceb3523ca74534fe547600bb585223a7
Karl Schultz [Thu, 9 Feb 2017 00:27:02 +0000 (17:27 -0700)]
build: Add detection for VS2017
Change-Id: Iefcf43af57fe42f3df7d5f2e37eb826c2764f1bd
Tobin Ehlis [Wed, 8 Feb 2017 19:15:27 +0000 (12:15 -0700)]
layers:Add using statements for layer_data
Add "using core_validation::layer_data;" to descriptor and buffer
validation files. This cleans up the code without adding any confusion
or name collisions.
Tobin Ehlis [Wed, 8 Feb 2017 19:03:56 +0000 (12:03 -0700)]
layers:Remove "using namespace std" statement
Remove "using namespace std;" statement from core validation. This is
prohibited in the coding standard. Replace with specific "using"
statements for the parts of std that we use.
Tobin Ehlis [Wed, 8 Feb 2017 16:16:32 +0000 (09:16 -0700)]
layers:Rename get* utility functions
Rename get* helper functions to have capital first letter in-line with
coding standard.
Tobin Ehlis [Wed, 8 Feb 2017 14:50:32 +0000 (07:50 -0700)]
layers:Remove unused param
UpdateCmdBufferLastCmd() doesn't use dev_data param to remove it.
Tobin Ehlis [Wed, 8 Feb 2017 14:45:35 +0000 (07:45 -0700)]
layers:Remove unused functions
These functions were formerly used for descriptor validation which is
now all contained in descriptor_set.h/cpp files.
Tobin Ehlis [Wed, 8 Feb 2017 14:40:40 +0000 (07:40 -0700)]
layers:Rename get_my_data_ptr to GetLayerDataPtr
Change utility function get_my_data_ptr() to be named GetLayerDataPtr()
which is more descriptive and capital camel case in-line with coding
standard.
Tobin Ehlis [Wed, 8 Feb 2017 14:14:29 +0000 (07:14 -0700)]
layers:Rename my_data vars to dev_data
All variables named my_data are device-specific instances of layer_data
so renaming them to dev_data.
Thomas Heijligen [Wed, 8 Feb 2017 09:44:29 +0000 (10:44 +0100)]
cmake: GH1444, add wayland include dir to cmake
On some Linux distributions (e.g openSUSE, Fedora) the wayland headers are in
a subdirectory.
Adding WAYLAND_CLIENT_INCLUDE_DIR to include_directories in CMakeLists.txt
will fix this issue.
Mark Lobodzinski [Wed, 8 Feb 2017 00:21:55 +0000 (17:21 -0700)]
layers: Fix ValidateMapImageLayouts for style
Var names and clang-format.
Change-Id: I2aa5aac3360ef4189e6b7720b6afe948c8d87c78
Mark Lobodzinski [Wed, 8 Feb 2017 00:20:06 +0000 (17:20 -0700)]
layers: Move ValidateMapImageLayouts out of CV
Change-Id: Ib9d9c169b1306a7ed6f243bbb957719305340a2e
Mark Lobodzinski [Wed, 8 Feb 2017 00:14:53 +0000 (17:14 -0700)]
layers: Fix ImageLayout validation helpers for style
Var names and clang-format.
Change-Id: I796a928b8c42c0f8208ed7cb34cab8ce07c1d011
Mark Lobodzinski [Wed, 8 Feb 2017 00:11:55 +0000 (17:11 -0700)]
layers: Move image layout validation helpers from CV
ValidateLayoutVsAttachmentDescription and ValidateLayouts now reside
in the buffer_validation module.
Change-Id: I66ce6ecba882b0e5acb70410ef2b99d32070feb0
Mark Lobodzinski [Wed, 8 Feb 2017 00:00:12 +0000 (17:00 -0700)]
layers: Fix ValidateMaskBits routines for style
Var names and clang-format.
Change-Id: Ie125d03b808c40e35d6cf494230a48eb951195bc
Mark Lobodzinski [Tue, 7 Feb 2017 23:55:53 +0000 (16:55 -0700)]
layers: Move MaskBits validation out of CV
Moved ValidateMaskBitsFromLayouts, ValidateMaskBits, and
string_VkAccessFlags from CV into the buffer module.
Change-Id: Ifaf509c59778c54e733c27e7ac0381ad2cb324c0
Mark Lobodzinski [Tue, 7 Feb 2017 23:38:17 +0000 (16:38 -0700)]
layers: Fix ValidateCmdBufImageLayouts for style
Var names and clang-format.
Change-Id: I974b36bca41d85fda392c61d19e271c7f0792de1
Mark Lobodzinski [Tue, 7 Feb 2017 23:36:03 +0000 (16:36 -0700)]
layers: Move ValidateCmdBufImageLayouts out of CV
Change-Id: I358250b6cacd42e4c2b28b324e3683b51efe75e0
Tobin Ehlis [Tue, 7 Feb 2017 22:21:00 +0000 (15:21 -0700)]
layers:Add physicalDevice check
Update GetPhysicalDeviceQueueFamilyProperties() in object_tracker to
verify that physicalDevice is valid.