mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
broadcom/vc5: Skip over missing color buffers for a couple of checks.
Fixes crashes in piglit alpha-to-coverage-no-draw-buffer-zero 2
This commit is contained in:
parent
aec066c7aa
commit
eb765394c2
2 changed files with 6 additions and 0 deletions
|
|
@ -378,6 +378,9 @@ vc5_update_compiled_fs(struct vc5_context *vc5, uint8_t prim_mode)
|
|||
|
||||
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);
|
||||
|
||||
|
|
|
|||
|
|
@ -443,6 +443,9 @@ vc5_set_framebuffer_state(struct pipe_context *pctx,
|
|||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue