mirror of https://gitlab.freedesktop.org/mesa/mesa
nak: Set SPH version to 4 on SM75+
The hardware doesn't check it but we should avoid possible mismatch. Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29034>
This commit is contained in:
parent
170b09790a
commit
8fda488aec
|
@ -110,7 +110,7 @@ impl ShaderProgramHeader {
|
|||
1
|
||||
};
|
||||
|
||||
let sph_version = 3;
|
||||
let sph_version = if sm >= 75 { 4 } else { 3 };
|
||||
res.set_sph_type(sph_type, sph_version);
|
||||
res.set_shader_type(shader_type);
|
||||
|
||||
|
|
Loading…
Reference in New Issue