[Mesa-dev] [PATCH] r600g: disable sqrt for the LLVM backend.
Christopher Egert
cme3000 at gmail.com
Tue Oct 21 12:05:25 PDT 2014
Hi Tom,
i'm using LLVM 3.5 (Debian unstable).
There is no error message, but the rendering is wrong:
correct: https://i.imgur.com/matTeJk.jpg
wrong: https://i.imgur.com/zRJ3hdJ.png
This is the same frame dumped via apitrace with and without that patch.
I can provide the apitrace if you want to look into it :)
On Tue, Oct 21, 2014 at 3:34 PM, Tom Stellard <tom at stellard.net> wrote:
> 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