rusticl/mesa: fix set_constant_buffer when passing an empty buffer

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25303>
This commit is contained in:
Karol Herbst 2023-09-20 12:46:13 +02:00 committed by Marge Bot
parent f1b9b7f955
commit a9f408bd52

View file

@ -389,7 +389,7 @@ impl PipeContext {
pipe_shader_type::PIPE_SHADER_COMPUTE,
idx,
false,
&cb,
if data.is_empty() { ptr::null() } else { &cb },
)
}
}