projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7108619
)
agx: Clamp point sizes
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Sat, 26 Nov 2022 00:57:25 +0000
(19:57 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Thu, 1 Dec 2022 05:58:30 +0000
(
05:58
+0000)
Fixes vs-point_size-zero.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20017>
src/asahi/compiler/agx_compile.c
patch
|
blob
|
history
diff --git
a/src/asahi/compiler/agx_compile.c
b/src/asahi/compiler/agx_compile.c
index e841313a1c2aa3aafa665f085484d77dbd99a765..19fbfbc9ab535efbd6b3fc2112005b08ccfa21d0 100644
(file)
--- a/
src/asahi/compiler/agx_compile.c
+++ b/
src/asahi/compiler/agx_compile.c
@@
-1934,6
+1934,9
@@
agx_preprocess_nir(nir_shader *nir)
{
NIR_PASS_V(nir, nir_lower_vars_to_ssa);
+ if (nir->info.stage == MESA_SHADER_VERTEX)
+ NIR_PASS_V(nir, nir_lower_point_size, 1.0, 0.0);
+
/* Lower large arrays to scratch and small arrays to csel */
NIR_PASS_V(nir, nir_lower_vars_to_scratch, nir_var_function_temp, 16,
glsl_get_natural_size_align_bytes);