aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2019-05-05 11:35:41 +0200
committerChristian Gmeiner <[email protected]>2019-05-07 07:35:52 +0200
commit4e110eca42ac2c56c5763a1f502e7c80db67e064 (patch)
tree0eb3b8dc9c3e5bdb770884761adeae7fe563b9e3 /src/gallium/drivers
parent050b934a24072df862a1fdad424c8f33379e8e26 (diff)
nir: nir_shader_compiler_options: drop native_integers
Driver which do not support native integers should use a lowering pass to go from integers to floats. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/lima/lima_program.c2
-rw-r--r--src/gallium/drivers/nouveau/nv50/nv50_screen.c1
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_screen.c1
-rw-r--r--src/gallium/drivers/panfrost/midgard/midgard_compile.h2
-rw-r--r--src/gallium/drivers/radeonsi/si_get.c1
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c1
6 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c
index 1c5057cc9f7..e1cea2463a6 100644
--- a/src/gallium/drivers/lima/lima_program.c
+++ b/src/gallium/drivers/lima/lima_program.c
@@ -50,7 +50,6 @@ static const nir_shader_compiler_options vs_nir_options = {
.lower_ftrunc = true,
/* could be implemented by clamp */
.lower_fsat = true,
- .native_integers = true,
};
static const nir_shader_compiler_options fs_nir_options = {
@@ -60,7 +59,6 @@ static const nir_shader_compiler_options fs_nir_options = {
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_fsign = true,
- .native_integers = true,
};
const void *
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
index 423b6af3b64..6c865d75f6d 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
@@ -899,7 +899,6 @@ static const nir_shader_compiler_options nir_options = {
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_all_io_to_temps = false,
- .native_integers = true,
.lower_cs_local_index_from_id = true,
.use_interpolated_input_intrinsics = true,
.max_unroll_iterations = 32,
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 79224ac99a7..fe80c7e9103 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -941,7 +941,6 @@ static const nir_shader_compiler_options nir_options = {
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_all_io_to_temps = false,
- .native_integers = true,
.vertex_id_zero_based = false,
.lower_base_vertex = false,
.lower_helper_invocation = false,
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.h b/src/gallium/drivers/panfrost/midgard/midgard_compile.h
index 0724582d62c..6f02b3662f6 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.h
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.h
@@ -106,8 +106,6 @@ static const nir_shader_compiler_options midgard_nir_options = {
.vertex_id_zero_based = true,
.lower_extract_byte = true,
.lower_extract_word = true,
-
- .native_integers = true
};
#endif
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c
index 4e23d283ab7..700777186d8 100644
--- a/src/gallium/drivers/radeonsi/si_get.c
+++ b/src/gallium/drivers/radeonsi/si_get.c
@@ -498,7 +498,6 @@ static const struct nir_shader_compiler_options nir_options = {
.lower_extract_word = true,
.optimize_sample_mask_in = true,
.max_unroll_iterations = 32,
- .native_integers = true,
};
static const void *
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 7f6809c087c..2ca3f907135 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -2173,7 +2173,6 @@ static const nir_shader_compiler_options nir_options = {
.lower_fsqrt = true,
.lower_ldexp = true,
.lower_negate = true,
- .native_integers = true,
.max_unroll_iterations = 32,
};