mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 04:29:15 +01:00
[d3d11] Fix a few static analysis nits
This commit is contained in:
parent
9dbf620165
commit
45a41183dd
@ -49,14 +49,14 @@ namespace dxvk {
|
||||
|
||||
CubinShaderLaunchInfo() = default;
|
||||
|
||||
CubinShaderLaunchInfo(CubinShaderLaunchInfo&& other) {
|
||||
shader = std::move(other.shader);
|
||||
params = std::move(other.params);
|
||||
paramSize = std::move(other.paramSize);
|
||||
nvxLaunchInfo = std::move(other.nvxLaunchInfo);
|
||||
cuLaunchConfig = other.cuLaunchConfig;
|
||||
buffers = std::move(other.buffers);
|
||||
images = std::move(other.images);
|
||||
CubinShaderLaunchInfo(CubinShaderLaunchInfo&& other)
|
||||
: shader ( std::move(other.shader) )
|
||||
, params ( std::move(other.params) )
|
||||
, paramSize ( std::move(other.paramSize) )
|
||||
, nvxLaunchInfo ( std::move(other.nvxLaunchInfo) )
|
||||
, cuLaunchConfig ( other.cuLaunchConfig )
|
||||
, buffers ( std::move(other.buffers) )
|
||||
, images ( std::move(other.images) ) {
|
||||
other.cuLaunchConfig[1] = nullptr;
|
||||
other.cuLaunchConfig[3] = nullptr;
|
||||
other.nvxLaunchInfo.pExtras = nullptr;
|
||||
@ -68,9 +68,9 @@ namespace dxvk {
|
||||
|
||||
Com<CubinShaderWrapper> shader;
|
||||
std::vector<uint8_t> params;
|
||||
size_t paramSize;
|
||||
size_t paramSize = 0;
|
||||
VkCuLaunchInfoNVX nvxLaunchInfo = { VK_STRUCTURE_TYPE_CU_LAUNCH_INFO_NVX };
|
||||
std::array<void*, 5> cuLaunchConfig;
|
||||
std::array<void*, 5> cuLaunchConfig = { };
|
||||
|
||||
std::vector<std::pair<Rc<DxvkBuffer>, DxvkAccessFlags>> buffers;
|
||||
std::vector<std::pair<Rc<DxvkImage>, DxvkAccessFlags>> images;
|
||||
|
@ -2012,7 +2012,7 @@ namespace dxvk {
|
||||
|
||||
HRESULT D3D11Device::CreateShaderModule(
|
||||
D3D11CommonShader* pShaderModule,
|
||||
DxvkShaderKey ShaderKey,
|
||||
const DxvkShaderKey& ShaderKey,
|
||||
const void* pShaderBytecode,
|
||||
size_t BytecodeLength,
|
||||
ID3D11ClassLinkage* pClassLinkage,
|
||||
|
@ -521,7 +521,7 @@ namespace dxvk {
|
||||
|
||||
HRESULT CreateShaderModule(
|
||||
D3D11CommonShader* pShaderModule,
|
||||
DxvkShaderKey ShaderKey,
|
||||
const DxvkShaderKey& ShaderKey,
|
||||
const void* pShaderBytecode,
|
||||
size_t BytecodeLength,
|
||||
ID3D11ClassLinkage* pClassLinkage,
|
||||
|
@ -9,10 +9,10 @@ namespace dxvk {
|
||||
UINT64 InitialValue,
|
||||
D3D11_FENCE_FLAG Flags,
|
||||
HANDLE hFence)
|
||||
: D3D11DeviceChild<ID3D11Fence>(pDevice) {
|
||||
: D3D11DeviceChild<ID3D11Fence> ( pDevice )
|
||||
, m_flags ( Flags ) {
|
||||
DxvkFenceCreateInfo fenceInfo;
|
||||
fenceInfo.initialValue = InitialValue;
|
||||
m_flags = Flags;
|
||||
|
||||
if (Flags & D3D11_FENCE_FLAG_SHARED) {
|
||||
fenceInfo.sharedType = VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_FENCE_BIT;
|
||||
|
@ -5184,7 +5184,8 @@ namespace dxvk {
|
||||
|
||||
if (modifiers.saturate) {
|
||||
DxbcRegMask mask;
|
||||
DxbcRegisterValue vec0, vec1;
|
||||
DxbcRegisterValue vec0 = { };
|
||||
DxbcRegisterValue vec1 = { };
|
||||
|
||||
if (value.type.ctype == DxbcScalarType::Float32) {
|
||||
mask = DxbcRegMask::firstN(value.type.ccount);
|
||||
|
@ -480,7 +480,7 @@ namespace dxvk {
|
||||
|
||||
private:
|
||||
|
||||
DxbcShaderInstruction m_instruction;
|
||||
DxbcShaderInstruction m_instruction = { };
|
||||
|
||||
std::array<DxbcRegister, 8> m_dstOperands;
|
||||
std::array<DxbcRegister, 8> m_srcOperands;
|
||||
|
Loading…
x
Reference in New Issue
Block a user