[Mesa-dev] [PATCH] r600g: disable sqrt for the LLVM backend.

Tom Stellard tom at stellard.net
Tue Oct 21 06:34:20 PDT 2014


On Mon, Oct 20, 2014 at 10:53:21PM +0200, Christopher Egert wrote:
> sqrt is not supported by the LLVM backend.
> 

What version of LLVM are you using, and what error message are you seeing?

-Tom

> 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
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list