From da71cc37e5ab9720cc073ac5a40866ded83cb760 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Thu, 5 Feb 2015 16:35:53 -0700 Subject: [PATCH] intel: Be sure to set width & height for depth-only If CmdBindAttachments is called with a depth only attachment (i.e. for shadow rendering) the width and height were left at zero and nothing is drawn. --- icd/intel/fb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/icd/intel/fb.c b/icd/intel/fb.c index eb3679e..7b8170f 100644 --- a/icd/intel/fb.c +++ b/icd/intel/fb.c @@ -81,6 +81,11 @@ XGL_RESULT intel_fb_create(struct intel_dev *dev, layout = &fb->ds->img->layout; + if (info->colorAttachmentCount == 0) { + width = layout->width0; + height = layout->height0; + } + if (width > layout->width0) width = layout->width0; if (height > layout->height0) -- 2.7.4