video_core/amdgpu: fix calculation of lod range

This commit is contained in:
Daniel R. 2024-12-08 16:02:38 +01:00
parent 0b672a08ac
commit a88850fec6
No known key found for this signature in database
GPG key ID: B8ADC8F57BA18DBA

View file

@ -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;
}
};