summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-06-26 15:34:52 +1000
committerDave Airlie <[email protected]>2019-07-07 16:23:36 +1000
commit5ff697aa658b4718a1c6050c72dfb18d39b38069 (patch)
tree9fd22d55c4091204e3d2040da520e6483ef171c9 /src/gallium/auxiliary/gallivm
parent2a55acbc1de0b8d1901988ee4f17d5697519c2d2 (diff)
gallivm: add ssbo pointers to the soa build api.
Need to pass ssbo + ssbo size pointers just like constants. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi.h7
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
index 309ece88df2..824eff2af41 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
@@ -230,7 +230,9 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
LLVMValueRef thread_data_ptr,
const struct lp_build_sampler_soa *sampler,
const struct tgsi_shader_info *info,
- const struct lp_build_tgsi_gs_iface *gs_iface);
+ const struct lp_build_tgsi_gs_iface *gs_iface,
+ LLVMValueRef ssbo_ptr,
+ LLVMValueRef ssbo_sizes_ptr);
void
@@ -452,6 +454,9 @@ struct lp_build_tgsi_soa_context
LLVMValueRef context_ptr;
LLVMValueRef thread_data_ptr;
+ LLVMValueRef ssbo_ptr;
+ LLVMValueRef ssbo_sizes_ptr;
+
const struct lp_build_sampler_soa *sampler;
struct tgsi_declaration_sampler_view sv[PIPE_MAX_SHADER_SAMPLER_VIEWS];
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index d6af1d84471..edc66c4a37e 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -3838,7 +3838,9 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
LLVMValueRef thread_data_ptr,
const struct lp_build_sampler_soa *sampler,
const struct tgsi_shader_info *info,
- const struct lp_build_tgsi_gs_iface *gs_iface)
+ const struct lp_build_tgsi_gs_iface *gs_iface,
+ LLVMValueRef ssbo_ptr,
+ LLVMValueRef ssbo_sizes_ptr)
{
struct lp_build_tgsi_soa_context bld;
@@ -3879,6 +3881,8 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
bld.outputs = outputs;
bld.consts_ptr = consts_ptr;
bld.const_sizes_ptr = const_sizes_ptr;
+ bld.ssbo_ptr = ssbo_ptr;
+ bld.ssbo_sizes_ptr = ssbo_sizes_ptr;
bld.sampler = sampler;
bld.bld_base.info = info;
bld.indirect_files = info->indirect_files;