zink: refactor vertex-order emitting
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 2 Feb 2021 12:00:29 +0000 (13:00 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 2 Feb 2021 16:00:37 +0000 (16:00 +0000)
commita7d9ac2956253f4b7f65e1caef1a3394d3e2f29f
tree988833368e6fa6ce0cdd6b535ab82cdeaf426688
parent06e421fe5c219f6b8be967649ba99e1f4f9355e2
zink: refactor vertex-order emitting

Using a ternary expression inside the argument list avoids some
repetition, showing that the rest of the call is the same. This increase
readability a tad.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8832>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c