lavapipe: Only check NULL pointers in one place in src_only_uses_uniforms
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 6 Feb 2023 18:23:25 +0000 (10:23 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Feb 2023 19:15:16 +0000 (11:15 -0800)
commit65db990b39e5ef88a7ecf3d0926661a71a0db84c
treee291f5692648256fce43032e434b1d246a8015bb
parenta7696a4d98bcf4cdfae1c56a21c4deb3a9ce004f
lavapipe: Only check NULL pointers in one place in src_only_uses_uniforms

It took me a minute to figure out why the last uni_offsets NULL check
didn't also need to check num_offsets. I think this makes the code
slightly easier to understand.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21144>
src/gallium/frontends/lavapipe/lvp_inline_uniforms.c