Skip to content

Commit b0592ee

Browse files
committed
another rebase
1 parent c687ba7 commit b0592ee

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "common/assert.h"
99
#include "common/scope_exit.h"
10+
#include "shader_recompiler/runtime_info.h"
1011
#include "video_core/amdgpu/resource.h"
1112
#include "video_core/buffer_cache/buffer_cache.h"
1213
#include "video_core/renderer_vulkan/vk_graphics_pipeline.h"
@@ -16,6 +17,8 @@
1617

1718
namespace Vulkan {
1819

20+
using Shader::LogicalStage; // TODO
21+
1922
GraphicsPipeline::GraphicsPipeline(const Instance& instance_, Scheduler& scheduler_,
2023
DescriptorHeap& desc_heap_, const GraphicsPipelineKey& key_,
2124
vk::PipelineCache pipeline_cache,

src/video_core/renderer_vulkan/vk_pipeline_common.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ class BufferCache;
1414

1515
namespace Vulkan {
1616

17-
static constexpr auto gp_stage_flags = vk::ShaderStageFlagBits::eVertex |
18-
vk::ShaderStageFlagBits::eGeometry |
19-
vk::ShaderStageFlagBits::eFragment;
17+
static constexpr auto gp_stage_flags =
18+
vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eTessellationControl |
19+
vk::ShaderStageFlagBits::eTessellationEvaluation | vk::ShaderStageFlagBits::eGeometry |
20+
vk::ShaderStageFlagBits::eFragment;
2021

2122
class Instance;
2223
class Scheduler;
@@ -44,7 +45,7 @@ class Pipeline {
4445
}
4546
}
4647

47-
const Shader::Info& GetStage(Shader::Stage stage) const noexcept {
48+
const Shader::Info& GetStage(Shader::LogicalStage stage) const noexcept {
4849
return *stages[u32(stage)];
4950
}
5051

src/video_core/renderer_vulkan/vk_rasterizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ bool Rasterizer::BindResources(const Pipeline* pipeline) {
350350
const auto& regs = liverpool->regs;
351351

352352
if (pipeline->IsCompute()) {
353-
const auto& info = pipeline->GetStage(Shader::Stage::Compute);
353+
const auto& info = pipeline->GetStage(Shader::LogicalStage::Compute);
354354

355355
// Most of the time when a metadata is updated with a shader it gets cleared. It means
356356
// we can skip the whole dispatch and update the tracked state instead. Also, it is not

0 commit comments

Comments
 (0)