glsl: don't lower atomic functions to mediump

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6073>
This commit is contained in:
Marek Olšák
2020-07-23 00:13:35 -04:00
committed by Marge Bot
parent 93076f60d3
commit 5020403c70

View File

@@ -506,7 +506,9 @@ is_lowerable_builtin(ir_call *ir,
*/
!strcmp(ir->callee_name(), "packHalf2x16") ||
!strcmp(ir->callee_name(), "packUnorm4x8") ||
!strcmp(ir->callee_name(), "packSnorm4x8"))
!strcmp(ir->callee_name(), "packSnorm4x8") ||
/* Atomic functions are not lowered. */
strstr(ir->callee_name(), "atomic") == ir->callee_name())
return false;
assert(ir->callee->return_precision == GLSL_PRECISION_NONE);