OSDN Git Service

gallivm: Add code for rgb9e5 shared exponent format to float conversion
authorRoland Scheidegger <sroland@vmware.com>
Sat, 23 Mar 2013 01:05:54 +0000 (02:05 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Sun, 24 Mar 2013 01:09:02 +0000 (02:09 +0100)
commitb50e362dbbced42c93fb28a420977dfecd38c823
tree68facba8dbeb16254560bade276015d15162e4bd
parent3e10ab6b22341c06a9352b1e029b923f4d8405b9
gallivm: Add code for rgb9e5 shared exponent format to float conversion

And use this (and the code for r11g11b10 packed float to float conversion)
in the soa texturing code (the generated code looks quite good).
Should be an order of magnitude faster probably than using the fallback
(not measured).
Tested with piglit texwrap GL_EXT_packed_float and
GL_EXT_texture_shared_exponent respectively (didn't find much else using
it).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_conv.c
src/gallium/auxiliary/gallivm/lp_bld_conv.h
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c