mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 13:48:40 +00:00
shader_recompiler: Fix incorrect bary coord loads when unsupported (#3303)
* shader_recompiler: Fix incorrect bary coord loads when unsupported Also properly set sample rate shading * emit_spirv: Implement BaryCoordSmoothCentroid
This commit is contained in:
@@ -126,7 +126,10 @@ void Translator::EmitPrologue(IR::Block* first_block) {
|
||||
case LogicalStage::Fragment:
|
||||
dst_vreg =
|
||||
IterateBarycentrics(runtime_info, [this](u32 vreg, IR::Attribute attrib, u32 comp) {
|
||||
ir.SetVectorReg(IR::VectorReg(vreg), ir.GetAttribute(attrib, comp));
|
||||
if (profile.supports_amd_shader_explicit_vertex_parameter ||
|
||||
profile.supports_fragment_shader_barycentric) {
|
||||
ir.SetVectorReg(IR::VectorReg(vreg), ir.GetAttribute(attrib, comp));
|
||||
}
|
||||
});
|
||||
if (runtime_info.fs_info.addr_flags.pos_x_float_ena) {
|
||||
if (runtime_info.fs_info.en_flags.pos_x_float_ena) {
|
||||
|
||||
Reference in New Issue
Block a user