mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
radeonsi: Fix VGPR_BIT() definition.
Fixes encoding of VOP3 shader instructions. The shift was wrong for source registers 2 and 3, and the resulting value was only 32 bits, so the shift in SICodeEmitter::VOPPostEncode() didn't work as intended.
This commit is contained in:
parent
09b2cd7ade
commit
dbf48e88eb
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#define LITERAL_REG 255
|
||||
#define VGPR_BIT(src_idx) (1 << (8 * (src_idx)))
|
||||
#define VGPR_BIT(src_idx) (1ULL << (9 * src_idx - 1))
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue