mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
rsx/fp: Do not swizzle shadow lookups
This commit is contained in:
parent
459a7ba5a2
commit
d7662e54cc
1 changed files with 5 additions and 1 deletions
|
@ -553,10 +553,14 @@ bool FragmentProgramDecompiler::handle_tex_srb(u32 opcode)
|
||||||
SetDst(getFunction(FUNCTION::FUNCTION_TEXTURE_SAMPLE1D_PROJ));
|
SetDst(getFunction(FUNCTION::FUNCTION_TEXTURE_SAMPLE1D_PROJ));
|
||||||
return true;
|
return true;
|
||||||
case rsx::texture_dimension_extended::texture_dimension_2d:
|
case rsx::texture_dimension_extended::texture_dimension_2d:
|
||||||
SetDst(getFunction(FUNCTION::FUNCTION_TEXTURE_SAMPLE2D_PROJ));
|
|
||||||
//Note shadow comparison only returns a true/false result!
|
//Note shadow comparison only returns a true/false result!
|
||||||
if (DstExpectsSca() && (m_prog.shadow_textures & (1 << dst.tex_num)))
|
if (DstExpectsSca() && (m_prog.shadow_textures & (1 << dst.tex_num)))
|
||||||
|
{
|
||||||
m_shadow_sampled_textures |= (1 << dst.tex_num);
|
m_shadow_sampled_textures |= (1 << dst.tex_num);
|
||||||
|
SetDst(getFunction(FUNCTION::FUNCTION_TEXTURE_SAMPLE2D_PROJ), false); //No swizzle mask on shadow lookup
|
||||||
|
}
|
||||||
|
else
|
||||||
|
SetDst(getFunction(FUNCTION::FUNCTION_TEXTURE_SAMPLE2D_PROJ));
|
||||||
return true;
|
return true;
|
||||||
case rsx::texture_dimension_extended::texture_dimension_cubemap:
|
case rsx::texture_dimension_extended::texture_dimension_cubemap:
|
||||||
SetDst(getFunction(FUNCTION::FUNCTION_TEXTURE_SAMPLECUBE_PROJ));
|
SetDst(getFunction(FUNCTION::FUNCTION_TEXTURE_SAMPLECUBE_PROJ));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue