Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-17 Thread Roland Scheidegger
dst_w, src, src); >>> >>> /* RSQ TEMP.w, TEMP.w */ >>> ureg_RSQ(tbi->prog, temp_dst_w, temp_src_w); >>> >>> [...] >>> >>> >>> If people feel strongly about writing helper TGSI shaders in plain >>> text, then we sh

Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-17 Thread Jose Fonseca
quote... From: Marek Olšák Sent: 16 November 2014 15:51 To: Jose Fonseca Cc: Ilia Mirkin; mesa-dev@lists.freedesktop.org; 10.3 10.4 Subject: Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer Hi Jose, First of all,

Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-17 Thread Ilia Mirkin
tes *.h files (similar like DirectX HLSL tools). > > > Jose > > PS: Apologies for quoting only parts of the email. I'm sort of limited to > using Outlook Web Access for email when working from home, and need to > manually quote... > > ____

Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-17 Thread Jose Fonseca
From: Marek Olšák Sent: 16 November 2014 15:51 To: Jose Fonseca Cc: Ilia Mirkin; mesa-dev@lists.freedesktop.org; 10.3 10.4 Subject: Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer Hi Jose, First of all, sorry for breaking Draw yesterday. On Sun, Nov 16, 2014

Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-16 Thread Marek Olšák
Hi Jose, First of all, sorry for breaking Draw yesterday. On Sun, Nov 16, 2014 at 2:57 PM, Jose Fonseca wrote: >> Fun fact -- llvmpipe also needs this. > > I think this is because this functionality was developed with D3D10 in mind, > and > > http://msdn.microsoft.com/en-gb/library/windows/desk

Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-16 Thread Jose Fonseca
ime with TGSI - ureg module makes it really easy to write shaders. It's not really much more work. Jose From: mesa-dev on behalf of Ilia Mirkin Sent: 15 November 2014 21:20 To: mesa-dev@lists.freedesktop.org Cc: 10.3 10.4 Subject: Re: [Mesa-dev] [PAT

Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-15 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Sat, Nov 15, 2014 at 7:38 PM, Ilia Mirkin wrote: > Not all drivers can set gl_Layer from VS. Add a fallback that passes the > instance id from VS to GS, and then uses the GS to set the layer. > > Tested by adding > > quad_buffers |= clear_buffers; > clear_b

Re: [Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-15 Thread Ilia Mirkin
On Sat, Nov 15, 2014 at 1:38 PM, Ilia Mirkin wrote: > Not all drivers can set gl_Layer from VS. Add a fallback that passes the > instance id from VS to GS, and then uses the GS to set the layer. > > Tested by adding > > quad_buffers |= clear_buffers; > clear_buffers = 0; > > to the st_Clear lo

[Mesa-dev] [PATCH] st/mesa: add a fallback for clear_with_quad when no vs_layer

2014-11-15 Thread Ilia Mirkin
Not all drivers can set gl_Layer from VS. Add a fallback that passes the instance id from VS to GS, and then uses the GS to set the layer. Tested by adding quad_buffers |= clear_buffers; clear_buffers = 0; to the st_Clear logic, and forcing set_vertex_shader_layered in all cases. No piglit r