mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-02 04:29:14 +01:00
[dxso] Implicitly define Color inputs as centroid in PS <= 2
This commit is contained in:
parent
774f74cd36
commit
3a6c0cf605
@ -624,6 +624,9 @@ namespace dxvk {
|
|||||||
const bool pixel = m_programInfo.type() == DxsoProgramTypes::PixelShader;
|
const bool pixel = m_programInfo.type() == DxsoProgramTypes::PixelShader;
|
||||||
const bool vertex = !pixel;
|
const bool vertex = !pixel;
|
||||||
|
|
||||||
|
if (pixel && input && semantic.usage == DxsoUsage::Color && m_programInfo.majorVersion() < 3)
|
||||||
|
centroid = true;
|
||||||
|
|
||||||
uint32_t slot = 0;
|
uint32_t slot = 0;
|
||||||
|
|
||||||
uint32_t& slots = input
|
uint32_t& slots = input
|
||||||
@ -1165,7 +1168,7 @@ namespace dxvk {
|
|||||||
this->emitDclInterface(
|
this->emitDclInterface(
|
||||||
false, reg.id.num,
|
false, reg.id.num,
|
||||||
DxsoSemantic{ DxsoUsage::Color, reg.id.num },
|
DxsoSemantic{ DxsoUsage::Color, reg.id.num },
|
||||||
IdentityWriteMask, false); // TODO: Do we want to make this centroid?
|
IdentityWriteMask, false);
|
||||||
|
|
||||||
m_module.opStore(ptr.id, m_module.constfReplicant(0, ptr.type.ccount));
|
m_module.opStore(ptr.id, m_module.constfReplicant(0, ptr.type.ccount));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user