lavapipe: zero fb attachment array at rp start
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 26 Jul 2023 20:21:08 +0000 (16:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Aug 2023 03:20:56 +0000 (03:20 +0000)
commit33d06f8cc2c3ed6cbb562ec421b8bde47e14e206
tree151572e67fde4f093b83b7acfdc82937ed2bacd0
parentb39815fa9c1937458d0fd05d4fb6129b410dc7e9
lavapipe: zero fb attachment array at rp start

this avoids invalid access if an attachment moves to a lower index
in a smaller renderpass

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24339>
src/gallium/frontends/lavapipe/lvp_execute.c