Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,11 @@ VulkanDevice::VulkanDevice(const PresentationWindow* window) : state(std::make_u
poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
poolInfo.queueFamilyIndex = family;
check(state->DeviceFunction<PFN_vkCreateCommandPool>("vkCreateCommandPool")(state->device, &poolInfo, nullptr, &state->pool), "vkCreateCommandPool");
static const bool procTable = std::getenv("APS5_NO_PROC_TABLE") == nullptr;
if (procTable) {
Graphics::FillDeviceFunctions(graphicsContext(), state->deviceFunctions);
state->functionsReady = true;
}
Graphics::PrepareImportWatch(graphicsContext());
state->bufferPool = std::make_shared<Graphics::BufferPool>(graphicsContext());
state->emptyBuffer = std::make_unique<Graphics::Buffer>(graphicsContext(), Graphics::EmptyBufferBytes, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT);
Expand All @@ -1007,14 +1012,6 @@ VulkanDevice::VulkanDevice(const PresentationWindow* window) : state(std::make_u
state->samplerCache = std::make_unique<Graphics::SamplerCache>();
state->recorder = std::make_unique<Graphics::Recorder>(graphicsContext(), state->timelineSemaphores);
state->recorder->Activate();
// The entry points every record site uses, resolved once (APS5_NO_PROC_TABLE=1: per call, as
// before), and the context copy graphicsContext() hands out from here on: built after the
// recorder and the descriptor cache exist, so it carries them.
static const bool procTable = std::getenv("APS5_NO_PROC_TABLE") == nullptr;
if (procTable) {
Graphics::FillDeviceFunctions(graphicsContext(), state->deviceFunctions);
state->functionsReady = true;
}
state->context = buildContext();
state->contextReady = true;
if (window != nullptr) {
Expand Down