rsx/textures: Warnings cleanup

This commit is contained in:
kd-11 2019-08-31 14:32:52 +03:00 committed by kd-11
parent 401bd9112a
commit 0158a88c88
2 changed files with 20 additions and 15 deletions

View file

@ -4,6 +4,25 @@
#include "../RSXThread.h"
#include "../rsx_utils.h"
namespace rsx
{
void typeless_xfer::analyse()
{
// TODO: This method needs to be re-evaluated
// Check if scaling hints match, which likely means internal formats match as well
// Only possible when doing RTT->RTT transfer with non-base-type formats like WZYX16/32
if (src_is_typeless && dst_is_typeless && src_gcm_format == dst_gcm_format)
{
if (fcmp(src_scaling_hint, dst_scaling_hint) && !fcmp(src_scaling_hint, 1.f))
{
verify(HERE), src_is_depth == dst_is_depth;
src_is_typeless = dst_is_typeless = false;
src_scaling_hint = dst_scaling_hint = 1.f;
}
}
}
}
namespace
{
// FIXME: GSL as_span break build if template parameter is non const with current revision.

View file

@ -81,21 +81,7 @@ namespace rsx
texture_upload_context src_context = texture_upload_context::blit_engine_src;
texture_upload_context dst_context = texture_upload_context::blit_engine_dst;
void analyse()
{
if (src_is_typeless && dst_is_typeless)
{
if (src_scaling_hint == dst_scaling_hint &&
src_scaling_hint != 1.f)
{
if (src_is_depth == dst_is_depth)
{
src_is_typeless = dst_is_typeless = false;
src_scaling_hint = dst_scaling_hint = 1.f;
}
}
}
}
void analyse();
};
}