aco: Use aco_shader_info::hw_stage instead of guessing.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 12 Jun 2023 13:55:40 +0000 (15:55 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 23 Jun 2023 12:49:05 +0000 (12:49 +0000)
commitbc971ba2c7d8cb869f38f069306112bdb75cb7e0
tree6892f84bec77609c7b247e79e7f073c46ac90453
parent6028c146d54f14277000f98daf94c629a64cb19f
aco: Use aco_shader_info::hw_stage instead of guessing.

With this change, ACO is going to rely on the caller to set
the HW stage and will no longer guess it from the input shaders.

This will help enable compiling merged shaders separately,
but that will need further changes in instruction selection.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23597>
src/amd/compiler/aco_instruction_selection_setup.cpp