<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - YUV422 support not advertised for VAProfileJPEGBaseline decoding"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109783">109783</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>YUV422 support not advertised for VAProfileJPEGBaseline decoding
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/radeonsi
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andrescj@chromium.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi. I'm trying to detect the VAAPI JPEG decoder capabilities using
vaQueryConfigAttributes(). I'm getting VA_RT_FORMAT_YUV420 as the only value
for VAConfigAttribRTFormat when the profile is VAProfileJPEGBaseline and the
entrypoint is VAEntrypointVLD. However, based on [1], it seems that the JPEG
decoder would be happy to decode YUV422 images (in fact, YUV422 decoding works
when I call vaCreateSurfaces() with VA_RT_FORMAT_YUV422).

Note that when I use vaQuerySurfaceAttributes(), I only get NV12 for
VASurfaceAttribPixelFormat, so YUV422 is also not advertised there.

Is this intended behavior?

[1]
<a href="https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/gallium/state_trackers/va/picture.c#L607-610">https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/gallium/state_trackers/va/picture.c#L607-610</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>