mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
Address feedback
This commit is contained in:
1 parent
d9cfcf215e
commit
8e0b82f92e
2 files changed
+5
-13
No files matched your search
@@ -235,19 +235,11 @@ bool PresentationCommon::UpdatePostShader() {
|
||||
const ShaderInfo *stereoShaderInfo = GetPostShaderInfo(g_Config.sStereoToMonoShader);
|
||||
if (stereoShaderInfo) {
|
||||
bool result = CompilePostShader(stereoShaderInfo, &stereoPipeline_);
|
||||
if (!result) {
|
||||
// We won't have a stereo shader. We have to check for this later.
|
||||
delete stereoShaderInfo_;
|
||||
stereoShaderInfo_ = nullptr;
|
||||
stereoPipeline_ = nullptr;
|
||||
} else {
|
||||
if (result) {
|
||||
stereoShaderInfo_ = new ShaderInfo(*stereoShaderInfo);
|
||||
}
|
||||
} else {
|
||||
// We won't have a stereo shader. We have to check for this later.
|
||||
delete stereoShaderInfo_;
|
||||
stereoShaderInfo_ = nullptr;
|
||||
stereoPipeline_ = nullptr;
|
||||
WARN_LOG(G3D, "Failed to get info about stereo shader '%s'", g_Config.sStereoToMonoShader.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -85,14 +85,14 @@ void VulkanComputeShaderManager::InitDeviceObjects(Draw::DrawContext *draw) {
|
||||
|
||||
std::vector<VkDescriptorPoolSize> dpTypes;
|
||||
dpTypes.resize(2);
|
||||
dpTypes[0].descriptorCount = 4096;
|
||||
dpTypes[0].descriptorCount = 8192;
|
||||
dpTypes[0].type = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
|
||||
dpTypes[1].descriptorCount = 2048;
|
||||
dpTypes[1].descriptorCount = 4096;
|
||||
dpTypes[1].type = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE;
|
||||
|
||||
VkDescriptorPoolCreateInfo dp = { VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO };
|
||||
dp.flags = 0; // Don't want to mess around with individually freeing these, let's go fixed each frame and zap the whole array. Might try the dynamic approach later.
|
||||
dp.maxSets = 2048; // GTA can end up creating more than 1000 textures in the first frame!
|
||||
dp.maxSets = 4096; // GTA can end up creating more than 1000 textures in the first frame!
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(frameData_); i++) {
|
||||
frameData_[i].descPool.Create(vulkan_, dp, dpTypes);
|
||||
|
||||
Reference in new issue
Block a user