mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
feature(debugger): Force GRF count to 128
System Routine changes for implementing large-grf debugging will result in GRF count of 256 being reported for kernels in all GRF modes. Applications using L0 Debug API do not yet have a way to determine actual GRF count for kernel. This commit is a temporary adjustment to avoid breaking debug API users after new system routine is enabled. This problem will be fully solved in follow up patch with switch to zetDebugGetThreadRegisterSetProperties Related-to: NEO-7370 Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5bfcb07b49
commit
bef89a3a7c
@@ -1192,6 +1192,7 @@ ze_result_t DebugSession::getRegisterSetProperties(Device *device, uint32_t *pCo
|
||||
auto parseRegsetDesc = [&](const SIP::regset_desc ®setDesc, zet_debug_regset_type_intel_gpu_t regsetType) {
|
||||
if (regsetDesc.num) {
|
||||
if (totalRegsetNum < *pCount) {
|
||||
uint16_t num = (regsetType == ZET_DEBUG_REGSET_TYPE_GRF_INTEL_GPU) ? 128 : regsetDesc.num;
|
||||
zet_debug_regset_properties_t regsetProps = {
|
||||
ZET_STRUCTURE_TYPE_DEBUG_REGSET_PROPERTIES,
|
||||
nullptr,
|
||||
@@ -1199,7 +1200,7 @@ ze_result_t DebugSession::getRegisterSetProperties(Device *device, uint32_t *pCo
|
||||
0,
|
||||
DebugSessionImp::typeToRegsetFlags(regsetType),
|
||||
0,
|
||||
regsetDesc.num,
|
||||
num,
|
||||
regsetDesc.bits,
|
||||
regsetDesc.bytes,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user