Skip to content
  • Emma Anholt's avatar
    vc4: Don't bother lowering uniforms when the same value is used twice. · dd05ffeb
    Emma Anholt authored
    DEQP likes to do math on uniforms, and the "fmaxabs dst, uni, uni" to get
    the absolute value would get lowered.  The lowering doesn't bother to try
    to restrict the lifetime of the lowered uniforms, so we'd end up register
    allocation failng due to this on 5 of the tests (More tests still fail in
    RA, which look like we'll need to reduce lowered uniform lifetimes to
    fix).
    
    No changes on shader-db, though fewer extra MOVs are generated on even
    glxgears (MOVs pair well enough that it ends up being the same instruction
    count).
    dd05ffeb