[Mesa-dev] [PATCH] gallium: remove support for predicates from TGSI

Axel Davy axel.davy at ens.fr
Tue Sep 1 14:36:32 PDT 2015


Hi,

There is predication in direct3D9 HLSL,
however we don't implement them and never had any complaint about that.

Reason is that HLSL Microsoft compiler doesn't generate any predication.
I read somewhere they did this choice because for drivers it is possible
to lower efficiently if conditions to predicates if hardware supports 
it, but not
the opposite.

If never a d3d9 apps needs predication, we'll implement them with if 
conditions.

I'm totally fine with predication support being removed from TGSI.

A little nitpicking: instead of setting lower_preds to true, just remove it.
The variable isn't used.

Axel Davy

On 01/09/2015 23:19, Marek Olšák wrote :
> From: Marek Olšák <marek.olsak at amd.com>
>
> Neved used.
> ---
>



More information about the mesa-dev mailing list