mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
nvir/nir/gm107: split nir shader compiler options from gf100
We can enable some more things here vs earlier GPUs. v2: - make use of the shared function to generate compiler options Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>
This commit is contained in:
parent
5f8ddbd069
commit
f29e6a9e7e
1 changed files with 4 additions and 0 deletions
|
|
@ -3441,9 +3441,13 @@ nvir_nir_shader_compiler_options(int chipset)
|
|||
|
||||
static const nir_shader_compiler_options gf100_nir_shader_compiler_options =
|
||||
nvir_nir_shader_compiler_options(NVISA_GF100_CHIPSET);
|
||||
static const nir_shader_compiler_options gm107_nir_shader_compiler_options =
|
||||
nvir_nir_shader_compiler_options(NVISA_GM107_CHIPSET);
|
||||
|
||||
const nir_shader_compiler_options *
|
||||
nv50_ir_nir_shader_compiler_options(int chipset)
|
||||
{
|
||||
if (chipset >= NVISA_GM107_CHIPSET)
|
||||
return &gm107_nir_shader_compiler_options;
|
||||
return &gf100_nir_shader_compiler_options;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue