mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
r600/sfn: Use valid pixel mode only in fragment shaders
The doc says that it should only be set in the FS. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10608>
This commit is contained in:
parent
9bf5033941
commit
129de7ee60
1 changed files with 3 additions and 3 deletions
|
|
@ -757,7 +757,7 @@ bool AssemblyFromShaderLegacyImpl::visit(const FetchInstruction& fetch_instr)
|
|||
}
|
||||
}
|
||||
|
||||
m_bc->cf_last->vpm = fetch_instr.use_vpm();
|
||||
m_bc->cf_last->vpm = (m_bc->type == PIPE_SHADER_FRAGMENT) && fetch_instr.use_vpm();
|
||||
m_bc->cf_last->barrier = 1;
|
||||
|
||||
return true;
|
||||
|
|
@ -858,7 +858,7 @@ bool AssemblyFromShaderLegacyImpl::visit(const GDSInstr& instr)
|
|||
int r = r600_bytecode_add_gds(m_bc, &gds);
|
||||
if (r)
|
||||
return false;
|
||||
m_bc->cf_last->vpm = 1;
|
||||
m_bc->cf_last->vpm = PIPE_SHADER_FRAGMENT == m_bc->type;
|
||||
m_bc->cf_last->barrier = 1;
|
||||
return true;
|
||||
}
|
||||
|
|
@ -1041,7 +1041,7 @@ bool AssemblyFromShaderLegacyImpl::visit(const RatInstruction& instr)
|
|||
instr.data_swz(2) == PIPE_SWIZZLE_MAX) ;
|
||||
}
|
||||
|
||||
cf->vpm = 1;
|
||||
cf->vpm = m_bc->type == PIPE_SHADER_FRAGMENT;
|
||||
cf->barrier = 1;
|
||||
cf->mark = instr.need_ack();
|
||||
cf->output.elem_size = instr.elm_size();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue