Re: [Mesa-dev] [PATCH 5/6] nir/lower_tex: add support to clamp texture coords

2015-09-18 Thread Kenneth Graunke
On Friday, September 18, 2015 12:24:37 PM Rob Clark wrote: > On Fri, Sep 18, 2015 at 11:55 AM, Kenneth Graunke > wrote: > > On Friday, September 18, 2015 10:55:08 AM Rob Clark wrote: > >> From: Rob Clark > >> > >> Some hardware needs to clamp texture coordinates to [0.0, 1.0] in the > >> shader

Re: [Mesa-dev] [PATCH 5/6] nir/lower_tex: add support to clamp texture coords

2015-09-18 Thread Rob Clark
On Fri, Sep 18, 2015 at 11:55 AM, Kenneth Graunke wrote: > On Friday, September 18, 2015 10:55:08 AM Rob Clark wrote: >> From: Rob Clark >> >> Some hardware needs to clamp texture coordinates to [0.0, 1.0] in the >> shader to emulate GL_CLAMP. This is added to lower_tex_proj since, in >> the cas

Re: [Mesa-dev] [PATCH 5/6] nir/lower_tex: add support to clamp texture coords

2015-09-18 Thread Kenneth Graunke
On Friday, September 18, 2015 10:55:08 AM Rob Clark wrote: > From: Rob Clark > > Some hardware needs to clamp texture coordinates to [0.0, 1.0] in the > shader to emulate GL_CLAMP. This is added to lower_tex_proj since, in > the case of projected coords, the clamping needs to happen *after* > pr

[Mesa-dev] [PATCH 5/6] nir/lower_tex: add support to clamp texture coords

2015-09-18 Thread Rob Clark
From: Rob Clark Some hardware needs to clamp texture coordinates to [0.0, 1.0] in the shader to emulate GL_CLAMP. This is added to lower_tex_proj since, in the case of projected coords, the clamping needs to happen *after* projection. v2: comments/suggestions from Ilia and Eric, use txs to get

[Mesa-dev] [PATCH 5/6] nir/lower_tex: add support to clamp texture coords

2015-09-17 Thread Rob Clark
From: Rob Clark Some hardware needs to clamp texture coordinates to [0.0, 1.0] in the shader to emulate GL_CLAMP. This is added to lower_tex_proj since, in the case of projected coords, the clamping needs to happen *after* projection. Signed-off-by: Rob Clark --- src/glsl/nir/nir.h