glsl: lower mediump temporaries to 16 bits except structures (v2)
Without this, NIR contains non-lowerable 32-bit phis for mediump variables. Structures are not lowered yet. v2: add the LowerPrecisionTemporaries option Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> (v1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5746>
This commit is contained in:
@@ -441,6 +441,7 @@ standalone_compile_shader(const struct standalone_options *_options,
|
||||
options->LowerPrecisionFloat16 = true;
|
||||
options->LowerPrecisionInt16 = true;
|
||||
options->LowerPrecisionDerivatives = true;
|
||||
options->LowerPrecisionTemporaries = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user