mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
st/nir: Gather info after applying lowering FS variant features
DrawPixels lowering, for example, adds new varyings that need to be accounted for in inputs_read. The earlier info gathering at link time cannot account for this. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
bcb6f19947
commit
3a78b46e59
1 changed files with 4 additions and 0 deletions
|
|
@ -1103,6 +1103,10 @@ st_create_fp_variant(struct st_context *st,
|
|||
key->external.lower_iyuv);
|
||||
}
|
||||
|
||||
/* Some of the lowering above may have introduced new varyings */
|
||||
nir_shader_gather_info(tgsi.ir.nir,
|
||||
nir_shader_get_entrypoint(tgsi.ir.nir));
|
||||
|
||||
variant->driver_shader = pipe->create_fs_state(pipe, &tgsi);
|
||||
variant->key = *key;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue