mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
clover: return CL_INVALID_VALUE when origin or region are NULL
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9212>
This commit is contained in:
parent
8a47422d97
commit
4cb9df49c2
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ namespace {
|
|||
|
||||
vector_t
|
||||
vector(const size_t *p) {
|
||||
if (!p)
|
||||
throw error(CL_INVALID_VALUE);
|
||||
return range(p, 3);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue