Skip to content

Commit

Permalink
video_core/amdgpu: fix calculation of lod range
Browse files Browse the repository at this point in the history
  • Loading branch information
polybiusproxy committed Dec 8, 2024
1 parent 0b672a0 commit a88850f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_core/amdgpu/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,11 @@ struct Sampler {
}

float MinLod() const noexcept {
return static_cast<float>(min_lod);
return static_cast<float>(min_lod.Value()) / 256.0f;
}

float MaxLod() const noexcept {
return static_cast<float>(max_lod);
return static_cast<float>(max_lod.Value()) / 256.0f;
}
};

Expand Down

0 comments on commit a88850f

Please sign in to comment.