Skip to content
  • Kenneth Graunke's avatar
    i965/gs: Use new NIR intrinsics. · df31c185
    Kenneth Graunke authored
    
    
    By performing the vertex counting in NIR, we're able to elide a ton of
    useless safety checks around every EmitVertex() call:
    
    total instructions in shared programs: 3952 -> 3720 (-5.87%)
    instructions in affected programs:     3491 -> 3259 (-6.65%)
    helped:                                11
    HURT:                                  0
    
    Improves performance in Gl32GSCloth by 0.671742% +/- 0.142202% (n=621)
    on Haswell GT3e at 1024x768.
    
    This should also make it easier to implement Broadwell's "Static Vertex
    Count" feature someday.
    
    Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
    Reviewed-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
    df31c185