mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-11 22:29:15 +01:00
[dxbc] Implemented Nop instruction
Required for Metal Gear Solid V.
This commit is contained in:
parent
f3544cc8e1
commit
8ea17e7a25
@ -96,6 +96,9 @@ namespace dxvk {
|
|||||||
case DxbcInstClass::Interpolate:
|
case DxbcInstClass::Interpolate:
|
||||||
return this->emitInterpolate(ins);
|
return this->emitInterpolate(ins);
|
||||||
|
|
||||||
|
case DxbcInstClass::NoOperation:
|
||||||
|
return;
|
||||||
|
|
||||||
case DxbcInstClass::TextureQuery:
|
case DxbcInstClass::TextureQuery:
|
||||||
return this->emitTextureQuery(ins);
|
return this->emitTextureQuery(ins);
|
||||||
|
|
||||||
|
@ -282,7 +282,7 @@ namespace dxvk {
|
|||||||
{ DxbcOperandKind::SrcReg, DxbcScalarType::Float32 },
|
{ DxbcOperandKind::SrcReg, DxbcScalarType::Float32 },
|
||||||
} },
|
} },
|
||||||
/* Nop */
|
/* Nop */
|
||||||
{ },
|
{ 0, DxbcInstClass::NoOperation },
|
||||||
/* Not */
|
/* Not */
|
||||||
{ 2, DxbcInstClass::VectorAlu, {
|
{ 2, DxbcInstClass::VectorAlu, {
|
||||||
{ DxbcOperandKind::DstReg, DxbcScalarType::Uint32 },
|
{ DxbcOperandKind::DstReg, DxbcScalarType::Uint32 },
|
||||||
|
@ -44,6 +44,7 @@ namespace dxvk {
|
|||||||
HullShaderPhase, ///< Hull shader phase declaration
|
HullShaderPhase, ///< Hull shader phase declaration
|
||||||
HullShaderInstCnt, ///< Hull shader phase instance count
|
HullShaderInstCnt, ///< Hull shader phase instance count
|
||||||
Interpolate, ///< Input attribute interpolation
|
Interpolate, ///< Input attribute interpolation
|
||||||
|
NoOperation, ///< The most useful instruction class
|
||||||
TextureQuery, ///< Texture query instruction
|
TextureQuery, ///< Texture query instruction
|
||||||
TextureQueryLod, ///< Texture LOD query instruction
|
TextureQueryLod, ///< Texture LOD query instruction
|
||||||
TextureQueryMs, ///< Multisample texture query
|
TextureQueryMs, ///< Multisample texture query
|
||||||
|
@ -11,7 +11,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
if (vendor == DxvkGpuVendor::Nvidia
|
if (vendor == DxvkGpuVendor::Nvidia
|
||||||
&& (devProps.driverVersion < VK_MAKE_VERSION(396, 18, 0)
|
&& (devProps.driverVersion < VK_MAKE_VERSION(396, 18, 0)
|
||||||
|| getEnvVar(L"__GL_NextGenCompiler") == "0")) {
|
|| env::getEnvVar(L"__GL_NextGenCompiler") == "0")) {
|
||||||
// Older versions of the driver expect the
|
// Older versions of the driver expect the
|
||||||
// coordinate vector to have an extra component
|
// coordinate vector to have an extra component
|
||||||
this->addExtraDrefCoordComponent = true;
|
this->addExtraDrefCoordComponent = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user