Commit b42bbbca authored by Sonny Jiang's avatar Sonny Jiang Committed by Alex Deucher

drm amdgpu: SI UVD PACKET_TYPE0

Fix packet_type0 definition in sid.
Signed-off-by: default avatarSonny Jiang <sonny.jiang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d1af7ac2
...@@ -1646,9 +1646,10 @@ ...@@ -1646,9 +1646,10 @@
/* /*
* PM4 * PM4
*/ */
#define PACKET0(reg, n) ((RADEON_PACKET_TYPE0 << 30) | \ #define PACKET_TYPE0 0
(((reg) >> 2) & 0xFFFF) | \ #define PACKET0(reg, n) ((PACKET_TYPE0 << 30) | \
((n) & 0x3FFF) << 16) ((reg) & 0xFFFF) | \
((n) & 0x3FFF) << 16)
#define CP_PACKET2 0x80000000 #define CP_PACKET2 0x80000000
#define PACKET2_PAD_SHIFT 0 #define PACKET2_PAD_SHIFT 0
#define PACKET2_PAD_MASK (0x3fffffff << 0) #define PACKET2_PAD_MASK (0x3fffffff << 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment