mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-05 04:09:58 +00:00
silent warning (conversion error)
This commit is contained in:
parent
9f6ebccf06
commit
730f9b55b3
1 changed files with 2 additions and 3 deletions
|
@ -314,7 +314,8 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) {
|
||||||
auto descriptor = [this, instr] {
|
auto descriptor = [this, instr] {
|
||||||
std::optional<Tegra::Engines::SamplerDescriptor> descriptor;
|
std::optional<Tegra::Engines::SamplerDescriptor> descriptor;
|
||||||
if (instr.suldst.is_immediate) {
|
if (instr.suldst.is_immediate) {
|
||||||
descriptor = registry.ObtainBoundSampler(instr.image.index.Value());
|
descriptor =
|
||||||
|
registry.ObtainBoundSampler(static_cast<u32>(instr.image.index.Value()));
|
||||||
} else {
|
} else {
|
||||||
const Node image_register = GetRegister(instr.gpr39);
|
const Node image_register = GetRegister(instr.gpr39);
|
||||||
const auto [base_image, buffer, offset] = TrackCbuf(
|
const auto [base_image, buffer, offset] = TrackCbuf(
|
||||||
|
@ -328,8 +329,6 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) {
|
||||||
}();
|
}();
|
||||||
|
|
||||||
const auto comp_mask = GetImageComponentMask(descriptor.format);
|
const auto comp_mask = GetImageComponentMask(descriptor.format);
|
||||||
// TODO(namkazt): let's suppose image format is same as store type. we check on it
|
|
||||||
// later.
|
|
||||||
|
|
||||||
switch (instr.suldst.GetStoreDataLayout()) {
|
switch (instr.suldst.GetStoreDataLayout()) {
|
||||||
case StoreType::Bits32: {
|
case StoreType::Bits32: {
|
||||||
|
|
Loading…
Reference in a new issue