agx: Allow some 8-bit sources

8-bit sources are useful for int8->float32 conversions, which we can do in a
single hardware instruction.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19996>
This commit is contained in:
Alyssa Rosenzweig
2022-11-24 20:40:47 -05:00
committed by Marge Bot
parent ba209fe493
commit 8127737c1e
2 changed files with 2 additions and 1 deletions

View File

@@ -442,6 +442,7 @@ agx_size_for_bits(unsigned bits)
{
switch (bits) {
case 1:
case 8:
case 16: return AGX_SIZE_16;
case 32: return AGX_SIZE_32;
case 64: return AGX_SIZE_64;