rsx: Fix texture renormalization flag and fix windows build

This commit is contained in:
kd-11 2024-11-26 00:38:57 +03:00 committed by kd-11
parent c9a7abdd09
commit b4a72b6223
3 changed files with 6 additions and 4 deletions

View File

@ -99,6 +99,6 @@ namespace rsx
}
auto& rsxdma = g_fxo->get<rsx::dma_manager>();
rsxdma.backend_ctrl(mm_backend_ctrl::mm_flush, nullptr);
rsxdma.backend_ctrl(mm_backend_ctrl::cmd_mm_flush, nullptr);
}
}

View File

@ -30,7 +30,7 @@ namespace rsx
enum mm_backend_ctrl : u32
{
mm_flush = 0x81000000,
cmd_mm_flush = 0x81000000,
};
void mm_protect(void* start, u64 length, utils::protection prot);

View File

@ -2604,7 +2604,9 @@ namespace rsx
rsx_log.error("Depth texture bound to pipeline with unexpected format 0x%X", format);
}
}
else if (!backend_config.supports_hw_renormalization)
else if (!backend_config.supports_hw_renormalization &&
tex.min_filter() == rsx::texture_minify_filter::nearest &&
tex.mag_filter() == rsx::texture_magnify_filter::nearest)
{
switch (format)
{
@ -3639,7 +3641,7 @@ namespace rsx
{
switch (request_code)
{
case rsx::mm_backend_ctrl::mm_flush:
case rsx::mm_backend_ctrl::cmd_mm_flush:
rsx::mm_flush();
break;
default: