aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-26 12:14:11 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-30 16:06:09 -0700
commit20237166b60a9fe525c906a3efd1046d2853c40a (patch)
tree3cc8de81f2d776401ae8d77e26dba4cc73af4ea8 /src/panfrost
parent0b225f1892a677d9b735782c9d6aac4ee5d33c56 (diff)
pan/midgard: Use shared psiz clamp pass
We already had a perfectly cromulent pass for this, but one landed in common NIR code so let's switch and lighten our tree. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/midgard/compiler.h5
-rw-r--r--src/panfrost/midgard/midgard_compile.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index 97795b25cb9..b202a92aeea 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -635,14 +635,9 @@ void emit_binary_bundle(
struct util_dynarray *emission,
int next_tag);
-/* NIR stuff. TODO: Move? Share? Something? */
-
bool
nir_undef_to_zero(nir_shader *shader);
-void
-nir_clamp_psiz(nir_shader *shader, float min_size, float max_size);
-
/* Optimizations */
bool midgard_opt_copy_prop(compiler_context *ctx, midgard_block *block);
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index eec3e8d56ed..79f33e8006e 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -2525,7 +2525,7 @@ midgard_compile_shader_nir(struct midgard_screen *screen, nir_shader *nir, midga
if (ctx->stage == MESA_SHADER_VERTEX) {
NIR_PASS_V(nir, nir_lower_viewport_transform);
- NIR_PASS_V(nir, nir_clamp_psiz, 1.0, 1024.0);
+ NIR_PASS_V(nir, nir_lower_point_size, 1.0, 1024.0);
}
NIR_PASS_V(nir, nir_lower_var_copies);