[Mesa-dev] [PATCH 2/3] i965/fs/nir: Optimize (gl_FrontFacing ? x : y) where x and y are ±1.0.

Matt Turner mattst88 at gmail.com
Thu Feb 19 23:50:28 PST 2015


On Tue, Feb 17, 2015 at 11:46 AM, Matt Turner <mattst88 at gmail.com> wrote:
> total instructions in shared programs: 8013221 -> 8010869 (-0.03%)
> instructions in affected programs:     475925 -> 473573 (-0.49%)
> helped:                                2350
> ---

Patches 1 and 3 have been reviewed, but I'm this one hasn't.

Neither has the equivalent change to brw_fs_visitor.cpp [0]. The only
response to that patch was concerns about adding new optimizations
only to brw_fs_visitor.cpp.

The current numbers for this patch are

total instructions in shared programs: 7756214 -> 7753873 (-0.03%)
instructions in affected programs:     455452 -> 453111 (-0.51%)
helped:                                2333

and the current numbers for the analogous brw_fs_visitor.cpp change are

total instructions in shared programs: 5695356 -> 5689775 (-0.10%)
instructions in affected programs:     486231 -> 480650 (-1.15%)
helped:                                2604
LOST:                                  1

They're both available in the sent branch of my tree:

   git://people.freedesktop.org/~mattst88/mesa sent

[0] [PATCH 3/4] i965/fs: Optimize (gl_FrontFacing ? x : y) where x and
y are ±1.0.


More information about the mesa-dev mailing list