mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
gallivm/tgsi/swr: add mask vec to the tcs store
For the nir paths we want to access the mask vector to only store when the mask allows it. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3841>
This commit is contained in:
parent
87359d68a9
commit
70a7603b63
3 changed files with 5 additions and 3 deletions
|
|
@ -441,7 +441,8 @@ struct lp_build_tcs_iface
|
|||
boolean is_aindex_indirect,
|
||||
LLVMValueRef attrib_index,
|
||||
LLVMValueRef swizzle_index,
|
||||
LLVMValueRef value);
|
||||
LLVMValueRef value,
|
||||
LLVMValueRef mask_vec);
|
||||
|
||||
LLVMValueRef (*emit_fetch_input)(const struct lp_build_tcs_iface *tcs_iface,
|
||||
struct lp_build_context * bld,
|
||||
|
|
|
|||
|
|
@ -1764,7 +1764,7 @@ emit_store_tcs_output(struct lp_build_tgsi_context *bld_base,
|
|||
reg->Register.Indirect,
|
||||
attrib_index,
|
||||
channel_index,
|
||||
value);
|
||||
value, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -601,7 +601,8 @@ void swr_tcs_llvm_store_output(const struct lp_build_tcs_iface *tcs_iface,
|
|||
boolean is_aindex_indirect,
|
||||
LLVMValueRef attrib_index,
|
||||
LLVMValueRef swizzle_index,
|
||||
LLVMValueRef value)
|
||||
LLVMValueRef value,
|
||||
LLVMValueRef mask_vec)
|
||||
{
|
||||
swr_tcs_llvm_iface *iface = (swr_tcs_llvm_iface*)tcs_iface;
|
||||
struct lp_build_tgsi_context *bld_base = (struct lp_build_tgsi_context*)bld;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue