r600: don't clone the nir shader, just use it
authorGert Wollny <gert.wollny@collabora.com>
Sun, 24 Jul 2022 11:58:42 +0000 (13:58 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 24 Jul 2022 18:39:13 +0000 (18:39 +0000)
commit8166be0e83ea9ef84e047aa36bf9e486792a9ed6
tree5748100a81eeab488578163ba6d5474eba54c812
parent97d4e9850184a23461985045123afbd4ca7f3c17
r600: don't clone the nir shader, just use it

The nir shader passed in with the shader state has to be released by
the backe-end, so don't clone it, just use it.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17729>
src/gallium/drivers/r600/r600_state_common.c