[d3d9] Fix spec constant derp

This commit is contained in:
Philip Rebohle 2022-07-30 20:38:58 +02:00
parent 10e6d0ef8a
commit 4d8b75c8fb
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 3 deletions

View File

@ -93,9 +93,7 @@ namespace dxvk {
bufferViewInfo.rangeLength = srcSlice.length();
auto tmpBufferView = m_device->createBufferView(srcSlice.buffer(), bufferViewInfo);
if (specConstantValue)
m_context->setSpecConstant(VK_PIPELINE_BIND_POINT_COMPUTE, 0, specConstantValue);
m_context->setSpecConstant(VK_PIPELINE_BIND_POINT_COMPUTE, 0, specConstantValue);
m_context->bindResourceView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Image, tmpImageView, nullptr);
m_context->bindResourceView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Buffer, nullptr, tmpBufferView);
m_context->bindShader(VK_SHADER_STAGE_COMPUTE_BIT, m_shaders[videoFormat.FormatType]);