freedreno: Clean up tests around ORing in the reloc flags.
authorEric Anholt <eric@anholt.net>
Thu, 7 May 2020 23:34:35 +0000 (16:34 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 8 May 2020 19:35:39 +0000 (12:35 -0700)
commite1c74f3facce57555284d23ee11bc009928806f1
tree31b43c27735b71fcb0df7c532154dedf929012dc
parent6c688ae81f4a6249cdccf1d218da5bebaf23e4f4
freedreno: Clean up tests around ORing in the reloc flags.

gcc was surprisingly not seeing through this to just do an AND and an OR.
Improves drawoverhead's few uniforms / 1 change throughput 1.64141% +/-
0.188152% (n=60).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4957>
src/freedreno/drm/msm_ringbuffer_sp.c