1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-30 11:52:11 +01:00

[dxbc,d3d11] Minor fixes

This commit is contained in:
Philip Rebohle 2018-01-03 12:26:27 +01:00
parent 75152ae16f
commit 6dfe09da7b
3 changed files with 4 additions and 3 deletions

View File

@ -1458,7 +1458,7 @@ namespace dxvk {
image, value, subresources); image, value, subresources);
} else { } else {
VkClearDepthStencilValue value; VkClearDepthStencilValue value;
value.depth = 0.0f; value.depth = 1.0f;
value.stencil = 0; value.stencil = 0;
m_resourceInitContext->clearDepthStencilImage( m_resourceInitContext->clearDepthStencilImage(

View File

@ -2313,8 +2313,9 @@ namespace dxvk {
// Sample operation with explicit LOD // Sample operation with explicit LOD
case DxbcOpcode::SampleL: { case DxbcOpcode::SampleL: {
imageOperands.flags |= spv::ImageOperandsLodMask; imageOperands.flags |= spv::ImageOperandsLodMask;
imageOperands.sLod = m_module.constf32(explicitLod.id); imageOperands.sLod = explicitLod.id;
result.id = m_module.opImageSampleExplicitLod( result.id = m_module.opImageSampleExplicitLod(
getVectorTypeId(result.type), sampledImageId, coord.id, getVectorTypeId(result.type), sampledImageId, coord.id,

View File

@ -212,7 +212,7 @@ namespace dxvk {
/* Ld */ /* Ld */
{ 3, DxbcInstClass::TextureFetch, { { 3, DxbcInstClass::TextureFetch, {
{ DxbcOperandKind::DstReg, DxbcScalarType::Float32 }, { DxbcOperandKind::DstReg, DxbcScalarType::Float32 },
{ DxbcOperandKind::SrcReg, DxbcScalarType::Uint32 }, { DxbcOperandKind::SrcReg, DxbcScalarType::Sint32 },
{ DxbcOperandKind::SrcReg, DxbcScalarType::Float32 }, { DxbcOperandKind::SrcReg, DxbcScalarType::Float32 },
} }, } },
/* LdMs */ /* LdMs */