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>
batch->other_batches[j++] = &ice->batches[i];
}
- if (unlikely(INTEL_DEBUG)) {
+ if (INTEL_DEBUG) {
const unsigned decode_flags =
GEN_BATCH_DECODE_FULL |
((INTEL_DEBUG & DEBUG_COLOR) ? GEN_BATCH_DECODE_IN_COLOR : 0) |
_mesa_hash_table_destroy(batch->cache.render, NULL);
- if (unlikely(INTEL_DEBUG))
+ if (INTEL_DEBUG)
gen_batch_decode_ctx_finish(&batch->decoder);
}
iris_finish_batch(batch);
- if (unlikely(INTEL_DEBUG &
- (DEBUG_BATCH | DEBUG_SUBMIT | DEBUG_PIPE_CONTROL))) {
+ if (INTEL_DEBUG & (DEBUG_BATCH | DEBUG_SUBMIT | DEBUG_PIPE_CONTROL)) {
const char *basefile = strstr(file, "iris/");
if (basefile)
file = basefile + 5;
util_dynarray_clear(&batch->exec_fences);
- if (unlikely(INTEL_DEBUG & DEBUG_SYNC)) {
+ if (INTEL_DEBUG & DEBUG_SYNC) {
dbg_printf("waiting for idle\n");
iris_bo_wait_rendering(batch->bo); /* if execbuf failed; this is a nop */
}
if (flags & PIPE_CONTEXT_LOW_PRIORITY)
priority = GEN_CONTEXT_LOW_PRIORITY;
- if (unlikely(INTEL_DEBUG & DEBUG_BATCH))
+ if (INTEL_DEBUG & DEBUG_BATCH)
ice->state.sizes = _mesa_hash_table_u64_create(ice);
for (int i = 0; i < IRIS_BATCH_COUNT; i++) {
/* We can't safely re-emit 3DSTATE_SO_BUFFERS because it may zero the
* write offsets, changing the behavior.
*/
- if (unlikely(INTEL_DEBUG & DEBUG_REEMIT)) {
+ if (INTEL_DEBUG & DEBUG_REEMIT) {
ice->state.dirty |= IRIS_ALL_DIRTY_FOR_RENDER & ~IRIS_DIRTY_SO_BUFFERS;
ice->state.stage_dirty |= IRIS_ALL_STAGE_DIRTY_FOR_RENDER;
}
if (ice->state.predicate == IRIS_PREDICATE_STATE_DONT_RENDER)
return;
- if (unlikely(INTEL_DEBUG & DEBUG_REEMIT)) {
+ if (INTEL_DEBUG & DEBUG_REEMIT) {
ice->state.dirty |= IRIS_ALL_DIRTY_FOR_COMPUTE;
ice->state.stage_dirty |= IRIS_ALL_STAGE_DIRTY_FOR_COMPUTE;
}
}
bt->size_bytes = next * 4;
- if (unlikely(INTEL_DEBUG & DEBUG_BT)) {
+ if (INTEL_DEBUG & DEBUG_BT) {
iris_print_binding_table(stderr, gl_shader_stage_name(info->stage), bt);
}
break;
case I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS:
case I915_FORMAT_MOD_Y_TILED_CCS: {
- if (unlikely(INTEL_DEBUG & DEBUG_NO_RBC))
+ if (INTEL_DEBUG & DEBUG_NO_RBC)
return false;
enum isl_format rt_format =
va_list args;
va_start(args, fmt);
- if (unlikely(INTEL_DEBUG & DEBUG_PERF)) {
+ if (INTEL_DEBUG & DEBUG_PERF) {
va_list args_copy;
va_copy(args_copy, args);
vfprintf(stderr, fmt, args_copy);