summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_llvm.h
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-04-01 18:58:51 -0400
committerZack Rusin <zackr@vmware.com>2010-04-01 18:58:51 -0400
commitab5c09738760bc1b665b9809eaf921f4ac27057e (patch)
tree5ccd02a9bda843292f27367712f065fa8f698b3f /src/gallium/auxiliary/draw/draw_llvm.h
parentb6d052e4fd83d923776320cf5fef66abcd4bf3d0 (diff)
downloadexternal_mesa3d-ab5c09738760bc1b665b9809eaf921f4ac27057e.zip
external_mesa3d-ab5c09738760bc1b665b9809eaf921f4ac27057e.tar.gz
external_mesa3d-ab5c09738760bc1b665b9809eaf921f4ac27057e.tar.bz2
draw llvm: a lot better storing implementation
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h
index e375008..46ce236 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.h
+++ b/src/gallium/auxiliary/draw/draw_llvm.h
@@ -63,6 +63,17 @@ struct draw_jit_context
#define draw_jit_context_textures(_builder, _ptr) \
lp_build_struct_get_ptr(_builder, _ptr, DRAW_JIT_CONTEXT_TEXTURES_INDEX, "textures")
+
+
+#define draw_jit_header_id(_builder, _ptr) \
+ lp_build_struct_get_ptr(_builder, _ptr, 0, "id")
+
+#define draw_jit_header_clip(_builder, _ptr) \
+ lp_build_struct_get(_builder, _ptr, 1, "clip")
+
+#define draw_jit_header_data(_builder, _ptr) \
+ lp_build_struct_get_ptr(_builder, _ptr, 2, "data")
+
/* we are construction a function of the form:
struct vertex_header {