zink: only flag modules_changed in optimal path if a change has occurred
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 6 Jan 2023 14:58:29 +0000 (09:58 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Jan 2023 00:51:24 +0000 (00:51 +0000)
commitc6f06901b7d502e9d832069b913cb2bd9fe2e932
tree2f6934f9aa7b4ee65804f00cc238cd8510a41791
parentb295accf077cfe5a794e0405607f1eb57453e3cc
zink: only flag modules_changed in optimal path if a change has occurred

this should save some cycles when a recalc is a no-op

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585>
src/gallium/drivers/zink/zink_program.c