mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 13:26:30 -05:00
video_core/shader/decode: Prevent sign-conversion warnings
Makes it explicit that the conversions here are intentional.
This commit is contained in:
parent
5d369112d9
commit
1109db86b7
1 changed files with 2 additions and 2 deletions
|
@ -47,14 +47,14 @@ void ShaderIR::Decode() {
|
||||||
if (shader_info.decompilable) {
|
if (shader_info.decompilable) {
|
||||||
disable_flow_stack = true;
|
disable_flow_stack = true;
|
||||||
const auto insert_block = [this](NodeBlock& nodes, u32 label) {
|
const auto insert_block = [this](NodeBlock& nodes, u32 label) {
|
||||||
if (label == exit_branch) {
|
if (label == static_cast<u32>(exit_branch)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
basic_blocks.insert({label, nodes});
|
basic_blocks.insert({label, nodes});
|
||||||
};
|
};
|
||||||
const auto& blocks = shader_info.blocks;
|
const auto& blocks = shader_info.blocks;
|
||||||
NodeBlock current_block;
|
NodeBlock current_block;
|
||||||
u32 current_label = exit_branch;
|
u32 current_label = static_cast<u32>(exit_branch);
|
||||||
for (auto& block : blocks) {
|
for (auto& block : blocks) {
|
||||||
if (shader_info.labels.count(block.start) != 0) {
|
if (shader_info.labels.count(block.start) != 0) {
|
||||||
insert_block(current_block, current_label);
|
insert_block(current_block, current_label);
|
||||||
|
|
Loading…
Reference in a new issue