OSDN Git Service

iris: Fix blits with S8_UINT destination
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Mar 2019 21:00:50 +0000 (14:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Mar 2019 17:47:26 +0000 (10:47 -0700)
commitee8370c766c46752de6fa6dbb58c63a6ed5c4310
tree135163a708028d023f8dceb2a9bf9449f99938fb
parentce89c19b88376bcc4752494d78e4eb220cde6930
iris: Fix blits with S8_UINT destination

For depth and stencil blits, we always want the main mask to be Z, and
the secondary pass mask to be S.  If asked to blit Z+S to S, we should
handle the blit in the second pass which properly gets the stencil
resources.

Before, we were trying to handle S as the main mask, and accidentally
blitting a Z source to a S destination, which doesn't work out well.

Fixes Piglit's "framebuffer-blit-levels {draw,read} stencil" tests.
src/gallium/drivers/iris/iris_blit.c