X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Fgallivm%2Flp_bld_tgsi.h;h=b799900bfd7e209ea9f910c0ea1ec3028084cbf2;hb=4a72d859b4f8d0444eb7f38606d59d7ddc9ea8fa;hp=b03eefc9ee526371703da88facb88db63540d959;hpb=bc2875aa483a0fef7f6e32c1886f6e2edaba7694;p=mesa.git diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h index b03eefc9ee5..b799900bfd7 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h @@ -45,7 +45,7 @@ #include "pipe/p_state.h" #include "tgsi/tgsi_exec.h" #include "tgsi/tgsi_scan.h" - +#include "tgsi/tgsi_info.h" #define LP_CHAN_ALL ~0 @@ -273,12 +273,16 @@ struct lp_build_tgsi_context; typedef LLVMValueRef (*lp_build_emit_fetch_fn)(struct lp_build_tgsi_context *, const struct tgsi_full_src_register *, + enum tgsi_opcode_type, unsigned); struct lp_build_tgsi_context { struct lp_build_context base; + struct lp_build_context uint_bld; + struct lp_build_context int_bld; + /** This array stores functions that are used to transform TGSI opcodes to * LLVM instructions. */ @@ -338,9 +342,6 @@ struct lp_build_tgsi_soa_context { struct lp_build_tgsi_context bld_base; - /* Builder for vector integer masks and indices */ - struct lp_build_context uint_bld; - /* Builder for scalar elements of shader's data type (float) */ struct lp_build_context elem_bld;