aboutsummaryrefslogtreecommitdiffstats
path: root/tests/amdgpu/cs_tests.c
diff options
context:
space:
mode:
authorLuben Tuikov <luben.tuikov@amd.com>2019-12-05 21:05:13 -0500
committerLuben Tuikov <luben.tuikov@amd.com>2020-01-08 13:18:50 -0500
commitcb3d067587189f17abb5861ef645bc2655b5d376 (patch)
tree1c4c9fed941f79e54adf78c66120edcda597af9b /tests/amdgpu/cs_tests.c
parent9ebfac15a5c443e847b432765e3b3aa35f74c6f1 (diff)
downloadexternal_libdrm-cb3d067587189f17abb5861ef645bc2655b5d376.tar.gz
external_libdrm-cb3d067587189f17abb5861ef645bc2655b5d376.tar.bz2
external_libdrm-cb3d067587189f17abb5861ef645bc2655b5d376.zip
tests/amdgpu: Fix various warnings (v2)
This patch fixes the following warnings: -Wformat= -Wmaybe-uninitialized -Wmisleading-indentation -Wstringop-truncation -Wunused-function -Wunused-variable It also removes forward declarations and moves global functions to the bottom, keeping locals at the top, in ras_tests.c. v2: Fix compilation. Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Diffstat (limited to 'tests/amdgpu/cs_tests.c')
-rw-r--r--tests/amdgpu/cs_tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c
index 7ad0f0dc..ae4f65f5 100644
--- a/tests/amdgpu/cs_tests.c
+++ b/tests/amdgpu/cs_tests.c
@@ -358,6 +358,7 @@ static void amdgpu_cs_uvd_decode(void)
bs_addr = fb_addr + 4*1024;
dpb_addr = ALIGN(bs_addr + sizeof(uvd_bitstream), 4*1024);
+ ctx_addr = 0;
if (family_id >= AMDGPU_FAMILY_VI) {
if ((family_id == AMDGPU_FAMILY_AI) ||
(chip_id == chip_rev+0x50 || chip_id == chip_rev+0x5A ||