summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_fs.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2023-08-02 15:35:20 +1000
committerDave Airlie <airlied@redhat.com>2023-08-22 09:53:42 +1000
commit8e2f020bb42749f43629512ae07a8e658381c405 (patch)
tree3d74703acd7941edf8faecd24cf48f54de408aa8 /src/gallium/drivers/llvmpipe/lp_state_fs.c
parent5120139958e73aa30c41ccd8a586af38887dde3b (diff)
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>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 78c3b2505d0..31568c63a0b 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -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;
}