diff options
author | Roland Scheidegger <sroland@vmware.com> | 2016-02-02 03:51:22 +0100 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2016-02-02 05:58:20 +0100 |
commit | 7221b8aec648c0da3f7ce386e143e9fdbb36a0ce (patch) | |
tree | 548a7c60254fd73efc69ecc8151dd27b9d99fc33 /src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c | |
parent | 5171ec9ca92ce489e32c227ae3b4b6df621bbf40 (diff) | |
download | external_mesa3d-7221b8aec648c0da3f7ce386e143e9fdbb36a0ce.zip external_mesa3d-7221b8aec648c0da3f7ce386e143e9fdbb36a0ce.tar.gz external_mesa3d-7221b8aec648c0da3f7ce386e143e9fdbb36a0ce.tar.bz2 |
gallivm: add PK2H/UP2H support
Add support for these opcodes, the conversion functions were already
there albeit need some new packing stuff.
Just like the tgsi version, piglit won't like it for all the same
reasons, so it's disabled (UP2H passes piglit arb_shader_language_packing
tests, albeit since PK2H won't due to those rounding differences I don't
know if that one works or not as the piglit test is rather difficult to
deal with).
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c index f6b42ee..43af6b4 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c @@ -548,9 +548,10 @@ pk2h_fetch_args( } static void -pk2h_emit(const struct lp_build_tgsi_action *action, - struct lp_build_tgsi_context *bld_base, - struct lp_build_emit_data *emit_data) +pk2h_emit( + const struct lp_build_tgsi_action *action, + struct lp_build_tgsi_context *bld_base, + struct lp_build_emit_data *emit_data) { struct gallivm_state *gallivm = bld_base->base.gallivm; struct lp_type f16i_t; @@ -575,9 +576,10 @@ static struct lp_build_tgsi_action pk2h_action = { /* TGSI_OPCODE_UP2H */ static void -up2h_emit(const struct lp_build_tgsi_action *action, - struct lp_build_tgsi_context *bld_base, - struct lp_build_emit_data *emit_data) +up2h_emit( + const struct lp_build_tgsi_action *action, + struct lp_build_tgsi_context *bld_base, + struct lp_build_emit_data *emit_data) { struct gallivm_state *gallivm = bld_base->base.gallivm; LLVMBuilderRef builder = gallivm->builder; |