<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 - A2B10G10R10_SNORM vertex attribute doesn't work."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106480">106480</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>A2B10G10R10_SNORM vertex attribute doesn't work.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </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/Vulkan/radeon
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>maister@archlinux.us
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=139506" name="attach_139506" title="Pipelines">attachment 139506</a> <a href="attachment.cgi?id=139506&action=edit" title="Pipelines">[details]</a></span>
Pipelines

I've tried to make a vertex shader which uses this vertex format, but it does
not work on RADV.

It is almost as if the format becomes SNORM for RGB, but UNORM for A.

To replay the pipeline creation:
git clone git://github.com/Themaister/Fossilize
cd Fossilize
git submodule update --init
mkdir build
cd build
cmake ..
make -j16
./cli/fossilize-replay /tmp/pipelines.json --filter-graphics 0

The ISA generated in VK_AMD_shader_info is:
.cli/fossilize-disasm /tmp/pipelines.json --target amd --graphics-pipeline 0
--stage vert

        s_load_dwordx4 s[8:11], s[2:3], 0x0                 ; C00A0201 00000000
        s_load_dwordx4 s[0:3], s[2:3], 0x10                 ; C00A0001 00000010
        v_add_u32_e32 v0, vcc, s4, v0                       ; 32000004
        v_mov_b32_e32 v6, 1.0                               ; 7E0C02F2
        v_mov_b32_e32 v7, 0                                 ; 7E0E0280
        s_waitcnt lgkmcnt(0)                                ; BF8C007F
        buffer_load_format_xy v[4:5], v0, s[8:11], 0 idxen  ; E0042000 80020400
        buffer_load_format_xyzw v[0:3], v0, s[0:3], 0 idxen ; E00C2000 80000000
        s_waitcnt vmcnt(1)                                  ; BF8C0F71
        exp pos0 v4, v5, v7, v6 done                        ; C40008CF 06070504
        s_waitcnt vmcnt(0)                                  ; BF8C0F70
        exp param0 v0, v1, v2, v3                           ; C400020F 03020100
        s_endpgm                                            ; BF810000</pre>
        </div>
      </p>


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

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