mirror of
https://github.com/utmapp/gfxstream.git
synced 2026-12-01 22:13:31 -10:00
... as VkSnapshotApiCallInfo* is a pointer into a
std::vector<VkSnapshotApiCallInfo> which can be invalidated during
multi threaded VK usage when the std::vector<> is resized.
Bug: b/422483825
Test: bazel test common/end2end:gfxstream_end2end_tests \
--graphics_drivers=gles_angle_vulkan_swiftshader \
--test_arg="--gtest_filter=*MultiThreadedResetCommandBuffer*VulkanSnapshots*" \
--test_arg="--gtest_repeat=100" \
--test_output=streamed
Change-Id: I8ea16eea8792b11056d6d7f17e370f9aa045406c
70 lines
2.1 KiB
C++
70 lines
2.1 KiB
C++
// Copyright (C) 2018 The Android Open Source Project
|
|
// Copyright (C) 2018 Google Inc.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
// Autogenerated module VkDecoder
|
|
//
|
|
// (header) generated by scripts/genvk.py -registry
|
|
// ../../../../../hardware/google/gfxstream/third_party/vulkan_docs/xml/vk.xml -registryGfxstream
|
|
// xml/vk_gfxstream.xml cereal -o ../../../../../hardware/google/gfxstream/host/vulkan/cereal
|
|
//
|
|
// Please do not modify directly;
|
|
// re-run mesa3d/src/gfxstream/codegen/generate-gfxstream-vulkan.sh,
|
|
// or directly from Python by defining:
|
|
// VULKAN_REGISTRY_XML_DIR : Directory containing vk.xml
|
|
// VULKAN_REGISTRY_SCRIPTS_DIR : Directory containing genvk.py
|
|
// CEREAL_OUTPUT_DIR: Where to put the generated sources.
|
|
//
|
|
// python3 $VULKAN_REGISTRY_SCRIPTS_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o
|
|
// $CEREAL_OUTPUT_DIR
|
|
//
|
|
#pragma once
|
|
#include <vulkan/vulkan.h>
|
|
|
|
#include <memory>
|
|
|
|
#include "VkDecoderContext.h"
|
|
#include "gfxstream/host/ProcessResources.h"
|
|
#include "vk_android_native_buffer_gfxstream.h"
|
|
#include "vulkan_gfxstream.h"
|
|
|
|
namespace gfxstream {
|
|
namespace base {
|
|
class BumpPool;
|
|
} // namespace base
|
|
} // namespace gfxstream
|
|
|
|
namespace gfxstream {
|
|
class IOStream;
|
|
} // namespace gfxstream
|
|
|
|
namespace gfxstream {
|
|
namespace vk {
|
|
|
|
class VkDecoder {
|
|
public:
|
|
VkDecoder();
|
|
~VkDecoder();
|
|
void setForSnapshotLoad(bool forSnapshotLoad);
|
|
size_t decode(void* buf, size_t bufsize, IOStream* stream,
|
|
const ProcessResources* processResources, const VkDecoderContext&);
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> mImpl;
|
|
};
|
|
|
|
} // namespace vk
|
|
} // namespace gfxstream
|