Lines Matching defs:result

86    uint64_t result;
323 q->result = q->map->end != q->map->start;
328 q->result = intel_device_info_timebase_scale(devinfo, q->map->start);
329 q->result &= (1ull << TIMESTAMP_BITS) - 1;
332 q->result = crocus_raw_timestamp_delta(q->map->start, q->map->end);
333 q->result = intel_device_info_timebase_scale(devinfo, q->result);
334 q->result &= (1ull << TIMESTAMP_BITS) - 1;
337 q->result = stream_overflowed((void *) q->map, q->index);
340 q->result = false;
342 q->result |= stream_overflowed((void *) q->map, i);
345 q->result = q->map->end - q->map->start;
349 q->result /= 4;
355 q->result = q->map->end - q->map->start;
392 struct mi_value result = stream_result[0];
394 result = mi_ior(b, result, stream_result[i]);
396 return result;
415 * Calculate the result using MI_MATH.
422 struct mi_value result;
430 result = calc_overflow_for_stream(b, q, q->index);
433 result = calc_overflow_any_stream(b, q);
441 result = mi_iand(b, mi_imm((1ull << 36) - 1),
448 result = mi_imul_imm(b, mi_isub(b, end_val, start_val), scale);
452 result = mi_isub(b, end_val, start_val);
459 result = mi_ushr32_imm(b, result, 2);
462 result = mi_iand(b, mi_nz(b, result), mi_imm(1));
464 return result;
555 q->result = 0ull;
637 * result and mark it ready. Does not flush (unlike crocus_get_query_result).
654 union pipe_query_result *result)
660 return crocus_get_monitor_result(ctx, q->monitor, wait, result->batch);
666 result->u64 = 0;
696 result->u64 = q->result;
725 /* They're asking for the availability of the result. If we still
726 * have commands queued up which produce the result, submit them
741 * the result on the CPU now...
747 /* We happen to have the result on the CPU, so just copy it. */
749 screen->vtbl.store_data_imm32(batch, dst_bo, offset, q->result);
751 screen->vtbl.store_data_imm64(batch, dst_bo, offset, q->result);
754 /* Make sure the result lands before they use bind the QBO elsewhere
755 * and use the result.
770 struct mi_value result = calculate_result_on_gpu(devinfo, &b, q);
778 mi_store_if(&b, dst, result);
780 mi_store(&b, dst, result);
834 /* The CPU doesn't have the query result yet; use hardware predication */
861 struct mi_value result;
865 result = calc_overflow_for_stream(&b, q, q->index);
868 result = calc_overflow_any_stream(&b, q);
876 result = mi_isub(&b, end, start);
881 result = inverted ? mi_z(&b, result) : mi_nz(&b, result);
882 result = mi_iand(&b, result, mi_imm(1));
887 * a different MI_PREDICATE_RESULT register. So, we save the result to
890 mi_value_ref(&b, result);
892 mi_store(&b, mi_reg64(MI_PREDICATE_SRC0), result);
901 predicate_result)), result);
929 if (q->result || q->ready) {
930 set_predicate_enable(ice, (q->result != 0) ^ condition);
951 union pipe_query_result result;
958 crocus_get_query_result(ctx, query, true, &result);
959 set_predicate_enable(ice, (q->result != 0) ^ ice->condition.condition);