Browse Source

Reduce precision of Medium a little bit

pull/3129/head
MaranBr 3 weeks ago
parent
commit
c74227db23
  1. 2
      src/video_core/dma_pusher.cpp
  2. 2
      src/video_core/engines/maxwell_3d.cpp
  3. 4
      src/video_core/query_cache/query_cache.h
  4. 4
      src/video_core/renderer_opengl/gl_rasterizer.cpp
  5. 6
      src/video_core/renderer_vulkan/vk_query_cache.cpp
  6. 2
      src/video_core/renderer_vulkan/vk_rasterizer.cpp

2
src/video_core/dma_pusher.cpp

@ -103,7 +103,7 @@ bool DmaPusher::Step() {
ProcessCommands(headers);
};
const bool use_safe = Settings::IsDMALevelDefault() ? (Settings::IsGPULevelMedium() || Settings::IsGPULevelHigh()) : Settings::IsDMALevelSafe();
const bool use_safe = Settings::IsDMALevelDefault() ? Settings::IsGPULevelHigh() : Settings::IsDMALevelSafe();
if (use_safe) {
safe_process();

2
src/video_core/engines/maxwell_3d.cpp

@ -224,7 +224,7 @@ void Maxwell3D::ProcessMacro(u32 method, const u32* base_start, u32 amount, bool
}
void Maxwell3D::RefreshParametersImpl() {
if (!Settings::IsGPULevelMedium() && !Settings::IsGPULevelHigh()) {
if (!Settings::IsGPULevelHigh()) {
return;
}
size_t current_index = 0;

4
src/video_core/query_cache/query_cache.h

@ -260,7 +260,7 @@ void QueryCacheBase<Traits>::CounterReport(GPUVAddr addr, QueryType counter_type
};
u8* pointer = impl->device_memory.template GetPointer<u8>(cpu_addr);
u8* pointer_timestamp = impl->device_memory.template GetPointer<u8>(cpu_addr + 8);
bool is_synced = (!Settings::IsGPULevelMedium() && !Settings::IsGPULevelHigh()) && is_fence;
bool is_synced = !Settings::IsGPULevelHigh() && is_fence;
std::function<void()> operation([this, is_synced, streamer, query_base = query, query_location,
pointer, pointer_timestamp] {
if (True(query_base->flags & QueryFlagBits::IsInvalidated)) {
@ -294,7 +294,7 @@ void QueryCacheBase<Traits>::CounterReport(GPUVAddr addr, QueryType counter_type
if (is_fence) {
impl->rasterizer.SignalFence(std::move(operation));
} else {
if ((!Settings::IsGPULevelMedium() && !Settings::IsGPULevelHigh()) && counter_type == QueryType::Payload) {
if (!Settings::IsGPULevelHigh() && counter_type == QueryType::Payload) {
if (has_timestamp) {
u64 timestamp = impl->gpu.GetTicks();
u64 value = static_cast<u64>(payload);

4
src/video_core/renderer_opengl/gl_rasterizer.cpp

@ -500,7 +500,7 @@ bool RasterizerOpenGL::MustFlushRegion(DAddr addr, u64 size, VideoCommon::CacheT
return true;
}
}
if (!Settings::IsGPULevelMedium() && !Settings::IsGPULevelHigh()) {
if (!Settings::IsGPULevelHigh()) {
return false;
}
if (True(which & VideoCommon::CacheType::TextureCache)) {
@ -679,7 +679,7 @@ void RasterizerOpenGL::TickFrame() {
bool RasterizerOpenGL::AccelerateConditionalRendering() {
gpu_memory->FlushCaching();
if (Settings::IsGPULevelMedium() || Settings::IsGPULevelHigh()) {
if (Settings::IsGPULevelHigh()) {
// Reimplement Host conditional rendering.
return false;
}

6
src/video_core/renderer_vulkan/vk_query_cache.cpp

@ -1416,9 +1416,9 @@ bool QueryCacheRuntime::HostConditionalRenderingCompareValues(VideoCommon::Looku
}
auto driver_id = impl->device.GetDriverID();
const bool is_gpu_medium_or_high = (Settings::IsGPULevelMedium() || Settings::IsGPULevelHigh());
const bool is_gpu_high = Settings::IsGPULevelHigh();
if ((!is_gpu_medium_or_high && driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) || driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY || driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
if ((!is_gpu_high && driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) || driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY || driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
return true;
}
@ -1434,7 +1434,7 @@ bool QueryCacheRuntime::HostConditionalRenderingCompareValues(VideoCommon::Looku
}
}
if (!is_gpu_medium_or_high) {
if (!is_gpu_high) {
return true;
}

2
src/video_core/renderer_vulkan/vk_rasterizer.cpp

@ -586,7 +586,7 @@ bool RasterizerVulkan::MustFlushRegion(DAddr addr, u64 size, VideoCommon::CacheT
return true;
}
}
if (!Settings::IsGPULevelMedium() && !Settings::IsGPULevelHigh()) {
if (!Settings::IsGPULevelHigh()) {
return false;
}
if (True(which & VideoCommon::CacheType::TextureCache)) {

Loading…
Cancel
Save