Re: [Mesa-dev] [PATCH] glsl: add support for textureSize

2011-06-19 Thread Kenneth Graunke
On 06/19/2011 01:24 AM, Dave Airlie wrote: From: Dave Airlie I just used an opcode I called txs, TGSI has a RESINFO opcode this corresponds to. Signed-off-by: Dave Airlie Ah, sorry...I'd actually done all of this a few months ago, but got snagged trying to make ir_to_mesa not die a horrible

[Mesa-dev] [PATCH] glsl: add support for textureSize

2011-06-19 Thread Dave Airlie
From: Dave Airlie I just used an opcode I called txs, TGSI has a RESINFO opcode this corresponds to. Signed-off-by: Dave Airlie --- src/glsl/builtins/profiles/130.frag |2 - src/glsl/builtins/tools/texture_builtins.py | 59 +- src/glsl/ir.cpp