* [PATCH] nvc0: fix geometry program revalidation of clipping params @ 2015-07-11 17:13 Ilia Mirkin 2015-07-13 8:16 ` Samuel Pitoiset 0 siblings, 1 reply; 5+ messages in thread From: Ilia Mirkin @ 2015-07-11 17:13 UTC (permalink / raw) To: mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW Cc: mesa-stable-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org --- 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(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c index 785e52e..11f2b10 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c @@ -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); else nvc0_tevlprog_validate(nvc0); } -- 2.3.6 _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] nvc0: fix geometry program revalidation of clipping params 2015-07-11 17:13 [PATCH] nvc0: fix geometry program revalidation of clipping params Ilia Mirkin @ 2015-07-13 8:16 ` Samuel Pitoiset [not found] ` <CAJd1Ru5fmsDDftu0pkQtfqtzUaoWV8TCRHm=TiXgtmb-jD-wvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Samuel Pitoiset @ 2015-07-13 8:16 UTC (permalink / raw) To: Ilia Mirkin Cc: mesa-dev@lists.freedesktop.org, 10.4 10.5, nouveau@lists.freedesktop.org [-- Attachment #1.1: Type: text/plain, Size: 1593 bytes --] What piglit test does this fix? On Sat, Jul 11, 2015 at 7:13 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: > Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> > Cc: mesa-stable@lists.freedesktop.org > --- > > 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(-) > > diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c > b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c > index 785e52e..11f2b10 100644 > --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c > +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c > @@ -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); > else > nvc0_tevlprog_validate(nvc0); > } > -- > 2.3.6 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > -- Best regards, Samuel Pitoiset. [-- Attachment #1.2: Type: text/html, Size: 2434 bytes --] [-- Attachment #2: Type: text/plain, Size: 156 bytes --] _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAJd1Ru5fmsDDftu0pkQtfqtzUaoWV8TCRHm=TiXgtmb-jD-wvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [Mesa-dev] [PATCH] nvc0: fix geometry program revalidation of clipping params [not found] ` <CAJd1Ru5fmsDDftu0pkQtfqtzUaoWV8TCRHm=TiXgtmb-jD-wvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-07-13 18:05 ` Ilia Mirkin [not found] ` <CAKb7Uvj1KLHokGvznQ=722-D3PFx691S4kUBODJG-dSyDvkNyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Ilia Mirkin @ 2015-07-13 18:05 UTC (permalink / raw) To: Samuel Pitoiset Cc: mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, 10.4 10.5, nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Any one which, after using a geometry shader, enables an extra clip distance. i.e. none. On Mon, Jul 13, 2015 at 4:16 AM, Samuel Pitoiset <samuel.pitoiset@gmail.com> wrote: > What piglit test does this fix? > > On Sat, Jul 11, 2015 at 7:13 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >> >> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> >> Cc: mesa-stable@lists.freedesktop.org >> --- >> >> 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(-) >> >> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >> b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >> index 785e52e..11f2b10 100644 >> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >> @@ -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); >> else >> nvc0_tevlprog_validate(nvc0); >> } >> -- >> 2.3.6 >> >> _______________________________________________ >> mesa-dev mailing list >> mesa-dev@lists.freedesktop.org >> http://lists.freedesktop.org/mailman/listinfo/mesa-dev > > > > > -- > Best regards, > Samuel Pitoiset. _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAKb7Uvj1KLHokGvznQ=722-D3PFx691S4kUBODJG-dSyDvkNyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [Mesa-dev] [PATCH] nvc0: fix geometry program revalidation of clipping params [not found] ` <CAKb7Uvj1KLHokGvznQ=722-D3PFx691S4kUBODJG-dSyDvkNyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-07-13 18:08 ` Ilia Mirkin [not found] ` <CAKb7UvgrshmzTjCvd4fJLJyP1BEiU0+3LRqCiUJd==BWy+kE2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Ilia Mirkin @ 2015-07-13 18:08 UTC (permalink / raw) To: Samuel Pitoiset Cc: mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, 10.4 10.5, nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@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. On Mon, Jul 13, 2015 at 2:05 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: > Any one which, after using a geometry shader, enables an extra clip > distance. i.e. none. > > On Mon, Jul 13, 2015 at 4:16 AM, Samuel Pitoiset > <samuel.pitoiset@gmail.com> wrote: >> What piglit test does this fix? >> >> On Sat, Jul 11, 2015 at 7:13 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >>> >>> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> >>> Cc: mesa-stable@lists.freedesktop.org >>> --- >>> >>> 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(-) >>> >>> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>> b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>> index 785e52e..11f2b10 100644 >>> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>> @@ -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); >>> else >>> nvc0_tevlprog_validate(nvc0); >>> } >>> -- >>> 2.3.6 >>> >>> _______________________________________________ >>> mesa-dev mailing list >>> mesa-dev@lists.freedesktop.org >>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev >> >> >> >> >> -- >> Best regards, >> Samuel Pitoiset. _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAKb7UvgrshmzTjCvd4fJLJyP1BEiU0+3LRqCiUJd==BWy+kE2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [Mesa-dev] [PATCH] nvc0: fix geometry program revalidation of clipping params [not found] ` <CAKb7UvgrshmzTjCvd4fJLJyP1BEiU0+3LRqCiUJd==BWy+kE2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-07-16 21:49 ` samuel.pitoiset 0 siblings, 0 replies; 5+ messages in thread From: samuel.pitoiset @ 2015-07-16 21:49 UTC (permalink / raw) To: Ilia Mirkin Cc: mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, 10.4 10.5, nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Seems reasonable. Please, let me know the result of the full piglit run. If everything is okay, this patch is : Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> On 13/07/2015 20:08, Ilia Mirkin wrote: > This was, btw, introduced in commit 3a8ae6ac243b (nvc0: adapt to new > clip state). Back then there was no real geometry support yet. > > On Mon, Jul 13, 2015 at 2:05 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >> Any one which, after using a geometry shader, enables an extra clip >> distance. i.e. none. >> >> On Mon, Jul 13, 2015 at 4:16 AM, Samuel Pitoiset >> <samuel.pitoiset@gmail.com> wrote: >>> What piglit test does this fix? >>> >>> On Sat, Jul 11, 2015 at 7:13 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >>>> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> >>>> Cc: mesa-stable@lists.freedesktop.org >>>> --- >>>> >>>> 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(-) >>>> >>>> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>>> b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>>> index 785e52e..11f2b10 100644 >>>> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>>> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c >>>> @@ -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); >>>> else >>>> nvc0_tevlprog_validate(nvc0); >>>> } >>>> -- >>>> 2.3.6 >>>> >>>> _______________________________________________ >>>> mesa-dev mailing list >>>> mesa-dev@lists.freedesktop.org >>>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev >>> >>> >>> >>> -- >>> Best regards, >>> Samuel Pitoiset. _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-16 21:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-11 17:13 [PATCH] nvc0: fix geometry program revalidation of clipping params Ilia Mirkin
2015-07-13 8:16 ` Samuel Pitoiset
[not found] ` <CAJd1Ru5fmsDDftu0pkQtfqtzUaoWV8TCRHm=TiXgtmb-jD-wvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-13 18:05 ` [Mesa-dev] " Ilia Mirkin
[not found] ` <CAKb7Uvj1KLHokGvznQ=722-D3PFx691S4kUBODJG-dSyDvkNyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-13 18:08 ` Ilia Mirkin
[not found] ` <CAKb7UvgrshmzTjCvd4fJLJyP1BEiU0+3LRqCiUJd==BWy+kE2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-16 21:49 ` samuel.pitoiset
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.