glsl: remove LowerPrecisionTemporaries
Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6189>
This commit is contained in:
parent
c4e0cae90c
commit
a4c4e0103a
|
@ -1333,8 +1333,6 @@ lower_precision(const struct gl_shader_compiler_options *options,
|
|||
find_lowerable_rvalues(options, instructions, v.lowerable_rvalues);
|
||||
visit_list_elements(&v, instructions);
|
||||
|
||||
if (options->LowerPrecisionTemporaries) {
|
||||
lower_variables_visitor vars(options);
|
||||
visit_list_elements(&vars, instructions);
|
||||
}
|
||||
lower_variables_visitor vars(options);
|
||||
visit_list_elements(&vars, instructions);
|
||||
}
|
||||
|
|
|
@ -441,7 +441,6 @@ standalone_compile_shader(const struct standalone_options *_options,
|
|||
options->LowerPrecisionFloat16 = true;
|
||||
options->LowerPrecisionInt16 = true;
|
||||
options->LowerPrecisionDerivatives = true;
|
||||
options->LowerPrecisionTemporaries = true;
|
||||
options->LowerPrecisionConstants = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3217,12 +3217,6 @@ struct gl_shader_compiler_options
|
|||
*/
|
||||
GLboolean LowerPrecisionConstants;
|
||||
|
||||
/**
|
||||
* This enables 16-bit phis in NIR, 16-bit loop counters, 16-bit indirect
|
||||
* arrays, etc.
|
||||
*/
|
||||
GLboolean LowerPrecisionTemporaries;
|
||||
|
||||
/**
|
||||
* \name Forms of indirect addressing the driver cannot do.
|
||||
*/
|
||||
|
|
|
@ -348,7 +348,6 @@ void st_init_limits(struct pipe_screen *screen,
|
|||
screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_INT16);
|
||||
options->LowerPrecisionConstants =
|
||||
screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_GLSL_16BIT_CONSTS);
|
||||
options->LowerPrecisionTemporaries = true;
|
||||
}
|
||||
|
||||
c->MaxUserAssignableUniformLocations =
|
||||
|
|
Loading…
Reference in New Issue