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

[dxvk] Don't change spec constant IDs that are no valid resource slots

Fixes pipeline state-related specialization constants.
This commit is contained in:
Philip Rebohle 2018-09-01 20:27:36 +02:00
parent ffc2130ee6
commit 825200b2a2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 5 additions and 2 deletions

View File

@ -132,8 +132,10 @@ namespace dxvk {
// Remap resource binding IDs
uint32_t* code = spirvCode.data();
for (uint32_t ofs : m_idOffsets)
for (uint32_t ofs : m_idOffsets) {
if (code[ofs] < MaxNumResourceSlots)
code[ofs] = mapping.getBindingId(code[ofs]);
}
return new DxvkShaderModule(vkd, this, spirvCode);
}

View File

@ -3,6 +3,7 @@
#include <vector>
#include "dxvk_include.h"
#include "dxvk_limits.h"
#include "dxvk_pipelayout.h"
#include "../spirv/spirv_code_buffer.h"