shader: simplify emit_a8_swizzle

Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent 71de5e5e8b
commit d10d000029
  1. 8
      src/vrend_shader.c

@ -1455,13 +1455,7 @@ static int emit_cbuf_writes(struct dump_ctx *ctx)
static int emit_a8_swizzle(struct dump_ctx *ctx) static int emit_a8_swizzle(struct dump_ctx *ctx)
{ {
char buf[255]; return add_str_to_glsl_main(ctx, "fsout_c0.x = fsout_c0.w;\n") ? 0 : ENOMEM;
char *sret;
snprintf(buf, 255, "fsout_c0.x = fsout_c0.w;\n");
sret = add_str_to_glsl_main(ctx, buf);
if (!sret)
return ENOMEM;
return 0;
} }
static const char *atests[PIPE_FUNC_ALWAYS + 1] = { static const char *atests[PIPE_FUNC_ALWAYS + 1] = {

Loading…
Cancel
Save