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 <erik.faye-lund@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent aa036b8bcb
commit ee354b6d55
  1. 2
      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;

Loading…
Cancel
Save