diff options
author | Dave Airlie <[email protected]> | 2020-01-23 16:13:24 +1000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-07 00:54:42 +0000 |
commit | b66884131312cac4438aab89490fd6f33443247a (patch) | |
tree | 02ed5bd14aeadaf5713e9be77dba7b8e62f0bc73 /src/gallium/auxiliary/gallivm | |
parent | 9d70002744ca121bff51dd40bfa76b633320652c (diff) |
gallivm/swr: add stream_id to geom epilogue emit
We want to pass a stream in here so we can write out separate
prim/vertex counts for each stream at the end.
This also adds an ignore any stream option so we can stage more code
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi.h | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c index 1457cb15f28..828cf5e7028 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c @@ -1607,7 +1607,7 @@ void lp_build_nir_soa(struct gallivm_state *gallivm, bld.gs_iface->gs_epilogue(bld.gs_iface, total_emitted_vertices_vec, - emitted_prims_vec); + emitted_prims_vec, 0); } lp_exec_mask_fini(&bld.exec_mask); } diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h index e8cbceb27fa..380579c3f70 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h @@ -424,7 +424,7 @@ struct lp_build_gs_iface LLVMValueRef mask_vec); void (*gs_epilogue)(const struct lp_build_gs_iface *gs_iface, LLVMValueRef total_emitted_vertices_vec, - LLVMValueRef emitted_prims_vec); + LLVMValueRef emitted_prims_vec, unsigned stream); }; struct lp_build_tcs_iface diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index b1a2e96e804..913fcb2a914 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -4371,7 +4371,7 @@ static void emit_epilogue(struct lp_build_tgsi_context * bld_base) bld->gs_iface->gs_epilogue(bld->gs_iface, total_emitted_vertices_vec, - emitted_prims_vec); + emitted_prims_vec, 0); } else { gather_outputs(bld); } |