It's included in declaration of INTEL_DEBUG.
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6732>
submit->cmd_buffer &&
submit->cmd_buffer->perf_query_pool;
- if (unlikely(INTEL_DEBUG & DEBUG_BATCH)) {
+ if (INTEL_DEBUG & DEBUG_BATCH) {
if (submit->cmd_buffer) {
if (has_perf_query) {
struct anv_query_pool *query_pool = submit->cmd_buffer->perf_query_pool;
/* Some performance queries just the pipeline statistic HW, no need for
* OA in that case, so no need to reconfigure.
*/
- if (likely((INTEL_DEBUG & DEBUG_NO_OACONFIG) == 0) &&
+ if ((INTEL_DEBUG & DEBUG_NO_OACONFIG) == 0 &&
(query_info->kind == GEN_PERF_QUERY_TYPE_OA ||
query_info->kind == GEN_PERF_QUERY_TYPE_RAW)) {
int ret = gen_ioctl(device->perf_fd, I915_PERF_IOCTL_CONFIG,
va_list args;
va_start(args, fmt);
- if (unlikely(INTEL_DEBUG & DEBUG_PERF))
+ if (INTEL_DEBUG & DEBUG_PERF)
mesa_logd_v(fmt, args);
va_end(args);
return VK_SUCCESS;
}
- if (unlikely(INTEL_DEBUG & DEBUG_NO_HIZ))
+ if (INTEL_DEBUG & DEBUG_NO_HIZ)
return VK_SUCCESS;
ok = isl_surf_get_hiz_surf(&device->isl_dev,
return VK_SUCCESS;
}
- if (unlikely(INTEL_DEBUG & DEBUG_NO_RBC))
+ if (INTEL_DEBUG & DEBUG_NO_RBC)
return VK_SUCCESS;
ok = isl_surf_get_ccs_surf(&device->isl_dev,
if (!config)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
- if (likely(!(INTEL_DEBUG & DEBUG_NO_OACONFIG))) {
+ if (!(INTEL_DEBUG & DEBUG_NO_OACONFIG)) {
config->register_config =
gen_perf_load_configuration(device->physical->perf, device->fd,
GEN_PERF_QUERY_GUID_MDAPI);
ANV_FROM_HANDLE(anv_device, device, _device);
ANV_FROM_HANDLE(anv_performance_configuration_intel, config, _configuration);
- if (likely(!(INTEL_DEBUG & DEBUG_NO_OACONFIG)))
+ if (!(INTEL_DEBUG & DEBUG_NO_OACONFIG))
gen_ioctl(device->fd, DRM_IOCTL_I915_PERF_REMOVE_CONFIG, &config->config_id);
ralloc_free(config->register_config);
ANV_FROM_HANDLE(anv_performance_configuration_intel, config, _configuration);
struct anv_device *device = queue->device;
- if (likely(!(INTEL_DEBUG & DEBUG_NO_OACONFIG))) {
+ if (!(INTEL_DEBUG & DEBUG_NO_OACONFIG)) {
if (device->perf_fd < 0) {
device->perf_fd = anv_device_perf_open(device, config->config_id);
if (device->perf_fd < 0)
assert(device->perf_fd == -1);
- if (likely(!(INTEL_DEBUG & DEBUG_NO_OACONFIG))) {
+ if (!(INTEL_DEBUG & DEBUG_NO_OACONFIG)) {
fd = anv_device_perf_open(device, first_metric_set->oa_metrics_set_id);
if (fd < 0)
return VK_TIMEOUT;
{
ANV_FROM_HANDLE(anv_device, device, _device);
- if (likely(!(INTEL_DEBUG & DEBUG_NO_OACONFIG))) {
+ if (!(INTEL_DEBUG & DEBUG_NO_OACONFIG)) {
assert(device->perf_fd >= 0);
close(device->perf_fd);
}
free(spec_entries);
- if (unlikely(INTEL_DEBUG & intel_debug_flag_for_shader_stage(stage))) {
+ if (INTEL_DEBUG & intel_debug_flag_for_shader_stage(stage)) {
fprintf(stderr, "NIR (from SPIR-V) for %s shader:\n",
gl_shader_stage_name(stage));
nir_print_shader(nir, stderr);
#define anv_perf_warn(instance, obj, format, ...) \
do { \
static bool reported = false; \
- if (!reported && unlikely(INTEL_DEBUG & DEBUG_PERF)) { \
+ if (!reported && (INTEL_DEBUG & DEBUG_PERF)) { \
__anv_perf_warn(instance, obj, REPORT_OBJECT_TYPE(obj), __FILE__, __LINE__,\
format, ##__VA_ARGS__); \
reported = true; \
if (cfg == cmd_buffer->state.current_l3_config)
return;
- if (unlikely(INTEL_DEBUG & DEBUG_L3)) {
+ if (INTEL_DEBUG & DEBUG_L3) {
mesa_logd("L3 config transition: ");
gen_dump_l3_config(cfg, stderr);
}