Skip to content

Commit

Permalink
Start to refactor to run const prop before hull transform
Browse files Browse the repository at this point in the history
  • Loading branch information
baggins183 committed Nov 10, 2024
1 parent 3a3a639 commit c75c251
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 169 deletions.
7 changes: 6 additions & 1 deletion src/shader_recompiler/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,13 @@ struct Info {
}
}

// TODO probably not needed
bool FoundTessConstantsSharp() {
return tess_consts_dword_offset >= 0;
}

void ReadTessConstantBuffer(TessellationDataConstantBuffer& tess_constants) {
ASSERT(tess_consts_dword_offset >= 0);
ASSERT(FoundTessConstantsSharp());
auto buf = ReadUdReg<AmdGpu::Buffer>(static_cast<u32>(tess_consts_ptr_base),
static_cast<u32>(tess_consts_dword_offset));
VAddr tess_constants_addr = buf.base_address;
Expand Down
Loading

0 comments on commit c75c251

Please sign in to comment.