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:
parent
ffc2130ee6
commit
825200b2a2
@ -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);
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "dxvk_include.h"
|
||||
#include "dxvk_limits.h"
|
||||
#include "dxvk_pipelayout.h"
|
||||
|
||||
#include "../spirv/spirv_code_buffer.h"
|
||||
|
Loading…
Reference in New Issue
Block a user