Re: [Mesa-dev] [PATCH 8/9] gallivm: use undef integer in broadcast.

2012-02-09 Thread Jose Fonseca
Dave, The series looks great. Just this one patch seems off: LLVMTypeOf(scalar) should always match bld->elem_type, and it would only match bld->int_elem_type if the type itself is an integer. Therefore it seems that the caller is using an integer scalar with a floating point build context whe

[Mesa-dev] [PATCH 8/9] gallivm: use undef integer in broadcast.

2012-02-08 Thread Dave Airlie
From: Dave Airlie This adds an undefined int type and uses it for broadcasting instead of the float type. Signed-off-by: Dave Airlie --- src/gallium/auxiliary/gallivm/lp_bld_swizzle.c | 15 +++ src/gallium/auxiliary/gallivm/lp_bld_type.c|1 + src/gallium/auxiliary/gallivm