nvc0: fix geometry program revalidation of clipping params
PATCH 1/1 nvc0: fix geometry program revalidation of clipping params
---
Even though in practice a geometry program will never be using UCP's, we still were revalidating (aka recompiling) the program when more clip planes became enabled (which also are used for regular clip distances).
This seems like it should have led to massive fail, but I guess you don't change the number of clip planes when using geometry shaders. But I'm going to put this through a full piglit run just in case there's something I'm missing.
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c +1 -1
@@ -339,7 +339,7 @@ nvc0_check_program_ucps(struct nvc0_context *nvc0,nvc0_vertprog_validate (nvc0); else if (likely(vp == nvc0->gmtyprog)) - nvc0_vertprog_validate(nvc0); + nvc0_gmtyprog_validate(nvc0); elsenvc0_tevlprog_validate (nvc0 ); }
Signature · 6 lines
2.3.6 _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
What piglit test does this fix?
Quoted 39 lines · Ilia Mirkin
Signed-off-by Ilia Mirkin <[email protected]>---
Even though in practice a geometry program will never be using UCP's, we still were revalidating (aka recompiling) the program when more clip planes became enabled (which also are used for regular clip distances).
This seems like it should have led to massive fail, but I guess you don't change the number of clip planes when using geometry shaders. But I'm going to put this through a full piglit run just in case there's something I'm missing.
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c +1
-2@@ -339,7 +339,7 @@ nvc0_check_program_ucps(struct nvc0_context *nvc0,nvc0_vertprog_validate (nvc0); else if (likely(vp == nvc0->gmtyprog)) - nvc0_vertprog_validate(nvc0); + nvc0_gmtyprog_validate(nvc0); elsenvc0_tevlprog_validate (nvc0 ); } --2.3.6
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Signature · 2 lines
Best regards, Samuel Pitoiset.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev
A message that is not in the archive (sent off-list or not yet received): CAJd1Ru5fmsDDftu0pkQtfqtzUaoWV8TCRHm=TiXgtmb-jD-wvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Any one which, after using a geometry shader, enables an extra clip distance. i.e. none.
Quoted 38 lines · Samuel Pitoiset
What piglit test does this fix?
Quoted 35 lines · Ilia Mirkin
Signed-off-by Ilia Mirkin <[email protected]>---
Even though in practice a geometry program will never be using UCP's, we still were revalidating (aka recompiling) the program when more clip planes became enabled (which also are used for regular clip distances).
This seems like it should have led to massive fail, but I guess you don't change the number of clip planes when using geometry shaders. But I'm going to put this through a full piglit run just in case there's something I'm missing.
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c +1
-2@@ -339,7 +339,7 @@ nvc0_check_program_ucps(struct nvc0_context *nvc0,nvc0_vertprog_validate (nvc0); else if (likely(vp == nvc0->gmtyprog)) - nvc0_vertprog_validate(nvc0); + nvc0_gmtyprog_validate(nvc0); elsenvc0_tevlprog_validate (nvc0 ); } --2.3.6
Quoted 11 lines
Quoted 4 lines
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev--
Best regards,
Samuel Pitoiset.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): CAKb7Uvj1KLHokGvznQ=722-D3PFx691S4kUBODJG-dSyDvkNyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
This was, btw, introduced in commit 3a8ae6ac243b (nvc0: adapt to new clip state). Back then there was no real geometry support yet.
Quoted 54 lines · Ilia Mirkin
Any one which, after using a geometry shader, enables an extra clip distance. i.e. none.
Quoted 49 lines · Samuel Pitoiset
What piglit test does this fix?
Quoted 35 lines · Ilia Mirkin
Signed-off-by Ilia Mirkin <[email protected]>---
Even though in practice a geometry program will never be using UCP's, we still were revalidating (aka recompiling) the program when more clip planes became enabled (which also are used for regular clip distances).
This seems like it should have led to massive fail, but I guess you don't change the number of clip planes when using geometry shaders. But I'm going to put this through a full piglit run just in case there's something I'm missing.
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c +1
-2@@ -339,7 +339,7 @@ nvc0_check_program_ucps(struct nvc0_context *nvc0,nvc0_vertprog_validate (nvc0); else if (likely(vp == nvc0->gmtyprog)) - nvc0_vertprog_validate(nvc0); + nvc0_gmtyprog_validate(nvc0); elsenvc0_tevlprog_validate (nvc0 ); } --2.3.6
Quoted 4 lines
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev--
Best regards,
Samuel Pitoiset.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): CAKb7UvgrshmzTjCvd4fJLJyP1BEiU0+3LRqCiUJd==BWy+kE2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
samuel.pitoiset
Reviewed-by Samuel PitoisetSeems reasonable.
Please, let me know the result of the full piglit run. If everything is okay, this patch is :
Quoted 56 lines · Ilia Mirkin
This was, btw, introduced in commit
3a8ae6ac243b(nvc0: adapt to new clip state). Back then there was no real geometry support yet.Quoted 52 lines · Ilia Mirkin
Any one which, after using a geometry shader, enables an extra clip distance. i.e. none.
Quoted 47 lines · Samuel Pitoiset
What piglit test does this fix?
Quoted 34 lines · Ilia Mirkin
Signed-off-by Ilia Mirkin <[email protected]>---
Even though in practice a geometry program will never be using UCP's, we still were revalidating (aka recompiling) the program when more clip planes became enabled (which also are used for regular clip distances).
This seems like it should have led to massive fail, but I guess you don't change the number of clip planes when using geometry shaders. But I'm going to put this through a full piglit run just in case there's something I'm missing.
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c +1
-2@@ -339,7 +339,7 @@ nvc0_check_program_ucps(struct nvc0_context *nvc0,nvc0_vertprog_validate (nvc0); else if (likely(vp == nvc0->gmtyprog)) - nvc0_vertprog_validate(nvc0); + nvc0_gmtyprog_validate(nvc0); elsenvc0_tevlprog_validate (nvc0 ); } --2.3.6
Quoted 4 lines
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev--
Best regards,
Samuel Pitoiset.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau