OSDN Git Service

anv/blorp: Ignore clears for attachments first used as resolve destinations
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 28 Oct 2016 05:42:02 +0000 (22:42 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Nov 2016 16:34:40 +0000 (16:34 +0000)
commitc94c804c2996f6c5111cdd3679650f29d630616a
treeaa93140324af0161c2ac1e6154fb7753647eb136
parent90bf0cb3132304be406efb153a9dcdc245335a26
anv/blorp: Ignore clears for attachments first used as resolve destinations

Otherwise, we'll try to clear it the first time it's used as a draw so if
you do some multisampled rendering, resolve to an attachment, and then draw
on top of the single-sampled attachment, we might accidentally clear it.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit ccdf9af39265ef3478fac4d13b19e9d17fbbcab7)
src/intel/vulkan/anv_blorp.c