From 5020403c703c5fea571b1989fd3a004dbe76e74c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 23 Jul 2020 00:13:35 -0400 Subject: [PATCH] glsl: don't lower atomic functions to mediump Reviewed-by: Rob Clark Part-of: --- src/compiler/glsl/lower_precision.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2