mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 17:37:48 +00:00
shader: Keep track of shaders using warp instructions
This commit is contained in:
parent
243a33aba9
commit
f2de7089e1
2 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,9 @@ u32 ShaderIR::DecodeWarp(NodeBlock& bb, u32 pc) {
|
|||
const Instruction instr = {program_code[pc]};
|
||||
const auto opcode = OpCode::Decode(instr);
|
||||
|
||||
// Signal the backend that this shader uses warp instructions.
|
||||
uses_warps = true;
|
||||
|
||||
switch (opcode->get().GetId()) {
|
||||
case OpCode::Id::VOTE: {
|
||||
const Node value = GetPredicate(instr.vote.value, instr.vote.negate_value != 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue