r600/sfn: add emit if start cayman support

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5084>
This commit is contained in:
Dave Airlie 2020-05-18 16:40:55 +10:00 committed by Marge Bot
parent 4746796b82
commit b11aa12253

View file

@ -485,11 +485,11 @@ bool AssemblyFromShaderLegacyImpl::emit_export(const ExportInstruction & exi)
bool AssemblyFromShaderLegacyImpl::emit_if_start(const IfInstruction & if_instr)
{
assert(m_bc->chip_class == EVERGREEN);
bool needs_workaround = false;
int elems = m_callstack.push(FC_PUSH_VPM);
if (m_bc->chip_class == CAYMAN && m_bc->stack.loop > 1)
needs_workaround = true;
if (m_bc->family != CHIP_HEMLOCK &&
m_bc->family != CHIP_CYPRESS &&
m_bc->family != CHIP_JUNIPER) {