mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 10:24:10 +01:00
[dxso] Ensure pow base is >= 0 in LIT
This commit is contained in:
parent
2735988fa2
commit
d799b44d91
@ -1997,7 +1997,7 @@ namespace dxvk {
|
||||
|
||||
if (mask[0]) resultIndices[index++] = m_module.constf32(1.0f);
|
||||
if (mask[1]) resultIndices[index++] = m_module.opFMax(scalarTypeId, srcX, m_module.constf32(0));
|
||||
if (mask[2]) resultIndices[index++] = m_module.opPow (scalarTypeId, srcY, power);
|
||||
if (mask[2]) resultIndices[index++] = m_module.opPow (scalarTypeId, m_module.opFMax(scalarTypeId, srcY, m_module.constf32(0)), power);
|
||||
if (mask[3]) resultIndices[index++] = m_module.constf32(1.0f);
|
||||
|
||||
const uint32_t boolType = m_module.defBoolType();
|
||||
|
Loading…
Reference in New Issue
Block a user