intel/blorp: initialize BLEND_STATE using braced initializer list
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Thu, 24 Jun 2021 15:01:43 +0000 (17:01 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 28 Jun 2021 09:31:41 +0000 (09:31 +0000)
commit5c66fb7e6e553a9d13d2eeb68e65e29159accb16
tree2d2920ac028a413241bbf050bbdc576fca56c7e2
parent5c5423e6eef26f27fc9a29da908ec40e0608f451
intel/blorp: initialize BLEND_STATE using braced initializer list

Coverity complains that memset has no effect, because of size 0.
Size of BLEND_STATE struct is 0 on gfx [6, 7.5], so memset has
nothing to do there. This is of course harmless, but we can make
code simpler by replacing memset with an empty initializer list
and at the same time avoid a warning from Coverity.

CID: 1486015

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11574>
src/intel/blorp/blorp_genX_exec.h