mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-21 07:18:33 +00:00
GIVE ME SOMETHING
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
|
||||
namespace Tegra::Engines {
|
||||
|
||||
constexpr bool BYPASS_UNRESOLVED_RENDER_ENABLE = true;
|
||||
|
||||
/// First register id that is actually a Macro call.
|
||||
constexpr u32 MacroRegistersStart = 0xE00;
|
||||
|
||||
@@ -519,10 +517,6 @@ void Maxwell3D::ProcessQueryCondition() {
|
||||
execute_on = true;
|
||||
return;
|
||||
}
|
||||
if (BYPASS_UNRESOLVED_RENDER_ENABLE) {
|
||||
execute_on = true;
|
||||
return;
|
||||
}
|
||||
const GPUVAddr condition_address{regs.render_enable.Address()};
|
||||
switch (regs.render_enable_override) {
|
||||
case Regs::RenderEnable::Override::AlwaysRender:
|
||||
|
||||
@@ -44,6 +44,7 @@ struct GraphicsPipelineKey {
|
||||
BitField<8, 2, Maxwell::Tessellation::Spacing> tessellation_spacing;
|
||||
BitField<10, 1, u32> tessellation_clockwise;
|
||||
BitField<11, 3, Tegra::Engines::Maxwell3D::EngineHint> app_stage;
|
||||
BitField<14, 1, u32> viewport_scale_offset_enabled;
|
||||
};
|
||||
std::array<u32, 3> padding;
|
||||
VideoCommon::TransformFeedbackState xfb_state;
|
||||
|
||||
@@ -55,7 +55,7 @@ using VideoCommon::LoadPipelines;
|
||||
using VideoCommon::SerializePipeline;
|
||||
using Context = ShaderContext::Context;
|
||||
|
||||
constexpr u32 CACHE_VERSION = 20;
|
||||
constexpr u32 CACHE_VERSION = 21;
|
||||
|
||||
template <typename Container>
|
||||
auto MakeSpan(Container& container) {
|
||||
@@ -390,6 +390,7 @@ GraphicsPipeline* ShaderCache::CurrentGraphicsPipeline() {
|
||||
regs.tessellation.params.output_primitives.Value() ==
|
||||
Maxwell::Tessellation::OutputPrimitives::Triangles_CW);
|
||||
graphics_key.xfb_enabled.Assign(regs.transform_feedback_enabled != 0 ? 1 : 0);
|
||||
graphics_key.viewport_scale_offset_enabled.Assign(regs.viewport_scale_offset_enabled != 0);
|
||||
graphics_key.app_stage.Assign(maxwell3d->engine_state);
|
||||
if (graphics_key.xfb_enabled) {
|
||||
SetXfbState(graphics_key.xfb_state, regs);
|
||||
|
||||
@@ -141,6 +141,7 @@ void FixedPipelineState::Refresh(Tegra::Engines::Maxwell3D& maxwell3d, DynamicFe
|
||||
depth_enabled.Assign(regs.zeta_enable != 0 ? 1 : 0);
|
||||
depth_format.Assign(static_cast<u32>(regs.zeta.format));
|
||||
y_negate.Assign(regs.window_origin.mode != Maxwell::WindowOrigin::Mode::UpperLeft ? 1 : 0);
|
||||
viewport_scale_offset_enabled.Assign(regs.viewport_scale_offset_enabled != 0);
|
||||
|
||||
bool use_last_provoking_vertex = false;
|
||||
const bool provoking_vertex_available = features.has_provoking_vertex;
|
||||
|
||||
@@ -231,6 +231,7 @@ struct FixedPipelineState {
|
||||
BitField<15, 1, u32> alpha_to_coverage_enabled;
|
||||
BitField<16, 1, u32> alpha_to_one_enabled;
|
||||
BitField<17, 3, Tegra::Engines::Maxwell3D::EngineHint> app_stage;
|
||||
BitField<20, 1, u32> viewport_scale_offset_enabled;
|
||||
};
|
||||
std::array<u8, Maxwell::NumRenderTargets> color_formats;
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ using VideoCommon::FileEnvironment;
|
||||
using VideoCommon::GenericEnvironment;
|
||||
using VideoCommon::GraphicsEnvironment;
|
||||
|
||||
constexpr u32 CACHE_VERSION = 23;
|
||||
constexpr u32 CACHE_VERSION = 24;
|
||||
constexpr size_t VULKAN_CACHE_FLUSH_PIPELINES = 128;
|
||||
constexpr size_t VULKAN_CACHE_FLUSH_MIN_SECONDS = 30;
|
||||
constexpr std::array<char, 8> VULKAN_CACHE_MAGIC_NUMBER{'y', 'u', 'z', 'u', 'v', 'k', 'c', 'h'};
|
||||
|
||||
Reference in New Issue
Block a user