aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_jit.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-12-10 14:45:19 +1000
committerDave Airlie <[email protected]>2019-12-27 13:22:40 +1000
commit258b9bc02eb7069a8f85cbf568e73c788da819a3 (patch)
tree5adc3a2ea8c39c02d2a65dbfa237b20b56d1c99d /src/gallium/drivers/llvmpipe/lp_jit.h
parent84ba008774967dcbc02d20cdfdeffde7fe1d85c5 (diff)
llvmpipe/gallivm: add kernel inputs
compute shaders need kernel input support Acked-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_jit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_jit.h b/src/gallium/drivers/llvmpipe/lp_jit.h
index 8c89cad2939..0e549a05c0a 100644
--- a/src/gallium/drivers/llvmpipe/lp_jit.h
+++ b/src/gallium/drivers/llvmpipe/lp_jit.h
@@ -324,6 +324,8 @@ struct lp_jit_cs_context
const uint32_t *ssbos[LP_MAX_TGSI_SHADER_BUFFERS];
int num_ssbos[LP_MAX_TGSI_SHADER_BUFFERS];
+ void *kernel_args;
+
uint32_t shared_size;
};
@@ -339,6 +341,7 @@ enum {
LP_JIT_CS_CTX_IMAGES,
LP_JIT_CS_CTX_SSBOS,
LP_JIT_CS_CTX_NUM_SSBOS,
+ LP_JIT_CS_CTX_KERNEL_ARGS,
LP_JIT_CS_CTX_SHARED_SIZE,
LP_JIT_CS_CTX_COUNT
};
@@ -367,6 +370,9 @@ enum {
#define lp_jit_cs_context_shared_size(_gallivm, _ptr) \
lp_build_struct_get_ptr(_gallivm, _ptr, LP_JIT_CS_CTX_SHARED_SIZE, "shared_size")
+#define lp_jit_cs_context_kernel_args(_gallivm, _ptr) \
+ lp_build_struct_get(_gallivm, _ptr, LP_JIT_CS_CTX_KERNEL_ARGS, "kernel_args")
+
typedef void
(*lp_jit_cs_func)(const struct lp_jit_cs_context *context,