gallium/util: Add util_set_shader_buffers_mask helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 1 Aug 2019 17:30:40 +0000 (10:30 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 1 Aug 2019 21:31:56 +0000 (14:31 -0700)
commit898a18ea89ff29d5eb6fb9c6f0ddeae5de8ba7a7
tree4a86c212f71ced3aec5e98727e77f3de8b4034ec
parent3e331732003ddbb9e707fa8b6eaabf8120c372f7
gallium/util: Add util_set_shader_buffers_mask helper

Conceptually follows util_set_vertex_buffers_mask but for SSBOs.

v2: Fix missing ~ when clearing mask. Adjust mask behaviour to match
freedreno/v3d when buffer == NULL.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/util/u_helpers.c
src/gallium/auxiliary/util/u_helpers.h