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:
Mary Guillemard 2024-05-02 15:58:52 +02:00 committed by Marge Bot
parent 170b09790a
commit 8fda488aec
1 changed files with 1 additions and 1 deletions

View File

@ -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);