1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxso] Implicitly define Color inputs as centroid in PS <= 2

This commit is contained in:
Joshua Ashton 2020-05-09 20:49:55 +01:00
parent 774f74cd36
commit 3a6c0cf605

View File

@ -624,6 +624,9 @@ namespace dxvk {
const bool pixel = m_programInfo.type() == DxsoProgramTypes::PixelShader;
const bool vertex = !pixel;
if (pixel && input && semantic.usage == DxsoUsage::Color && m_programInfo.majorVersion() < 3)
centroid = true;
uint32_t slot = 0;
uint32_t& slots = input
@ -1165,7 +1168,7 @@ namespace dxvk {
this->emitDclInterface(
false, 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));
}