Remove some leftover state

This commit is contained in:
IndecisiveTurtle 2024-09-15 22:08:01 +03:00
parent a89c79d3cf
commit e88d1bfd0d
2 changed files with 0 additions and 20 deletions

View File

@ -305,20 +305,6 @@ struct Liverpool {
BitField<20, 3, CompareFunc> stencil_bf_func;
BitField<30, 1, u32> enable_color_writes_on_depth_fail;
BitField<31, 1, u32> disable_color_writes_on_depth_pass;
constexpr u32 DepthState() const {
static constexpr u32 DepthMask =
decltype(depth_enable)::mask | decltype(depth_write_enable)::mask |
decltype(depth_bounds_enable)::mask | decltype(depth_func)::mask;
return raw & DepthMask;
}
constexpr u32 StencilState() const {
static constexpr u32 StencilMask =
decltype(stencil_enable)::mask | decltype(backface_enable)::mask |
decltype(stencil_ref_func)::mask | decltype(stencil_bf_func)::mask;
return raw & StencilMask;
}
};
enum class StencilFunc : u32 {
@ -348,11 +334,6 @@ struct Liverpool {
BitField<12, 4, StencilFunc> stencil_fail_back;
BitField<16, 4, StencilFunc> stencil_zpass_back;
BitField<20, 4, StencilFunc> stencil_zfail_back;
BitField<24, 8, u32> padding;
static constexpr u32 Mask() {
return ~decltype(padding)::mask;
}
};
union StencilRefMask {

View File

@ -167,7 +167,6 @@ const GraphicsPipeline* PipelineCache::GetGraphicsPipeline() {
}
const auto [it, is_new] = graphics_pipelines.try_emplace(graphics_key);
if (is_new) {
LOG_INFO(Render_Vulkan, "New pipeline");
it.value() = std::make_unique<GraphicsPipeline>(
instance, scheduler, desc_heap, graphics_key, *pipeline_cache, infos, modules);
}