glsl: remove never true do_dead_code() parameter
Since we have now switched all drivers to using NIR and therefore the NIR based uniform linker this param never needs to be set to true so remove it. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16924>
This commit is contained in:

committed by
Marge Bot

parent
3223f5b63f
commit
d09a37ef54
@@ -212,8 +212,7 @@ glsl_to_nir(const struct gl_constants *consts,
|
||||
* TODO: add missing glsl ir to nir support and remove this loop.
|
||||
*/
|
||||
while (has_unsupported_function_param(sh->ir)) {
|
||||
do_common_optimization(sh->ir, true, true, gl_options,
|
||||
consts->NativeIntegers);
|
||||
do_common_optimization(sh->ir, true, gl_options, consts->NativeIntegers);
|
||||
}
|
||||
|
||||
nir_shader *shader = nir_shader_create(NULL, stage, options,
|
||||
|
Reference in New Issue
Block a user