Fixes crashes in piglit alpha-to-coverage-no-draw-buffer-zero 2
for (int i = 0; i < key->nr_cbufs; i++) {
struct pipe_surface *cbuf = vc5->framebuffer.cbufs[i];
+ if (!cbuf)
+ continue;
+
const struct util_format_description *desc =
util_format_description(cbuf->format);
vc5->blend_dst_alpha_one = 0;
for (int i = 0; i < vc5->framebuffer.nr_cbufs; i++) {
struct pipe_surface *cbuf = vc5->framebuffer.cbufs[i];
+ if (!cbuf)
+ continue;
+
const struct util_format_description *desc =
util_format_description(cbuf->format);