|
|
@ -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] = { |
|
|
|