mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 04:50:38 +02:00
clover: Use unreachable() from util/macros.h instead of assert(0).
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
5480d6b13f
commit
27c51b5f58
3 changed files with 4 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ AM_CPPFLAGS = \
|
|||
$(GALLIUM_PIPE_LOADER_DEFINES) \
|
||||
-DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\" \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/src/gallium/include \
|
||||
-I$(top_srcdir)/src/gallium/drivers \
|
||||
-I$(top_srcdir)/src/gallium/auxiliary \
|
||||
|
|
|
|||
|
|
@ -70,8 +70,7 @@ device::type() const {
|
|||
case PIPE_LOADER_DEVICE_PLATFORM:
|
||||
return CL_DEVICE_TYPE_GPU;
|
||||
default:
|
||||
assert(0);
|
||||
return 0;
|
||||
unreachable("Unknown device type.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -84,8 +83,7 @@ device::vendor_id() const {
|
|||
case PIPE_LOADER_DEVICE_PCI:
|
||||
return ldev->u.pci.vendor_id;
|
||||
default:
|
||||
assert(0);
|
||||
return 0;
|
||||
unreachable("Unknown device type.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include "core/error.hpp"
|
||||
#include "core/property.hpp"
|
||||
#include "api/dispatch.hpp"
|
||||
#include "util/macros.h"
|
||||
|
||||
///
|
||||
/// Main namespace of the CL state tracker.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue