mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
llvmpipe/fs: drop cbuf 0 since it's lowered now.
Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24804>
This commit is contained in:
parent
5120139958
commit
8e2f020bb4
1 changed files with 1 additions and 6 deletions
|
|
@ -3138,7 +3138,6 @@ generate_fragment(struct llvmpipe_context *lp,
|
|||
LLVMValueRef fs_out_color[LP_MAX_SAMPLES][PIPE_MAX_COLOR_BUFS][TGSI_NUM_CHANNELS][16 / 4];
|
||||
LLVMValueRef function;
|
||||
LLVMValueRef facing;
|
||||
bool cbuf0_write_all;
|
||||
const bool dual_source_blend = key->blend.rt[0].blend_enable &&
|
||||
util_blend_state_is_dual(&key->blend, 0);
|
||||
|
||||
|
|
@ -3157,10 +3156,6 @@ generate_fragment(struct llvmpipe_context *lp,
|
|||
}
|
||||
}
|
||||
|
||||
/* check if writes to cbuf[0] are to be copied to all cbufs */
|
||||
cbuf0_write_all =
|
||||
shader->info.base.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS];
|
||||
|
||||
/* TODO: actually pick these based on the fs and color buffer
|
||||
* characteristics. */
|
||||
|
||||
|
|
@ -3457,7 +3452,7 @@ generate_fragment(struct llvmpipe_context *lp,
|
|||
for (unsigned cbuf = 0; cbuf < key->nr_cbufs; cbuf++) {
|
||||
for (unsigned chan = 0; chan < TGSI_NUM_CHANNELS; ++chan) {
|
||||
ptr = LLVMBuildGEP2(builder, fs_vec_type,
|
||||
color_store[cbuf * !cbuf0_write_all][chan],
|
||||
color_store[cbuf][chan],
|
||||
&sindexi, 1, "");
|
||||
fs_out_color[s][cbuf][chan][i] = ptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue