aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
AgeCommit message (Collapse)Author
2015-06-18layers: Add GetPhysicalDeviceExtInfo to DrawStateJon Ashburn
Allows DrawState to be enabled in layers_validation_test
2015-06-18DrawState: Fix destroying of maps so the map entrys get removedJon Ashburn
They were hanging around and causing double delete assertions.
2015-06-18draw_state: Update to use private dispatch mapCourtney Goeltzenleuchter
2015-06-18layers: Make dispatch table thread safeJon Ashburn
2015-06-18layers: Fix DrawState and ParamChecker to only use debug_marker if enabledJon Ashburn
2015-06-18layers: Initialize debug_report instance proc tableCourtney Goeltzenleuchter
2015-06-18draw_state: Add validation extension recordCourtney Goeltzenleuchter
To make things easier for applications the validation layers will advertise support for two extensions. The named extension (i.e. DRAW_STATE) is used if the app only wants to enable this specific layer / extension. If an app wants to enable all Validation layers they simply include all VkExtensionProperties who's name is "Validation". This patch adds this extension to this layer.
2015-06-18draw_state: Add support for DEBUG_REPORTCourtney Goeltzenleuchter
DrawState can report errors it details via the DEBUG_REPORT extension. This patch updates DrawState so that it uses the DEBUG_REPORT extension if it is enabled.
2015-06-18draw_state: Add CreateInstance supportCourtney Goeltzenleuchter
Layers need to intercept CreateInstance in order to see what's been enabled on the Instance chain. As this layer supports DEBUG_REPORT extension it needs to know if that has been enabled or not.
2015-06-18loader: remove dependency fields from extension infoCourtney Goeltzenleuchter
2015-06-17loader: Support layers that don't have an extension entrypointJon Ashburn
Change all layers and loader interface to init dispatch tables on GPA("GetXXXProcAddr"). After that initialization rest of dispatch tables are inited via unwrapped object using the GPA in the dispatch table. This also allows App generated GPA calls that the loader can't resolve to function correctly.
2015-06-17misc: Make DEBUG_MARKER entrypoints a device extension with separate dispatchJon Ashburn
Right now only DrawState and ParamChecker implement this extension.
2015-06-17extensions: begin changes for extension supportCourtney Goeltzenleuchter
This patch starts restructuring the various components (loader, driver, layers, etc.) to support global and device extensions. Require GetProcAddr to access the extension functions and related support.
2015-06-17misc: Fix file permissionsCourtney Goeltzenleuchter
2015-06-17DrawState: Add support for multiple PhysicalDevices or InstancesJon Ashburn
2015-06-17misc: Change vkGetProcAddr to vkGetDeviceProcAddrJon Ashburn
Also cleanup layer/loader GPA's to only return device level entrypoints.
2015-06-17misc: Loader and Layers move device chain activation to CreateDeviceJon Ashburn
2015-06-17layers: Use the instance chain for entrypoints with instanceJon Ashburn
Also add to instance dispatch table CreateInstance and GetGlobalExtensionInfo
2015-06-17layers: Add initialization of instance dispatch tableJon Ashburn
Make the layer init separate from either device or instance dispatch table init, since these are done at different times.
2015-06-17layers: Add GetInstanceProcAddr() to all layersJon Ashburn
Loader will use this for constructing instance layer instance chains. Layer instance dispatch table is not yet added.
2015-06-15layers: Only print state at Draw calls, not at vkCmdBindDescriptorSets time.Tobin Ehlis
2015-06-15layers: When printing descriptor info in DrawState correctly handle case of ↵Tobin Ehlis
0 descriptors
2015-06-11layers: Migrate dynamic state checks to DrawState from ObjectTrackerTobin Ehlis
Needed to improve the CB and DS state checks to cross-verify with PSO state. Since that state is already tracked in DrawState makes sense to move these checks over.
2015-06-10layers: XChange #58 fix - Correctly copy Vtx BindingsTobin Ehlis
2015-06-10layers: LunarXChange #55 fix - Only print DS state when we have last bound DSTobin Ehlis
2015-06-04Fix a bunch of mismatched new[]/delete.Chris Forbes
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
2015-06-02v98: replace vkUpdateDescriptors() by vkUpdateDescriptorSets()Chia-I Wu
Only slightly tested. Conflicts: include/vulkan.h
2015-06-02v98: remove vk{Begin,End}DescriptorPoolUpdate()Chia-I Wu
Assume VK_DESCRIPTOR_UPDATE_MODE_FASTEST. Conflicts: icd/intel/desc.c include/vulkan.h
2015-06-02v98: rename count to arraySize in VkDescriptorSetLayoutBindingChia-I Wu
Conflicts: include/vulkan.h
2015-05-28layers: Improved DrawState Descriptor Update validationTobin Ehlis
2015-05-27layers: Add some early returns in DrawState fail cases to prevent segFs in ↵Tobin Ehlis
driver
2015-05-27layers: Fix drawState lock bug and don't call driver w/ bad pipelineTobin Ehlis
2015-05-27layers: Fix some DrawState checksTobin Ehlis
2015-05-22vulkan.h: V96 -- xglCmdBlitImage filter mode. Bug# 13759.Mark Lobodzinski
2015-05-22layers: Add additional check for RenderPass sampleCountTobin Ehlis
Was checking PSO MSAA num samples against FrameBuffer sampleCount. This change adds an additional check against RenderPass sampleCount.
2015-05-08vulkan.h: V94 -- remove vkCmdCloneImageData. Bug #16550.Mark Lobodzinski
2015-05-01bug-13751: Update vkCmdClearColorImage color parameterCourtney Goeltzenleuchter
svn ID: 30918 Change the VkCmdClearColroImage color parameter be a pointer.
2015-04-29layers: Fix msvc++ iterator issuesDavid Pinedo
2015-04-29draw_state: Fix another MSVC++ debug assertCourtney Goeltzenleuchter
2015-04-29draw_state: Fix Microsoft C++ iterator assertCourtney Goeltzenleuchter
The Microsoft Visual Studio vector library does not like this code: delete (*ii).second->pCmds.back(); Internally, pCmds.back() does a pCmds.end() - 1 and since the vector we are using (*ii).second->pCmds is not local, the library throws an assert about the iterator being non-incrementable. The assert if fixed by making a local copy of the vector and working on that.
2015-04-29draw_state: Fix Microsoft C++ assertCourtney Goeltzenleuchter
The C++ runtime library was issuing an assert on the following line: for (vector<CMD_NODE*>::iterator ii=pCB->pCmds.begin(); ii!=pCB->pCmds.end(); ++ii) { It was complaining that the iterator ii was not compatible with the pCmds.end(). Tracing down the assert, the C++ library did not like the fact that we were accessing pCmds through a pointer (pCB). If we made a local copy of the pCmds vector the assert went away.
2015-04-22misc: Changes to fix warnings in Windows / VC++ buildTony Barbour
2015-04-22misc: Changes to clean up warnings in Release buildTony Barbour
2015-04-22vkEnumerateLayers: Update to match upstreamCourtney Goeltzenleuchter
The upstream vulkan.h header removed maxLayerCount parameter from vkEnumerateLayers. This patch implements that change for the sample driver and layers.
2015-04-17update to vulkan.h header version 90, bug 13529Mike Stroyan
2015-04-17vulkan: Update vulkan.h for revision 89 -- Bug #13743Mark Lobodzinski
Generalizing the VkDescriptorSetLayoutChain object.
2015-04-17vulkan: Update vulkan.h for revision 88 -- Bug #13744Cody Northrop
Rename some vkCmdBindDescriptorSets parameters and add a dynamic offset count. v2: Add a check against dynamicOffsetCount before copying dset data.
2015-04-16vulkan: Remove VkDescriptorSetLayoutChain from vkCmdBindDescriptorSetsChia-I Wu
This is part of r30446 on vulkan.h, discussed in bug 13632. Meaty chunks of this commit done by Olv, basic hook up and testing by Cody.
2015-04-16Bug 13632 Header 84 Assorted questions and comments on vulkan.hTony Barbour
2015-04-16bug 13632: Convert commands to plural formCourtney Goeltzenleuchter
part of multiple commits to implement bug #13632. bug 13632 header version 82 svn version: 30446 This patch converts: vkCmdBindVertexBuffer -> vkCmdBindVertexBuffers vkQueueAddMemReference -> vkQueueAddMemReferences vkQueueRemoveMemReference -> vkQueueRemoveMemReferences