aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-23layers: Validate fundamental type for input attachmentsChris Forbes
Signed-off-by: Chris Forbes <chrisforbes@google.com>
2016-08-23layers: Correctly handle input attachment collection w/ arraysChris Forbes
Fixes the test added in the previous commit Signed-off-by: Chris Forbes <chrisforbes@google.com>
2016-08-23layers: Require every input attachment used by FS to be present.Chris Forbes
Signed-off-by: Chris Forbes <chrisforbes@google.com>
2016-08-23layers: Add helper to collect shader's use of input attachmentsChris Forbes
Signed-off-by: Chris Forbes <chrisforbes@google.com>
2016-08-22layers: Fix spelling dynami->dynamicTobin Ehlis
2016-08-19loader: Fix CTS failures in simulate_oom tests.Mark Young
The simulate_oom tests continue the trend of testing what happens when the user-provided allocators fail. It validates two things: 1) That the loader returns the proper error message when this occurs. 2) That the loader cleans up any allocated items prior to returning. Change-Id: Ic80ff4345e1f3524d5e11ce787b10c391a37d760
2016-08-19adding vulkan.py extension.ifdef field to vulkan.pyDavid Hubbard
Some extensions are disabled at compile time and must not be included in generated code. Issue #72 gh72. This adds a new optional field ifdef which contains the #define symbol to insert as a guard around generated code. Change-Id: I30b521dd1ff77d0db1608cb11c8c999cef40dff2
2016-08-19layers: Fix spelling error in READMENanley Chery
Change-Id: I2e6aa600f30d89d22ce5f6f1c2e84555ba8e0b71
2016-08-19layers: GH820, MapMemory shadow copy alignmentMark Lobodzinski
For host-visible non-coherent memory, the validation layers use a shadow copy of the mapped memory region. Added proper alignment for the shadow copy, fixed handling of offsets, and implemented resolve of the shadow data on invalidate calls. Change-Id: I88815799865d3a30c76e16cf96ace630e1bbcf2d
2016-08-18layers: GH859 Fix error messages for viewport/scissors stateTobin Ehlis
The checks are correct but error messages were backwards and stated "contains" instead of "does not contain".
2016-08-18demos: Clean up vulkaninfo source formattingMark Lobodzinski
A few spots where clang-format is disabled need some cleanup. Change-Id: I1adc64d479244fc5f655b3e3e7cd74d64499f682
2016-08-18layers: VT59, Change query count errors to warningsMark Lobodzinski
In patterns where an API call is normally made twice, the first with a NULL pointer returning the count of structures to receive followed by second call with a pointer to the appropriately-sized buffer, the swapchain layer was returning validation errors if the size call was made. However, this is legal behavior so these now return validation warnings. Also updated the relevant validation tests. Change-Id: I9f493b27bf4fa0bec6385499c76c5cece1ad86b9
2016-08-18layers: Rework work trackingChris Forbes
This fixes cross-queue work tracking, while keeping everything else working. Signed-off-by: Chris Forbes <chrisforbes@google.com>
2016-08-17layers: GH819, Fix non-coherent memory shadow copyMark Lobodzinski
InvalidateMappedMemoryRanges was not updating core validation's shadow copy of non-coherent memory. Change-Id: I7b5e05791405871489014d6b08595c9bae941185
2016-08-17layers: GH822, handle WHOLE_SIZE for mapped memoryMark Lobodzinski
A support routine for FlushMappedMemoryRanges and InvalidateMapped- MemoryRanges ignored VK_WHOLE_SIZE, causing invalid memory accesses. Change-Id: I28616faa1339a394a3462e72780efd1b852ac489
2016-08-17winsdk: Create layer registry if it doesn't existLenny Komow
2016-08-17docs: GH424 Update validation test documentationMark Mueller
Doc changes to reflect test additions Change-Id: I18488615b2323dc38505e6a2df18fd960ea56bf4
2016-08-17layers: GH424 add check of skip_call results to CreateDeviceMark Mueller
skip_call result was ignored allowing for exception violations under some test conditions. Change-Id: Ied673a9b932210de52ed189c67221af60415cae9
2016-08-16layers: LX581, Warn for null-region blitsMark Lobodzinski
Parameters specifying the extents for VkCmdBlitImage are often misinterpreted from the spec. Add warningis if the extents do not specify a positively-sized area. Change-Id: I11324dcf4523b094d7545f406d5f87a1145e0563
2016-08-16layers: Run swapchain source through clang-formatMark Lobodzinski
Change-Id: Iaebe81e34e76d4760d1097da23d52d7ca2ef4273
2016-08-16layers: Some simple style tweaks for swapchainMark Lobodzinski
Fixed some variable names and removed c-style casts. Change-Id: I994ca311665a59d0f81ce0cfdeda4a66deb632be
2016-08-16layers: Removed swapchain pNext validationMark Lobodzinski
This validation is already performed in parameter_validation. Change-Id: I5fd8e92c885300aa35537d825ea67fabb723062e
2016-08-16layers: Fixed swapchain layer warning messagesMark Lobodzinski
Macro used incorrect parameter layout -- removed and in-lined log_msg calls. Change-Id: I2a21be76f83eed9fb3055f6f57f22204c9ea76f0
2016-08-16layers: Removed unused macro in swapchainMark Lobodzinski
LOG_PERF_WARNING was not used. Change-Id: I89f84611b37a809493e3d23c53809263d48b3065
2016-08-16layers: Moved swapchain QFI checks into functionMark Lobodzinski
Correct object pointers passed now. Change-Id: Ib18e1849da2761373386eb44c2549be7c28752ab
2016-08-16layers: Removed swapchain ZERO_VALUE checkMark Lobodzinski
This validation is already performed in parameter_validation. Change-Id: I3c1a7f17d68fa81f7770b7dd88cb075be8e59175
2016-08-16layers: Remove swapchain WRONG_STYPE checksMark Lobodzinski
This validation is already performed in parameter_validation. Change-Id: I0b9e83cf241bfa5de93c90898f6cd5b6d9b745b5
2016-08-16layers: In-line swapchain zero_prior_count macroMark Lobodzinski
Change-Id: Ib9c58f05ef045f0450f1ba62dfc7ea4498ac119e
2016-08-16layers: Remove swapchain INVALID_COUNT macroMark Lobodzinski
Change-Id: I44d19882af69541cfe9876a22fecc0a09056ba0b
2016-08-16layers: Remove swapchain NULL_POINTER checksMark Lobodzinski
These are all overed in parameter_validation. Change-Id: I23a7fc281414b6b8bcf30c5a9660560f2b51177f
2016-08-16layers: Removed LOG_ERROR_NON_VALID_OBJ macroMark Lobodzinski
Change-Id: I0609694a3743ca764bcda6de66c0431fb63c1ad1
2016-08-16layers: Replace swapchain LOG_ERROR macrosMark Lobodzinski
Fixed some missing return codes, incorrect parameter order, bad object handles, and instance-device mismatches. Inlined log-error calls. Change-Id: I6d272cafcd8554f068896312a2b0f41a42d108be
2016-08-16layers: Fix typo in layer validation details docMark Lobodzinski
DynamicBlendConstantsNotBound was misspelled. Change-Id: I33f4d53e336dc39b5f23583ee24df88441a339ac
2016-08-15layers: Update details document for new PV testMark Lobodzinski
Added test to use a non-solid fillmode when this feature is disabled. Change-Id: If43d8d2f30fa892b96cb90585eb0513649c535f7
2016-08-15layers: GH785, Validate rasterinfo->polygonModeMark Lobodzinski
If fillModeNonSolid is not enabled, polygonMode cannot be set to POINT or LINE. Change-Id: I6cfdfac8f5c9ff7d27b94bf0aa80ae1249b0ce25
2016-08-15layers: Fix missing PV WSI registrationMark Lobodzinski
Change-Id: I1c924977a420bc7a417710b82f0a42f4ae5dd4c3
2016-08-15winsdk: Move uninstall log to tempLenny Komow
2016-08-15layers: Style fixup, don't use pass-by-reference paramsTobin Ehlis
Change pass-by-reference to a ptr to comply with Google style guide. This way it's more clear that function is modifying param, especially when calling.
2016-08-15layers: Naming correctionsTobin Ehlis
Some minor fix-ups to variable names and comments for memory aliasing code.
2016-08-15layers: Refactor set/validate memory valid functionsTobin Ehlis
Create custom image and buffer versions of functions to minimize casting.
2016-08-15layers: Push some casts into helper functionsTobin Ehlis
2016-08-15layers: Handle memory mapped prior to object bindingTobin Ehlis
This adds initial support for memory that is updated via a MapMemory() call prior to an object being bound. Initially any mapped allocation will just have global_valid set for whole allocation. This value is then picked up by any ranges made off of that allocation. Really, we need to create new mapped regions and mark them valid, then make sure that any overlapped objects pick up valid from mapped regions. This requires more thought and design, though, so commiting this changes as a simpler and incomplete initial fix.
2016-08-15layers : Update memory valid to be per-rangeTobin Ehlis
We previously only tracked a single valid bool for an entire allocation. That can easily get out of synch when multiple objects are bound to the same allocation. This update moves the valid tracking to be per-range so that it can be tracked on a per-object basis. This does handle aliasing cases where various objects completely alias each other, but there are still various aliased resource cases that aren't handled.
2016-08-15layers: Refactor InsertMemoryRangeTobin Ehlis
Work with local MEMORY_RANGE struct and insert to map at the end. This avoids a loop pass and the awkward loop check of a range against itself. Adds the slight complexity of storing aliases during loop and updating them after the loop, but I prefer that to the alternative.
2016-08-15layers: Update bound memory tracking and alias checkingTobin Ehlis
Store all ranges bound to a single memory allocation in a single map indexed by object id. Add two separate unordered_sets for independent image and vector processing. Added a set of aliases to MEMORY_RANGE struct to hold any aliased ranges. Insert aliased ranges at create time and remove the aliases when a range is destroyed. Have a single function, rangesInterset, to track if regions bound to a memory allocation overlap, and if linear/non-linear overlap in violation of the spec.
2016-08-12demos : SAM6 Flip projection matrix, instead of vertex-shaderRene Lindsay
Change-Id: I0000000000decaf15bad0000000000000000006b
2016-08-12winsdk: Clean up confiure_runtime.c and docsLenny Komow
2016-08-12winsdk: Make RT installer use C programLenny Komow
2016-08-12winsdk: Add C program for runtime configurationLenny Komow
2016-08-12docs: Add renderpass tests from GH427Tony Barbour
Change-Id: I3804836836af714fd9ba3138518d5c78832fc4d5