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