mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-27 02:34:22 +01:00
shader, video_core: Fix GCC build errors
This commit is contained in:
parent
65781f88f8
commit
68e038404c
@ -243,10 +243,6 @@ Id IsScaled(EmitContext& ctx, const IR::Value& index, Id member_index, u32 base_
|
|||||||
if (base_index != 0) {
|
if (base_index != 0) {
|
||||||
index_value = ctx.OpIAdd(ctx.U32[1], index_value, ctx.Const(base_index));
|
index_value = ctx.OpIAdd(ctx.U32[1], index_value, ctx.Const(base_index));
|
||||||
}
|
}
|
||||||
const Id word_index{ctx.OpShiftRightArithmetic(ctx.U32[1], index_value, ctx.Const(5u))};
|
|
||||||
const Id pointer{ctx.OpAccessChain(push_constant_u32, ctx.rescaling_push_constants,
|
|
||||||
member_index, word_index)};
|
|
||||||
const Id word{ctx.OpLoad(ctx.U32[1], pointer)};
|
|
||||||
const Id bit_index{ctx.OpBitwiseAnd(ctx.U32[1], index_value, ctx.Const(31u))};
|
const Id bit_index{ctx.OpBitwiseAnd(ctx.U32[1], index_value, ctx.Const(31u))};
|
||||||
bit = ctx.OpBitFieldUExtract(ctx.U32[1], index_value, bit_index, ctx.Const(1u));
|
bit = ctx.OpBitFieldUExtract(ctx.U32[1], index_value, bit_index, ctx.Const(1u));
|
||||||
}
|
}
|
||||||
|
@ -143,9 +143,6 @@ void ComputePipeline::Configure() {
|
|||||||
}
|
}
|
||||||
texture_cache.FillComputeImageViews(std::span(views.data(), views.size()));
|
texture_cache.FillComputeImageViews(std::span(views.data(), views.size()));
|
||||||
|
|
||||||
const bool is_rescaling{texture_cache.IsRescaling()};
|
|
||||||
const f32 config_down_factor{Settings::values.resolution_info.down_factor};
|
|
||||||
const f32 down_factor{is_rescaling ? config_down_factor : 1.0f};
|
|
||||||
if (assembly_program.handle != 0) {
|
if (assembly_program.handle != 0) {
|
||||||
program_manager.BindComputeAssemblyProgram(assembly_program.handle);
|
program_manager.BindComputeAssemblyProgram(assembly_program.handle);
|
||||||
} else {
|
} else {
|
||||||
|
@ -41,13 +41,9 @@ using VideoCore::Surface::PixelFormatFromRenderTargetFormat;
|
|||||||
using namespace Common::Literals;
|
using namespace Common::Literals;
|
||||||
|
|
||||||
struct ImageViewInOut {
|
struct ImageViewInOut {
|
||||||
u32 index;
|
u32 index{};
|
||||||
bool blacklist;
|
bool blacklist{};
|
||||||
union {
|
ImageViewId id{};
|
||||||
struct Empty {
|
|
||||||
} empty{};
|
|
||||||
ImageViewId id;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class P>
|
template <class P>
|
||||||
|
Loading…
Reference in New Issue
Block a user