mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
rsx/textures: Warnings cleanup
This commit is contained in:
parent
401bd9112a
commit
0158a88c88
2 changed files with 20 additions and 15 deletions
|
@ -4,6 +4,25 @@
|
||||||
#include "../RSXThread.h"
|
#include "../RSXThread.h"
|
||||||
#include "../rsx_utils.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
|
namespace
|
||||||
{
|
{
|
||||||
// FIXME: GSL as_span break build if template parameter is non const with current revision.
|
// FIXME: GSL as_span break build if template parameter is non const with current revision.
|
||||||
|
|
|
@ -81,21 +81,7 @@ namespace rsx
|
||||||
texture_upload_context src_context = texture_upload_context::blit_engine_src;
|
texture_upload_context src_context = texture_upload_context::blit_engine_src;
|
||||||
texture_upload_context dst_context = texture_upload_context::blit_engine_dst;
|
texture_upload_context dst_context = texture_upload_context::blit_engine_dst;
|
||||||
|
|
||||||
void analyse()
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue