Re: [Mesa-dev] [PATCH] st/mesa: adjust Z coordinates for quad clearing

2014-08-05 Thread Dave Airlie
On 6 August 2014 02:21, Brian Paul wrote: > On 08/05/2014 10:16 AM, Roland Scheidegger wrote: >> >> Am 04.08.2014 18:08, schrieb Brian Paul: >>> >>> Specify the quad's Z position in clip coordinate space, not >>> normalized Z space. Use viewport scale, translation = 0.5, 0.5. >>> >>> Before, we w

Re: [Mesa-dev] [PATCH] st/mesa: adjust Z coordinates for quad clearing

2014-08-05 Thread Brian Paul
On 08/05/2014 10:16 AM, Roland Scheidegger wrote: Am 04.08.2014 18:08, schrieb Brian Paul: Specify the quad's Z position in clip coordinate space, not normalized Z space. Use viewport scale, translation = 0.5, 0.5. Before, we were specifying the quad's Z position in [0,1] and using viewport sc

Re: [Mesa-dev] [PATCH] st/mesa: adjust Z coordinates for quad clearing

2014-08-05 Thread Roland Scheidegger
Am 04.08.2014 18:08, schrieb Brian Paul: > Specify the quad's Z position in clip coordinate space, not > normalized Z space. Use viewport scale, translation = 0.5, 0.5. > > Before, we were specifying the quad's Z position in [0,1] and using > viewport scale=1.0, translate=0.0. That works fine, u

[Mesa-dev] [PATCH] st/mesa: adjust Z coordinates for quad clearing

2014-08-04 Thread Brian Paul
Specify the quad's Z position in clip coordinate space, not normalized Z space. Use viewport scale, translation = 0.5, 0.5. Before, we were specifying the quad's Z position in [0,1] and using viewport scale=1.0, translate=0.0. That works fine, unless your driver needs to work in clip coordinate