[Mesa-dev] [RFC 07/11] glsl: Add "built-in" functions to do mul(fp64, fp64)

Matt Turner mattst88 at gmail.com
Fri Mar 3 19:02:50 UTC 2017


On Fri, Mar 3, 2017 at 10:51 AM, tournier.elie <tournier.elie at gmail.com> wrote:
> On 3 March 2017 at 17:46, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
>> On Friday, 2017-03-03 16:23:03 +0000, Elie Tournier wrote:
>>> Signed-off-by: Elie Tournier <elie.tournier at collabora.com>
>>> ---
>>>  src/compiler/glsl/builtin_float64.h     | 2558 +++++++++++++++++++++++++++++++
>>>  src/compiler/glsl/builtin_functions.cpp |    4 +
>>>  src/compiler/glsl/builtin_functions.h   |    3 +
>>>  src/compiler/glsl/float64.glsl          |  172 +++
>>>  4 files changed, 2737 insertions(+)
>>>
>>> diff --git a/src/compiler/glsl/builtin_float64.h b/src/compiler/glsl/builtin_float64.h
>>> index bf0953e5d6..0a363bd27a 100644
>>> --- a/src/compiler/glsl/builtin_float64.h
>>> +++ b/src/compiler/glsl/builtin_float64.h
>> [snip]
>>> +
>>> +            /* THEN INSTRUCTIONS */
>>> +            body.instructions = &f0EF9->then_instructions;
>>> +
>>> +            ir_constant_data r0EFD_data;
>>> +            memset(&r0EFD_data, 0, sizeof(ir_constant_data));
>>> +r0EFD_data.u[0] = 4294967295;
>>> +r0EFD_data.u[1] = 4294967295;
>>
>> Looks like some debug/testing left-overs?
>
> No. It's the IR representation of "return uvec2(0xFFFFFFFFu, 0xFFFFFFFFu);"

Ah, it just looks like debugging code because it's not indented
properly. Looks like a bug in the compiler.


More information about the mesa-dev mailing list