Re: [Mesa-dev] [PATCH 09/12] i965/fs: Add support for gl_ViewportIndex input

2014-01-28 Thread Roland Scheidegger
Am 28.01.2014 21:45, schrieb Ian Romanick: > On 01/26/2014 02:31 PM, Chris Forbes wrote: >> Ian, >> >> I'd thought about that a bit while building this, and struggled to >> find cases where this was observable in a defined fragment shader >> execution. > > Yeah, I've been thinking about it a bit t

Re: [Mesa-dev] [PATCH 09/12] i965/fs: Add support for gl_ViewportIndex input

2014-01-28 Thread Ian Romanick
On 01/26/2014 02:31 PM, Chris Forbes wrote: > Ian, > > I'd thought about that a bit while building this, and struggled to > find cases where this was observable in a defined fragment shader > execution. Yeah, I've been thinking about it a bit too. > The ARB_viewport_array spec says: > > If

Re: [Mesa-dev] [PATCH 09/12] i965/fs: Add support for gl_ViewportIndex input

2014-01-26 Thread Chris Forbes
Ian, I'd thought about that a bit while building this, and struggled to find cases where this was observable in a defined fragment shader execution. The ARB_viewport_array spec says: If the value of the viewport index is outside the range zero to the value of MAX_VIEWPORTS minus one, the

Re: [Mesa-dev] [PATCH 09/12] i965/fs: Add support for gl_ViewportIndex input

2014-01-26 Thread Ian Romanick
On 01/24/2014 10:51 PM, Chris Forbes wrote: > Same idea as gl_Layer -- this is delivered in part of R0.0. NAK. The spec says: "... the fragment stage will read the same value written by the geometry stage, even if that value is out of range." If the geometry shader passes 0xDEADBEEF, th

[Mesa-dev] [PATCH 09/12] i965/fs: Add support for gl_ViewportIndex input

2014-01-24 Thread Chris Forbes
Same idea as gl_Layer -- this is delivered in part of R0.0. Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_fs.cpp | 22 ++ src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 ++ 3 files changed, 25 ins