mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
compare vs attrib specs by default, ignore NumberFmt when vertex input dynamic state is supported
This commit is contained in:
parent
2bc8a944d4
commit
47db86c3cd
@ -90,12 +90,13 @@ struct StageSpecialization {
|
|||||||
Backend::Bindings start_)
|
Backend::Bindings start_)
|
||||||
: info{&info_}, runtime_info{runtime_info_}, start{start_} {
|
: info{&info_}, runtime_info{runtime_info_}, start{start_} {
|
||||||
fetch_shader_data = Gcn::ParseFetchShader(info_);
|
fetch_shader_data = Gcn::ParseFetchShader(info_);
|
||||||
if (info_.stage == Stage::Vertex && fetch_shader_data &&
|
if (info_.stage == Stage::Vertex && fetch_shader_data) {
|
||||||
!profile_.support_legacy_vertex_attributes) {
|
|
||||||
// Specialize shader on VS input number types to follow spec.
|
// Specialize shader on VS input number types to follow spec.
|
||||||
ForEachSharp(vs_attribs, fetch_shader_data->attributes,
|
ForEachSharp(vs_attribs, fetch_shader_data->attributes,
|
||||||
[](auto& spec, const auto& desc, AmdGpu::Buffer sharp) {
|
[&profile_](auto& spec, const auto& desc, AmdGpu::Buffer sharp) {
|
||||||
spec.num_class = AmdGpu::GetNumberClass(sharp.GetNumberFmt());
|
spec.num_class = profile_.support_legacy_vertex_attributes
|
||||||
|
? AmdGpu::NumberClass{}
|
||||||
|
: AmdGpu::GetNumberClass(sharp.GetNumberFmt());
|
||||||
spec.dst_select = sharp.DstSelect();
|
spec.dst_select = sharp.DstSelect();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user