[Mesa-dev] [PATCH] r600g: disable sqrt for the LLVM backend.
Christopher Egert
cme3000 at gmail.com
Mon Oct 20 13:53:21 PDT 2014
sqrt is not supported by the LLVM backend.
Fixes rendering errors in Passing by Still.
http://demozoo.org/productions/156/
Signed-off-by: Christopher Egert <cme3000 at gmail.com>
---
src/gallium/drivers/r600/r600_pipe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 3962fee..e11736c 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -454,7 +454,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
return 1;
case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
- return 1;
+ return rscreen->b.debug_flags & DBG_LLVM ? 0 : 1;
case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
--
2.1.1
More information about the mesa-dev
mailing list