Fix some warnings
This commit is contained in:
@@ -20,7 +20,7 @@ namespace rsx
|
|||||||
RSX(ctx)->m_graphics_state |= rsx::pipeline_state::fragment_program_ucode_dirty;
|
RSX(ctx)->m_graphics_state |= rsx::pipeline_state::fragment_program_ucode_dirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_transform_constant::decode_one(context* ctx, u32 reg, u32 arg)
|
void set_transform_constant::decode_one([[maybe_unused]] context* ctx, u32 reg, u32 arg)
|
||||||
{
|
{
|
||||||
const u32 index = reg - NV4097_SET_TRANSFORM_CONSTANT;
|
const u32 index = reg - NV4097_SET_TRANSFORM_CONSTANT;
|
||||||
const u32 constant_id = index / 4;
|
const u32 constant_id = index / 4;
|
||||||
@@ -44,7 +44,7 @@ namespace rsx
|
|||||||
RSX(ctx)->patch_transform_constants(ctx, load + constant_id, last_constant_id - constant_id);
|
RSX(ctx)->patch_transform_constants(ctx, load + constant_id, last_constant_id - constant_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_transform_constant::impl(context* ctx, u32 reg, u32 arg)
|
void set_transform_constant::impl(context* ctx, u32 reg, [[maybe_unused]] u32 arg)
|
||||||
{
|
{
|
||||||
const u32 index = reg - NV4097_SET_TRANSFORM_CONSTANT;
|
const u32 index = reg - NV4097_SET_TRANSFORM_CONSTANT;
|
||||||
const u32 constant_id = index / 4;
|
const u32 constant_id = index / 4;
|
||||||
|
|||||||
@@ -855,8 +855,6 @@ bool compressed_zstd_serialization_file_handler::handle_file_op(utils::serial& a
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& manager = *m_stream;
|
|
||||||
|
|
||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
ensure(false);
|
ensure(false);
|
||||||
@@ -1253,7 +1251,6 @@ void compressed_zstd_serialization_file_handler::stream_data_prepare_thread_op()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
usz buffer_offset = 0;
|
|
||||||
stream_data.resize(::ZSTD_compressBound(data->size()));
|
stream_data.resize(::ZSTD_compressBound(data->size()));
|
||||||
const usz out_size = ZSTD_compressCCtx(m_zc, stream_data.data(), stream_data.size(), data->data(), data->size(), ZSTD_btultra);
|
const usz out_size = ZSTD_compressCCtx(m_zc, stream_data.data(), stream_data.size(), data->data(), data->size(), ZSTD_btultra);
|
||||||
|
|
||||||
@@ -1301,7 +1298,6 @@ void compressed_zstd_serialization_file_handler::file_writer_thread_op()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const usz last_size = data->size();
|
|
||||||
m_file->write(*data);
|
m_file->write(*data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user