LP_CHECK_STRUCT_SIZE(struct draw_jit_context,
llvm->target, context_type);
- LLVMAddTypeName(llvm->module, "context", context_type);
+ LLVMAddTypeName(llvm->module, "draw_jit_context", context_type);
llvm->context_ptr_type = LLVMPointerType(context_type, 0);
}
*max_vertices = *max_vertices & ~1;
draw_llvm_prepare(fpme->llvm);
+
+ /*XXX we only support one constant buffer */
+ fpme->llvm->jit_context.vs_constants =
+ draw->pt.user.vs_constants[0];
+ fpme->llvm->jit_context.gs_constants =
+ draw->pt.user.gs_constants[0];
}
fpme->llvm->jit_func( &fpme->llvm->jit_context,
pipeline_verts,
- draw->pt.user.vbuffer,
+ (const char **)draw->pt.user.vbuffer,
start,
count,
fpme->vertex_size );