Skip to content

Commit

Permalink
Ignore false positive validation error
Browse files Browse the repository at this point in the history
 (happens with newer SDK)
  • Loading branch information
sergcpp committed Nov 22, 2024
1 parent 99baa45 commit 364f7e3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-nv-output"
test-args: "--device NV --nocpu -vl 0"
test-args: "--device NV --nocpu"
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: always()
Expand Down
2 changes: 1 addition & 1 deletion internal/Vk/ContextVK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ VKAPI_ATTR VkBool32 VKAPI_CALL DebugReportCallback(const VkDebugReportFlagsEXT f
auto *ctx = reinterpret_cast<const Context *>(pUserData);

bool ignore = g_ignore_optick_errors && (location == 0x45e90123 || location == 0xffffffff9cacd67a);
ignore |= (location == 0x0000000079de34d4); // dynamic rendering support is incomplete
ignore |= (location == 0x000000004dae5635); // layout warning when blitting within the same image
ignore |= (location == 0x00000000a5625282); // cooperative matrix type must be A Type
if (!ignore) {
ctx->log()->Error("%s: %s\n", pLayerPrefix, pMessage);
}
Expand Down
24 changes: 12 additions & 12 deletions internal/Vk/ContextVK.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,18 @@ class Context {
bool frame_cpu_synced[MaxFramesInFlight] = {};

// resources scheduled for deferred destruction
SmallVector<VkImage, 128> images_to_destroy[MaxFramesInFlight];
SmallVector<VkImageView, 128> image_views_to_destroy[MaxFramesInFlight];
SmallVector<VkSampler, 128> samplers_to_destroy[MaxFramesInFlight];
SmallVector<MemAllocation, 128> allocs_to_free[MaxFramesInFlight];
SmallVector<VkBuffer, 128> bufs_to_destroy[MaxFramesInFlight];
SmallVector<VkBufferView, 128> buf_views_to_destroy[MaxFramesInFlight];
SmallVector<VkDeviceMemory, 128> mem_to_free[MaxFramesInFlight];
SmallVector<VkRenderPass, 128> render_passes_to_destroy[MaxFramesInFlight];
SmallVector<VkDescriptorPool, 16> descriptor_pools_to_destroy[MaxFramesInFlight];
SmallVector<VkPipelineLayout, 128> pipeline_layouts_to_destroy[MaxFramesInFlight];
SmallVector<VkPipeline, 128> pipelines_to_destroy[MaxFramesInFlight];
SmallVector<VkAccelerationStructureKHR, 128> acc_structs_to_destroy[MaxFramesInFlight];
std::vector<VkImage> images_to_destroy[MaxFramesInFlight];
std::vector<VkImageView> image_views_to_destroy[MaxFramesInFlight];
std::vector<VkSampler> samplers_to_destroy[MaxFramesInFlight];
std::vector<MemAllocation> allocs_to_free[MaxFramesInFlight];
std::vector<VkBuffer> bufs_to_destroy[MaxFramesInFlight];
std::vector<VkBufferView> buf_views_to_destroy[MaxFramesInFlight];
std::vector<VkDeviceMemory> mem_to_free[MaxFramesInFlight];
std::vector<VkRenderPass> render_passes_to_destroy[MaxFramesInFlight];
std::vector<VkDescriptorPool> descriptor_pools_to_destroy[MaxFramesInFlight];
std::vector<VkPipelineLayout> pipeline_layouts_to_destroy[MaxFramesInFlight];
std::vector<VkPipeline> pipelines_to_destroy[MaxFramesInFlight];
std::vector<VkAccelerationStructureKHR> acc_structs_to_destroy[MaxFramesInFlight];

static int QueryAvailableDevices(ILog *log, gpu_device_t out_devices[], int capacity);

Expand Down

0 comments on commit 364f7e3

Please sign in to comment.