tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Roland Scheidegger
So, when trying to implement ARB_point_parameters and ARB_point_sprite, I came across some problem (this tnl stuff is hard to follow). The problem is, I need to set some hardware state dependant on the primitive being renderered (in particular, r200 needs perspective correction disabled for

Re: tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Scheidegger wrote: So, when trying to implement ARB_point_parameters and ARB_point_sprite, I came across some problem (this tnl stuff is hard to follow). The problem is, I need to set some hardware state dependant on the primitive being

Re: tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Roland Scheidegger
Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Scheidegger wrote: So, when trying to implement ARB_point_parameters and ARB_point_sprite, I came across some problem (this tnl stuff is hard to follow). The problem is, I need to set some hardware state dependant on

Re: tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Roland Scheidegger
Roland Scheidegger wrote: I thought there was a mechanism that allowed the driver to be notified at glBegin (or similar) time. It seems like you ought to be able to emit some extra state at that time to change to / from point-sprite mode. Ah, sounds like a plan. I thought the NotifyBegin

Re: tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Scheidegger wrote: Roland Scheidegger wrote: I thought there was a mechanism that allowed the driver to be notified at glBegin (or similar) time. It seems like you ought to be able to emit some extra state at that time to change to / from

Re: tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Brian Paul
Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Scheidegger wrote: Roland Scheidegger wrote: I thought there was a mechanism that allowed the driver to be notified at glBegin (or similar) time. It seems like you ought to be able to emit some extra state at that

Re: tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Keith Whitwell
Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Scheidegger wrote: Roland Scheidegger wrote: I thought there was a mechanism that allowed the driver to be notified at glBegin (or similar) time. It seems like you ought to be able to emit some extra state at that

Re: tnl trouble, how can you do hw state changes depending on the primitive being rendered

2006-09-22 Thread Keith Whitwell
Brian Paul wrote: Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Scheidegger wrote: Roland Scheidegger wrote: I thought there was a mechanism that allowed the driver to be notified at glBegin (or similar) time. It seems like you ought to be able to emit some