mesa/src/intel/common/intel_common.h
Sagar Ghuge 0c4e1c9efc intel/common: Add helper for compute thread group dispatch size
The recommended settings is just a guidance and not a programming
requirement as per the Bspec.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35904>
2025-07-10 22:08:36 +00:00

20 lines
729 B
C

/*
* Copyright 2024 Intel Corporation
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "dev/intel_device_info.h"
void intel_common_update_device_info(int fd, struct intel_device_info *devinfo);
void
intel_compute_engine_async_threads_limit(const struct intel_device_info *devinfo,
uint32_t hw_threads_in_wg, bool slm_or_barrier_enabled,
uint8_t *ret_pixel_async_compute_thread_limit,
uint8_t *ret_z_pass_async_compute_thread_limit,
uint8_t *ret_np_z_async_throttle_settings);
int
intel_compute_threads_group_dispatch_size(uint32_t hw_threads_in_wg);