summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_fs.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2023-08-09 16:26:03 +1000
committerDave Airlie <airlied@redhat.com>2023-09-25 12:06:39 +1000
commit2b09d2d715994f5222211fcc4c56bd67c54792b0 (patch)
treed1f60827cc718f303348783a470f58e6c4018313 /src/gallium/drivers/llvmpipe/lp_state_fs.c
parent5827034dfc05fb8cfc3aa727a775382f12772d67 (diff)
llvmpipe/nir: call gather info to update inputs read properly
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24436>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 94c2f8d15ed..76518146813 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -3981,6 +3981,7 @@ llvmpipe_create_fs_state(struct pipe_context *pipe,
nir_shader *nir = shader->base.ir.nir;
NIR_PASS_V(nir, nir_lower_fragcolor, nir->info.fs.color_is_dual_source ? 1 : 8);
+ nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
nir_tgsi_scan_shader(nir, &shader->info.base, true);
shader->info.num_texs = shader->info.base.opcode_count[TGSI_OPCODE_TEX];