From: Marek Olšák Date: Thu, 23 Jul 2020 04:13:35 +0000 (-0400) Subject: glsl: don't lower atomic functions to mediump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5020403c703c5fea571b1989fd3a004dbe76e74c;p=mesa.git glsl: don't lower atomic functions to mediump Reviewed-by: Rob Clark Part-of: --- diff --git a/src/compiler/glsl/lower_precision.cpp b/src/compiler/glsl/lower_precision.cpp index dcf632983f9..97a91f8c440 100644 --- a/src/compiler/glsl/lower_precision.cpp +++ b/src/compiler/glsl/lower_precision.cpp @@ -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);