shader: add FmulPostFactor LUT table

This commit is contained in:
Nguyen Dac Nam
2020-02-21 23:19:39 +07:00
committed by GitHub
parent fe8e5d8ae4
commit bfb4950bd5

View File

@@ -156,6 +156,16 @@ struct make_unsigned<Tegra::Shader::Register> {
namespace Tegra::Shader {
static constexpr float FmulPostFactor[] = {
1.000f, // None
0.500f, // Devide 2
0.250f, // Devide 4
0.125f, // Devide 8
2.000f, // Mul 2
4.000f, // Mul 4
8.000f, // Mul 8
};
enum class Pred : u64 {
UnusedIndex = 0x7,
NeverExecute = 0xF,