[libav-bugs] [Bug 507] suncc can not compile inline asm

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Tue May 7 22:30:43 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=507

--- Comment #5 from Michael Kostylev <michael.kostylev at gmail.com> 2013-05-07 22:30:43 CEST ---
> Does the existing code make sure to never attempting running VIS code on a
> processor that wouldn't support it?

I don't think so. Look again at libavcodec/sparc/vis.h:

static inline int vis_level(void)
{
    int accel = 0;
    accel |= ACCEL_SPARC_VIS;
    accel |= ACCEL_SPARC_VIS2;
    return accel;
}

Then at libavcodec/sparc/dsputil_vis.c:

  /* VIS-specific optimizations */
  int accel = vis_level ();
  ...

  if (accel & ACCEL_SPARC_VIS && !high_bit_depth) {

vis_level() is a pure loopback. In libswscale/yuv2rgb.c it is done even
simplier:

    else if (HAVE_VIS)
        t = ff_yuv2rgb_init_vis(c);

Btw, I don't mind if we apply "hwcap_1 = OVERRIDE;" to all sunos && suncc
configurations after implementing cpuflags support for sparc.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list