mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
llvmpipe: add multisample alpha to one support
Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
This commit is contained in:
parent
66a92e5d92
commit
69009949e0
1 changed files with 10 additions and 1 deletions
|
|
@ -690,7 +690,16 @@ generate_fs_loop(struct gallivm_state *gallivm,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (key->blend.alpha_to_one && key->multisample) {
|
||||
for (attrib = 0; attrib < shader->info.base.num_outputs; ++attrib) {
|
||||
unsigned cbuf = shader->info.base.output_semantic_index[attrib];
|
||||
if ((shader->info.base.output_semantic_name[attrib] == TGSI_SEMANTIC_COLOR) &&
|
||||
((cbuf < key->nr_cbufs) || (cbuf == 1 && dual_source_blend)))
|
||||
if (outputs[cbuf][3]) {
|
||||
LLVMBuildStore(builder, lp_build_const_vec(gallivm, type, 1.0), outputs[cbuf][3]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (shader->info.base.writes_samplemask) {
|
||||
int smaski = find_output_by_semantic(&shader->info.base,
|
||||
TGSI_SEMANTIC_SAMPLEMASK,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue