<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>On RADV, we already support fp16 with the LLVM backend (not
      saying it's always optimized though) and with ACO it should be
      mostly working but not yet enabled because I think we would like
      fast packed math support first and I'm not sure if fp16 I/O are
      implemented.<br>
    </p>
    <p>There is also some missing fp16 optimizations in the ACO backend
      which makes some games (eg. Youngblood) a bit slower if fp16
      features/extensions are exposed but the gap should be filled soon
      hopefully.<br>
    </p>
    <p>I think the most important thing missing is a SLP vectorizer in
      NIR for us.<br>
    </p>
    <div class="moz-cite-prefix">On 5/4/20 8:43 PM, Marek Olšák wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAxE2A5gO3V70XKoS0JrjwBbbenp=Y0YH0AEbELg8pyGzH+4CA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>This is the status of mediump support in Mesa. What I
          listed is what AMD GPUs can do. "Yes" means what Mesa
          supports.</div>
        <div><br>
        </div>
        <div> <span></span>
          <table style="font-family:"Liberation
            Sans";font-size:x-small" cellspacing="0" border="0">
            <colgroup width="590"></colgroup> <colgroup width="184"></colgroup>
            <colgroup width="86"></colgroup> <tbody
              style="font-family:"Liberation
              Sans";font-size:x-small">
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><b><font
                      color="#000000">Feature</font></b></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><b><font
                      color="#000000">FP16 support</font></b></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><b><font
                      color="#000000">Int16 support</font></b></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">ALU</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">Yes</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">Uniforms</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">VS in</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">VS out / FS in</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="18" align="left"><font
                    color="#000000">FS out</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">TCS, TES, GS out / in</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">Sampler coordinates (only coord,
                    derivs, lod, bias; not offset and compare)</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">---</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">Image coordinates</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">---</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">Return value from samplers (incl.
                    sampler buffers)</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">Yes</font><br>
                </td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">Return value from image loads (incl.
                    image buffers)</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">Data source for image stores (incl.
                    image buffers)</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
              <tr style="font-family:"Liberation
                Sans";font-size:x-small">
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" height="19" align="left"><font
                    color="#000000">If 16-bit sampler/image instructions
                    are surrounded by conversions, promote them to 32
                    bits</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
                <td style="font-family:"Liberation
                  Sans";font-size:x-small" align="left"><font
                    color="#000000">No</font></td>
              </tr>
            </tbody>
          </table>
        </div>
        <div><br>
        </div>
        <div>Please let me know if you don't see the table correctly.</div>
        <div><br>
        </div>
        <div> I'd like to know if I can enable some of them using the
          existing FP16 CAP. The only drivers supporting FP16 are
          currently Freedreno and Panfrost.</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Marek<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
mesa-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>
</pre>
    </blockquote>
  </body>
</html>