[Mesa-dev] radv: Support for control flow attributes (SPIR-V: Unroll, DontUnroll and maybe Flatten, DontFlatten)

Panagiotis Christopoulos Charitos godlike at ancient-ritual.com
Thu May 3 09:13:59 UTC 2018


ping

Panagiotis Christopoulos Charitos
www.ancient-ritual.com <http://ancient-ritual.com>
www.anki3d.org

On Mon, Apr 30, 2018 at 12:36 PM, Panagiotis Christopoulos Charitos <
godlike at ancient-ritual.com> wrote:

> Hi,
>
> I have multiple shaders that are part of my opensource engine and I see
> VGPR usage improvements (on AMDVLK).
>
> I can gather a few and attach them here. They can be in glsl or SPIRV
> forms. Will that work or did I misunderstood the question?
>
> Panagiotis Christopoulos Charitos
> www.ancient-ritual.com <http://ancient-ritual.com>
> www.anki3d.org
>
> On Mon, Apr 30, 2018 at 12:20 PM, Bas Nieuwenhuizen <
> bas at basnieuwenhuizen.nl> wrote:
>
>> We can look at passing it through to the optimizations. Do you have
>> any particular shaders where you are interested in the use of these?
>>
>> On Sat, Apr 28, 2018 at 3:02 PM, Panagiotis Christopoulos Charitos
>> <godlike at ancient-ritual.com> wrote:
>> > Hi,
>> >
>> > SPIR-V supports a few control flow decorations. These decorations are
>> > exposed in glslang as well as part of GL_EXT_control_flow_attributes
>> > extension.
>> >
>> > AMDVLK's compiler supports those decorations and when used it may
>> result in
>> > lower VGPR usage.
>> >
>> > On the other hand RADV seems to ignore them.
>> >
>> > Does it make sense to support them as well? Is yes,  are there any
>> plans?
>> >
>> > PS: I've built mesa with LLVM 6.0.0
>> >
>> >
>> > Panagiotis Christopoulos Charitos
>> > www.ancient-ritual.com
>> > www.anki3d.org
>> >
>> > _______________________________________________
>> > mesa-dev mailing list
>> > mesa-dev at lists.freedesktop.org
>> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180503/d23cfe44/attachment-0001.html>


More information about the mesa-dev mailing list