screen->context_ptr_type = LLVMPointerType(context_type, 0);
}
- /* fetch_texel
- */
- {
- LLVMTypeRef ret_type;
- LLVMTypeRef arg_types[3];
- LLVMValueRef fetch_texel;
-
- ret_type = LLVMVoidType();
- arg_types[0] = LLVMPointerType(LLVMInt8Type(), 0); /* samplers */
- arg_types[1] = LLVMInt32Type(); /* unit */
- arg_types[2] = LLVMPointerType(LLVMVectorType(LLVMFloatType(), 4), 0); /* store */
-
- fetch_texel = lp_declare_intrinsic(screen->module, "fetch_texel",
- ret_type, arg_types, Elements(arg_types));
-
- LLVMAddGlobalMapping(screen->engine, fetch_texel, lp_fetch_texel_soa);
- }
-
#ifdef DEBUG
LLVMDumpModule(screen->module);
#endif
#include "lp_context.h"
#include "lp_state.h"
#include "lp_surface.h"
+#include "lp_setup.h"
#include "draw/draw_context.h"
}
if (dirty) {
- lp_setup_set_framebuffer( lp->setup, fb );
+ lp_setup_bind_framebuffer( lp->setup,
+ fb->cbufs[0],
+ fb->zsbuf );
+
lp->dirty |= LP_NEW_FRAMEBUFFER;
}
}