From ee354b6d55d1ca4a037e2ff195f4d0c7b9f88c66 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 9 Jan 2019 13:17:15 +0100 Subject: [PATCH] shader: fixup signature of get_source_info TGSI_OPCODE_BFI and TGSI_OPCODE_ATOMCAS takes four source arguments, so we actually need to support up to four members here. Luckily, the storage passed to this function was large enough, so no actual harm happened, just a small semantic issue when reading the source code. Signed-off-by: Erik Faye-Lund Signed-off-by: Dave Airlie --- src/vrend_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 2a8e8d3..b10a410 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -2839,7 +2839,7 @@ static bool get_source_info(struct dump_ctx *ctx, const struct tgsi_full_instruction *inst, struct source_info *sinfo, - char srcs[3][255], char src_swizzle0[10]) + char srcs[4][255], char src_swizzle0[10]) { bool stprefix = false;