nir_to_tgsi_info: drop const_buffers_declared

Drivers don't use this, so avoid the assert it could have.

Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18042>
This commit is contained in:
Dave Airlie
2022-08-13 11:15:45 +10:00
parent 50238f4958
commit ad274ba889

View File

@@ -794,9 +794,6 @@ void nir_tgsi_scan_shader(const struct nir_shader *nir,
info->num_outputs = num_outputs;
info->const_file_max[0] = nir->num_uniforms - 1;
info->const_buffers_declared = u_bit_consecutive(1, nir->info.num_ubos);
if (nir->num_uniforms > 0)
info->const_buffers_declared |= 1;
info->images_declared = nir->info.images_used[0];
info->samplers_declared = nir->info.textures_used[0];