summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_ir.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-16 08:09:24 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-12-16 08:09:24 +0100
commite09c1fbc1f5868b1bff54a69a58fd6d788c54251 (patch)
tree4c77f899cb97fa590fbb028ef9ba3c5187900b99 /src/video_core/shader/shader_ir.h
parentshader/texture: Enable arrayed TLD4 (diff)
downloadyuzu-e09c1fbc1f5868b1bff54a69a58fd6d788c54251.tar
yuzu-e09c1fbc1f5868b1bff54a69a58fd6d788c54251.tar.gz
yuzu-e09c1fbc1f5868b1bff54a69a58fd6d788c54251.tar.bz2
yuzu-e09c1fbc1f5868b1bff54a69a58fd6d788c54251.tar.lz
yuzu-e09c1fbc1f5868b1bff54a69a58fd6d788c54251.tar.xz
yuzu-e09c1fbc1f5868b1bff54a69a58fd6d788c54251.tar.zst
yuzu-e09c1fbc1f5868b1bff54a69a58fd6d788c54251.zip
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r--src/video_core/shader/shader_ir.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index 04ae5f822..baed06ccd 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -350,7 +350,8 @@ private:
bool is_array);
Node4 GetTld4Code(Tegra::Shader::Instruction instr, Tegra::Shader::TextureType texture_type,
- bool depth_compare, bool is_array, bool is_aoffi, bool is_bindless);
+ bool depth_compare, bool is_array, bool is_aoffi, bool is_ptp,
+ bool is_bindless);
Node4 GetTldCode(Tegra::Shader::Instruction instr);
@@ -363,6 +364,8 @@ private:
std::vector<Node> GetAoffiCoordinates(Node aoffi_reg, std::size_t coord_count, bool is_tld4);
+ std::vector<Node> GetPtpCoordinates(std::array<Node, 2> ptp_regs);
+
Node4 GetTextureCode(Tegra::Shader::Instruction instr, Tegra::Shader::TextureType texture_type,
Tegra::Shader::TextureProcessMode process_mode, std::vector<Node> coords,
Node array, Node depth_compare, u32 bias_offset, std::vector<Node> aoffi,