[Mesa-dev] [PATCH 2/4] st/glsl_to_tgsi: add support for 64-bit integers

Nicolai Hähnle nhaehnle at gmail.com
Thu Jan 26 20:05:07 UTC 2017

On 26.01.2017 20:20, Ilia Mirkin wrote:
> On Thu, Jan 26, 2017 at 2:09 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
>> +   case ir_unop_i642b:
>> +      emit_asm(ir, TGSI_OPCODE_U64SNE, result_dst, op[0], st_src_reg_for_int(0));
>> +      break;
> Does this work reliably? I would have imagined you'd need a
> st_srg_reg_for_int64() variant...

It works because st_src_reg_for_int swizzles the constant across all 
channels. I'm pretty sure that other parts of the code rely on that as 


More information about the mesa-dev mailing list