summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_llvm.h
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-03-29 13:19:16 -0400
committerZack Rusin <zackr@vmware.com>2010-03-29 13:19:16 -0400
commitf44af927ff90a9fe1256d8c6f4869a39a55043d3 (patch)
treed886b86a179034ac4c0c7cec4c4f0a8e10d4e0d1 /src/gallium/auxiliary/draw/draw_llvm.h
parent275c4bd3643d773210780cb8d578ca84f2604684 (diff)
draw llvmpipe: lots of fixes for fetch/emit
the values passed are still not right, but the general scheme is looking good.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h
index 0a1845f1fb..cbbfeeccc5 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.h
+++ b/src/gallium/auxiliary/draw/draw_llvm.h
@@ -78,12 +78,12 @@ struct draw_jit_context
const float *gs_constants;
struct draw_jit_texture textures[PIPE_MAX_SAMPLERS];
- const void *vbuffers;
};
void
draw_shader(struct draw_jit_context *context,
struct vertex_header *io,
+ const void *vbuffers[PIPE_MAX_ATTRIBS],
unsigned start,
unsigned count,
unsigned stride)
@@ -115,6 +115,7 @@ draw_shader(struct draw_jit_context *context,
typedef void
(*draw_jit_vert_func)(struct draw_jit_context *context,
struct vertex_header *io,
+ const void *vbuffers[PIPE_MAX_ATTRIBS],
unsigned start,
unsigned count,
unsigned stride);
@@ -134,6 +135,7 @@ struct draw_llvm {
LLVMTypeRef context_ptr_type;
LLVMTypeRef vertex_header_ptr_type;
+ LLVMTypeRef buffer_ptr_type;
};
@@ -150,5 +152,9 @@ draw_llvm_prepare(struct draw_llvm *llvm);
void
draw_llvm_generate(struct draw_llvm *llvm);
+LLVMValueRef
+draw_llvm_translate_from(LLVMBuilderRef builder,
+ LLVMValueRef vbuffer,
+ enum pipe_format from_format);
#endif