radeonsi: use shifts for sign extension
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 16 Jun 2018 18:56:13 +0000 (21:56 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 21 Jun 2018 09:17:34 +0000 (12:17 +0300)
commit4e0d93dc0e4d37dff492305fb7aa6408f36ff147
tree144f5bf87162c7d7c2871f2058de46fa2b566644
parentaf17a29ad86097b5a132d148db44eb3bbb16cebd
radeonsi: use shifts for sign extension

Avoids a branch and reduces code size a tiny bit:
    text   data     bss      dec    hex filename
10804563 398653 2070368 13273584 ca89f0 /tmp/radeonsi_dri.so.old
10804499 398653 2070368 13273520 ca89b0 /tmp/radeonsi_dri.so

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_descriptors.c