OSDN Git Service

llvmpipe: fix crash when not all attachments are populated in a fb
authorRoland Scheidegger <sroland@vmware.com>
Thu, 29 May 2014 22:37:17 +0000 (00:37 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 31 May 2014 20:05:14 +0000 (22:05 +0200)
commit576868140bbb1abd177e7fd122720883d773137e
tree3c5f2312cd81e10ec0584b889284666db9592f6d
parent98d8ba2776a3be7d6f297a301f545694a366d83d
llvmpipe: fix crash when not all attachments are populated in a fb

Framebuffers can have NULL attachments since a while. llvmpipe handled
that properly for lp_rast_shade_quads_mask but it seems the change didn't
make it to lp_rast_shade_tile.
This fixes piglit fbo-drawbuffers-none test (though I need to increase
the FB_SIZE from 32 to 256 so the tris cover some tiles fully).
https://bugs.freedesktop.org/show_bug.cgi?id=79421

Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_rast.c