mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 22:30:12 +01:00
nir/gather_info: Stop gathering uses_sample_shading
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14020>
This commit is contained in:
parent
b6543470fe
commit
3cf103f23d
1 changed files with 0 additions and 11 deletions
|
|
@ -987,17 +987,6 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
|
||||||
gather_func_info(entrypoint, shader, visited_funcs, dead_ctx);
|
gather_func_info(entrypoint, shader, visited_funcs, dead_ctx);
|
||||||
ralloc_free(dead_ctx);
|
ralloc_free(dead_ctx);
|
||||||
|
|
||||||
if (shader->info.stage == MESA_SHADER_FRAGMENT &&
|
|
||||||
(shader->info.fs.uses_sample_qualifier ||
|
|
||||||
(BITSET_TEST(shader->info.system_values_read, SYSTEM_VALUE_SAMPLE_ID) ||
|
|
||||||
BITSET_TEST(shader->info.system_values_read, SYSTEM_VALUE_SAMPLE_POS)))) {
|
|
||||||
/* This shouldn't be cleared because if optimizations remove all
|
|
||||||
* sample-qualified inputs and that pass is run again, the sample
|
|
||||||
* shading must stay enabled.
|
|
||||||
*/
|
|
||||||
shader->info.fs.uses_sample_shading = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
shader->info.per_primitive_outputs = 0;
|
shader->info.per_primitive_outputs = 0;
|
||||||
if (shader->info.stage == MESA_SHADER_MESH) {
|
if (shader->info.stage == MESA_SHADER_MESH) {
|
||||||
nir_foreach_shader_out_variable(var, shader) {
|
nir_foreach_shader_out_variable(var, shader) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue