mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 00:40:11 +00:00
Correctly fetch correct pitch and depth for textures from RSX
Include vertex textures too Set correct stride for vertex texture params Change references to gl_Position in D3D12FragmentProgramDecompiler Revert bad commit
This commit is contained in:
parent
9671a654b7
commit
7d70be42af
@ -202,12 +202,12 @@ namespace rsx
|
|||||||
|
|
||||||
u16 texture::depth() const
|
u16 texture::depth() const
|
||||||
{
|
{
|
||||||
return method_registers[NV4097_SET_TEXTURE_CONTROL3] >> 20;
|
return method_registers[NV4097_SET_TEXTURE_CONTROL3 + m_index] >> 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 texture::pitch() const
|
u32 texture::pitch() const
|
||||||
{
|
{
|
||||||
return method_registers[NV4097_SET_TEXTURE_CONTROL3] & 0xfffff;
|
return method_registers[NV4097_SET_TEXTURE_CONTROL3 + m_index] & 0xfffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vertex_texture::init(u8 index)
|
void vertex_texture::init(u8 index)
|
||||||
@ -386,11 +386,11 @@ namespace rsx
|
|||||||
|
|
||||||
u16 vertex_texture::depth() const
|
u16 vertex_texture::depth() const
|
||||||
{
|
{
|
||||||
return method_registers[NV4097_SET_VERTEX_TEXTURE_CONTROL3] >> 20;
|
return method_registers[NV4097_SET_VERTEX_TEXTURE_CONTROL3 + (m_index * 8)] >> 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 vertex_texture::pitch() const
|
u32 vertex_texture::pitch() const
|
||||||
{
|
{
|
||||||
return method_registers[NV4097_SET_VERTEX_TEXTURE_CONTROL3] & 0xfffff;
|
return method_registers[NV4097_SET_VERTEX_TEXTURE_CONTROL3 + (m_index * 8)] & 0xfffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user