Reviewed-by: Francisco Jerez <currojerez@riseup.net>
$(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 \
case PIPE_LOADER_DEVICE_PLATFORM:
return CL_DEVICE_TYPE_GPU;
default:
- assert(0);
- return 0;
+ unreachable("Unknown device type.");
}
}
case PIPE_LOADER_DEVICE_PCI:
return ldev->u.pci.vendor_id;
default:
- assert(0);
- return 0;
+ unreachable("Unknown device type.");
}
}
#include "core/error.hpp"
#include "core/property.hpp"
#include "api/dispatch.hpp"
+#include "util/macros.h"
///
/// Main namespace of the CL state tracker.