Re: [Mesa-dev] how mesa glsl compiler generate ir_texture

2013-08-22 Thread Liu Xin
Kenneth, thank you for your guide. mesa code is much clearer for me now. --lx On 08/23/2013 02:07 AM, Kenneth Graunke wrote: On 08/22/2013 02:59 AM, Liu Xin wrote: Dear list, i wonder if all vendors in mesa3d use intel's glsl compiler now? by browsing glsl source code, i still don't underst

Re: [Mesa-dev] how mesa glsl compiler generate ir_texture

2013-08-22 Thread Kenneth Graunke
On 08/22/2013 02:59 AM, Liu Xin wrote: Dear list, i wonder if all vendors in mesa3d use intel's glsl compiler now? by browsing glsl source code, i still don't understand how it generates ir_texture. in my idea, it treats it as normal function call. Yes, all drivers use the same shader compile

[Mesa-dev] how mesa glsl compiler generate ir_texture

2013-08-22 Thread Liu Xin
Dear list, i wonder if all vendors in mesa3d use intel's glsl compiler now? by browsing glsl source code, i still don't understand how it generates ir_texture. in my idea, it treats it as normal function call. for example, this is tiny fragment shader: uniform sampler2D sampler2d; varying me