From fa772aa92baf659855f69829fa3f0d0f4fcbc2a6 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 14 Jan 2014 16:02:34 +0800 Subject: ilo: handle NULL renderbuffers correctly Renderbuffers may be NULL since 9baa45f78b8ca7d66280e36009b6a685055d7cd6. --- src/gallium/drivers/ilo/ilo_gpe.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/ilo/ilo_gpe.h') diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h index d8ddd06eed0..684626d8856 100644 --- a/src/gallium/drivers/ilo/ilo_gpe.h +++ b/src/gallium/drivers/ilo/ilo_gpe.h @@ -256,6 +256,7 @@ struct ilo_surface_cso { struct ilo_fb_state { struct pipe_framebuffer_state state; + struct ilo_view_surface null_rt; struct ilo_zs_surface null_zs; unsigned num_samples; @@ -528,8 +529,8 @@ ilo_gpe_init_fs_cso(const struct ilo_dev_info *dev, } void -ilo_gpe_init_fb(const struct ilo_dev_info *dev, - const struct pipe_framebuffer_state *state, - struct ilo_fb_state *fb); +ilo_gpe_set_fb(const struct ilo_dev_info *dev, + const struct pipe_framebuffer_state *state, + struct ilo_fb_state *fb); #endif /* ILO_GPE_H */ -- cgit v1.2.3