git: 5bae779cbf3e - main - lang/intel-compute-runtime: unbreak build after 41f2281cb356

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 20 Nov 2023 13:37:45 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5bae779cbf3ecff19b7c6ff95dd7809d0863b7b5

commit 5bae779cbf3ecff19b7c6ff95dd7809d0863b7b5
Author:     Lars Herschke <lhersch@dssgmbh.de>
AuthorDate: 2023-11-03 18:13:55 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-11-20 13:37:19 +0000

    lang/intel-compute-runtime: unbreak build after 41f2281cb356
    
    shared/source/gen8/hw_info_bdw.cpp:20:10: error: use of undeclared identifier 'IBDW_GT0_DESK_DEVICE_F0_ID'
        case IBDW_GT0_DESK_DEVICE_F0_ID:
             ^
    shared/source/gen8/hw_info_bdw.cpp:21:10: error: use of undeclared identifier 'IBDW_GT1_DESK_DEVICE_F0_ID'
        case IBDW_GT1_DESK_DEVICE_F0_ID:
             ^
    shared/source/gen8/hw_info_bdw.cpp:22:10: error: use of undeclared identifier 'IBDW_GT2_DESK_DEVICE_F0_ID'
        case IBDW_GT2_DESK_DEVICE_F0_ID:
             ^
    shared/source/gen8/hw_info_bdw.cpp:23:10: error: use of undeclared identifier 'IBDW_GT3_DESK_DEVICE_F0_ID'
        case IBDW_GT3_DESK_DEVICE_F0_ID:
             ^
    shared/source/gen8/hw_info_bdw.cpp:24:10: error: use of undeclared identifier 'IBDW_GT4_DESK_DEVICE_F0_ID'
        case IBDW_GT4_DESK_DEVICE_F0_ID:
             ^
    
    PR:             274891
    Reported by:    pkg-fallout
---
 .../files/patch-gmmlib-22.3.7                      | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/lang/intel-compute-runtime/files/patch-gmmlib-22.3.7 b/lang/intel-compute-runtime/files/patch-gmmlib-22.3.7
new file mode 100644
index 000000000000..6ba0f7c7c402
--- /dev/null
+++ b/lang/intel-compute-runtime/files/patch-gmmlib-22.3.7
@@ -0,0 +1,22 @@
+Chase https://github.com/intel/gmmlib/commit/861d5b2318ec
+until https://github.com/intel/compute-runtime/commit/cfe51ff2ba97
+
+--- shared/source/gen8/hw_info_bdw.cpp.orig	2022-06-08 12:04:46 UTC
++++ shared/source/gen8/hw_info_bdw.cpp
+@@ -17,11 +17,11 @@ bool isSimulationBDW(unsigned short deviceId) {
+ 
+ bool isSimulationBDW(unsigned short deviceId) {
+     switch (deviceId) {
+-    case IBDW_GT0_DESK_DEVICE_F0_ID:
+-    case IBDW_GT1_DESK_DEVICE_F0_ID:
+-    case IBDW_GT2_DESK_DEVICE_F0_ID:
+-    case IBDW_GT3_DESK_DEVICE_F0_ID:
+-    case IBDW_GT4_DESK_DEVICE_F0_ID:
++    case 0x0BD0:
++    case 0x0BD1:
++    case 0x0BD2:
++    case 0x0BD3:
++    case 0x0BD4:
+         return true;
+     }
+     return false;