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:
@@ -389,7 +389,7 @@ impl PipeContext {
|
||||
pipe_shader_type::PIPE_SHADER_COMPUTE,
|
||||
idx,
|
||||
false,
|
||||
&cb,
|
||||
if data.is_empty() { ptr::null() } else { &cb },
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user