Re: [Mesa-dev] [PATCH 7/8] RFC: llvmpipe: Add byte-swap construct calls

2012-11-22 Thread Roland Scheidegger
Am 22.11.2012 21:35, schrieb Adhemerval Zanella: > This patch adds two more functions in type conversions header: > * lp_build_bswap: construct a call to llvm.bswap intrinsic for an > element > * lp_build_bswap_vec: byte swap every element in a vector base on the > input and output types. > >

[Mesa-dev] [PATCH 7/8] RFC: llvmpipe: Add byte-swap construct calls

2012-11-22 Thread Adhemerval Zanella
This patch adds two more functions in type conversions header: * lp_build_bswap: construct a call to llvm.bswap intrinsic for an element * lp_build_bswap_vec: byte swap every element in a vector base on the input and output types. Currently my approach for vectors is naive: it recreates a vect