Re: [Mesa-dev] [PATCH] r600g: add polygon stipple support

2015-02-01 Thread Marek Olšák
One more thing. Polygon stippling should be disabled for lines and points (if a GS is bound, the GS out primitive matters). BTW, I have sent out a patch that adds the ability to specify a fixed texture slot for u_pstipple. Marek On Sat, Jan 31, 2015 at 1:42 AM, Marek Olšák wrote: > Hi Dave, > >

Re: [Mesa-dev] [PATCH] r600g: add polygon stipple support

2015-01-30 Thread Marek Olšák
Hi Dave, R600 supports 18 samplers per shader, so you can use a fixed slot outside of the API range (16 or 17) and bind the stipple texture statically there. The motivation is that you won't have to read the shader to get the slot number, so it will be completely independent. You don't have to unb

Re: [Mesa-dev] [PATCH] r600g: add polygon stipple support

2015-01-27 Thread Dave Airlie
On 27 January 2015 at 18:04, Dave Airlie wrote: > From: Dave Airlie > > This use the gallium poly stipple helper to modify > the fragment shader and sets up the appropriate state > around it. > > This renders the polys test from mesa demos properly. > Fixes: > https://bugs.freedesktop.org/show_bu

[Mesa-dev] [PATCH] r600g: add polygon stipple support

2015-01-27 Thread Dave Airlie
From: Dave Airlie This use the gallium poly stipple helper to modify the fragment shader and sets up the appropriate state around it. This renders the polys test from mesa demos properly. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=25280 TODO: should this be in radeon common code? (rade