Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD support #68

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

FreeBSD support #68

wants to merge 9 commits into from

Conversation

jbeich
Copy link

@jbeich jbeich commented Jan 1, 2020

Runtime tested on Skylake via Media Driver and NEO packages.

Build logs
Tests output
running ULTs
Note: Google Test filter = CTest*
[==========] Running 121 tests from 14 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from CTestCachePolicy
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestCachePolicy.TestL3CachePolicy
[       OK ] CTestCachePolicy.TestL3CachePolicy (0 ms)
[ RUN      ] CTestCachePolicy.TestLlcEdramCachePolicy
[       OK ] CTestCachePolicy.TestLlcEdramCachePolicy (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 2 tests from CTestCachePolicy (0 ms total)

[----------] 2 tests from CTestGen10CachePolicy
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen10CachePolicy.TestCachePolicyOverrides
[       OK ] CTestGen10CachePolicy.TestCachePolicyOverrides (0 ms)
[ RUN      ] CTestGen10CachePolicy.TestCachePolicyConditionals
[       OK ] CTestGen10CachePolicy.TestCachePolicyConditionals (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 2 tests from CTestGen10CachePolicy (0 ms total)

[----------] 3 tests from CTestGen10Resource
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen10Resource.Test2DTileYsResource
TestBody
[       OK ] CTestGen10Resource.Test2DTileYsResource (0 ms)
[ RUN      ] CTestGen10Resource.Test2DTileYfResource
TestBody
[       OK ] CTestGen10Resource.Test2DTileYfResource (0 ms)
[ RUN      ] CTestGen10Resource.TestMSAA
[       OK ] CTestGen10Resource.TestMSAA (1 ms)
TearDownTestCase
TearDownTestCase
[----------] 3 tests from CTestGen10Resource (1 ms total)

[----------] 2 tests from CTestGen11CachePolicy
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen11CachePolicy.TestL3CachePolicy
[       OK ] CTestGen11CachePolicy.TestL3CachePolicy (0 ms)
[ RUN      ] CTestGen11CachePolicy.TestLlcEdramCachePolicy
[       OK ] CTestGen11CachePolicy.TestLlcEdramCachePolicy (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 2 tests from CTestGen11CachePolicy (0 ms total)

[----------] 2 tests from CTestGen12CachePolicy
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen12CachePolicy.TestL3CachePolicy
[       OK ] CTestGen12CachePolicy.TestL3CachePolicy (0 ms)
[ RUN      ] CTestGen12CachePolicy.TestLlcEdramCachePolicy
[       OK ] CTestGen12CachePolicy.TestLlcEdramCachePolicy (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 2 tests from CTestGen12CachePolicy (0 ms total)

[----------] 1 test from CTestGen12dGPUCachePolicy
[ RUN      ] CTestGen12dGPUCachePolicy.TestGen12dGPU_DG1CachePolicy
SetUpGen12dGPUVariant
SetUpTestCase
TearDownGen12dGPUVariant
TearDownTestCase
[       OK ] CTestGen12dGPUCachePolicy.TestGen12dGPU_DG1CachePolicy (0 ms)
[----------] 1 test from CTestGen12dGPUCachePolicy (0 ms total)

[----------] 9 tests from CTestGen11Resource
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen11Resource.TestPlanar2D_NV12_MediaCompressed
[       OK ] CTestGen11Resource.TestPlanar2D_NV12_MediaCompressed (0 ms)
[ RUN      ] CTestGen11Resource.TestPlanar2D_NV12_MediaCompressedArray
[       OK ] CTestGen11Resource.TestPlanar2D_NV12_MediaCompressedArray (0 ms)
[ RUN      ] CTestGen11Resource.Test2DTileYfResource
TestBody
[       OK ] CTestGen11Resource.Test2DTileYfResource (0 ms)
[ RUN      ] CTestGen11Resource.TestPlanar2D_RGBP
[       OK ] CTestGen11Resource.TestPlanar2D_RGBP (0 ms)
[ RUN      ] CTestGen11Resource.TestPlanar2DCustom_RGBP
[       OK ] CTestGen11Resource.TestPlanar2DCustom_RGBP (0 ms)
[ RUN      ] CTestGen11Resource.TestPlanar2D_MFX_JPEG_YUV422V
[       OK ] CTestGen11Resource.TestPlanar2D_MFX_JPEG_YUV422V (0 ms)
[ RUN      ] CTestGen11Resource.TestPlanar2D_MFX_JPEG_YUV411R
[       OK ] CTestGen11Resource.TestPlanar2D_MFX_JPEG_YUV411R (0 ms)
[ RUN      ] CTestGen11Resource.TestPlanar2D_NV12
[       OK ] CTestGen11Resource.TestPlanar2D_NV12 (0 ms)
[ RUN      ] CTestGen11Resource.TestPlanar2D_IMC4
[       OK ] CTestGen11Resource.TestPlanar2D_IMC4 (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 9 tests from CTestGen11Resource (0 ms total)

[----------] 18 tests from CTestGen12Resource
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen12Resource.Test2DTileYsCompressedResource
[       OK ] CTestGen12Resource.Test2DTileYsCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test2DTileYfCompressedResource
[       OK ] CTestGen12Resource.Test2DTileYfCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test2DTileYCompressedResource
[       OK ] CTestGen12Resource.Test2DTileYCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test2DTileYLossyCompressedResource
[       OK ] CTestGen12Resource.Test2DTileYLossyCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestPlanarYCompressedResource
[       OK ] CTestGen12Resource.TestPlanarYCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestPlanarYsCompressedResource
[       OK ] CTestGen12Resource.TestPlanarYsCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestArrayedCompressedResource
[       OK ] CTestGen12Resource.TestArrayedCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestMipMapCompressedResource
[       OK ] CTestGen12Resource.TestMipMapCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestCubeCompressedResource
[       OK ] CTestGen12Resource.TestCubeCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test3DTileYsCompressedResource
[       OK ] CTestGen12Resource.Test3DTileYsCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test3DTileYfCompressedResource
[       OK ] CTestGen12Resource.Test3DTileYfCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test3DTileYCompressedResource
[       OK ] CTestGen12Resource.Test3DTileYCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test2DTileYfMippedCompressedResource
[       OK ] CTestGen12Resource.Test2DTileYfMippedCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestLinearCompressedResource
[       OK ] CTestGen12Resource.TestLinearCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestLosslessMSAACompressedResource
[       OK ] CTestGen12Resource.TestLosslessMSAACompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.TestStencilCompressedResource
[       OK ] CTestGen12Resource.TestStencilCompressedResource (0 ms)
[ RUN      ] CTestGen12Resource.Test2DTileYfAMFSResource
[       OK ] CTestGen12Resource.Test2DTileYfAMFSResource (0 ms)
[ RUN      ] CTestGen12Resource.TestColorMSAA
[       OK ] CTestGen12Resource.TestColorMSAA (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 18 tests from CTestGen12Resource (0 ms total)

[----------] 3 tests from CTestGen12dGPUResource
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen12dGPUResource.TestPlanarYsCompressedResource
[       OK ] CTestGen12dGPUResource.TestPlanarYsCompressedResource (0 ms)
[ RUN      ] CTestGen12dGPUResource.TestArrayedCompressedResource
[       OK ] CTestGen12dGPUResource.TestArrayedCompressedResource (0 ms)
[ RUN      ] CTestGen12dGPUResource.TestMipMapCompressedResource
[       OK ] CTestGen12dGPUResource.TestMipMapCompressedResource (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 3 tests from CTestGen12dGPUResource (0 ms total)

[----------] 2 tests from CTestGen9CachePolicy
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen9CachePolicy.TestL3CachePolicy
[       OK ] CTestGen9CachePolicy.TestL3CachePolicy (0 ms)
[ RUN      ] CTestGen9CachePolicy.TestLlcEdramCachePolicy
[       OK ] CTestGen9CachePolicy.TestLlcEdramCachePolicy (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 2 tests from CTestGen9CachePolicy (0 ms total)

[----------] 36 tests from CTestGen9Resource
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestGen9Resource.Test1DLinearResource
[       OK ] CTestGen9Resource.Test1DLinearResource (0 ms)
[ RUN      ] CTestGen9Resource.Test1DLinearResourceArrays
[       OK ] CTestGen9Resource.Test1DLinearResourceArrays (0 ms)
[ RUN      ] CTestGen9Resource.Test1DLinearResourceMips
[       OK ] CTestGen9Resource.Test1DLinearResourceMips (0 ms)
[ RUN      ] CTestGen9Resource.Test1DTileYsResource
[       OK ] CTestGen9Resource.Test1DTileYsResource (0 ms)
[ RUN      ] CTestGen9Resource.Test1DTileYsResourceArrays
[       OK ] CTestGen9Resource.Test1DTileYsResourceArrays (0 ms)
[ RUN      ] CTestGen9Resource.Test1DTileYsResourceMips
[       OK ] CTestGen9Resource.Test1DTileYsResourceMips (0 ms)
[ RUN      ] CTestGen9Resource.Test1DTileYfResource
[       OK ] CTestGen9Resource.Test1DTileYfResource (0 ms)
[ RUN      ] CTestGen9Resource.Test1DTileYfResourceArrays
[       OK ] CTestGen9Resource.Test1DTileYfResourceArrays (0 ms)
[ RUN      ] CTestGen9Resource.Test1DTileYfResourceMips
[       OK ] CTestGen9Resource.Test1DTileYfResourceMips (0 ms)
[ RUN      ] CTestGen9Resource.Test2DTileYsResource
[       OK ] CTestGen9Resource.Test2DTileYsResource (0 ms)
[ RUN      ] CTestGen9Resource.Test2DTileYsMippedResource
[       OK ] CTestGen9Resource.Test2DTileYsMippedResource (0 ms)
[ RUN      ] CTestGen9Resource.Test2DTileYfResource
[       OK ] CTestGen9Resource.Test2DTileYfResource (0 ms)
[ RUN      ] CTestGen9Resource.Test2DTileYfMippedResource
[       OK ] CTestGen9Resource.Test2DTileYfMippedResource (1 ms)
[ RUN      ] CTestGen9Resource.Test2DStencilMippedArrayedResource
[       OK ] CTestGen9Resource.Test2DStencilMippedArrayedResource (0 ms)
[ RUN      ] CTestGen9Resource.Test2DStencilArrayedCpuBltResource
[       OK ] CTestGen9Resource.Test2DStencilArrayedCpuBltResource (0 ms)
[ RUN      ] CTestGen9Resource.Test3DStencilMippedResource
[       OK ] CTestGen9Resource.Test3DStencilMippedResource (0 ms)
[ RUN      ] CTestGen9Resource.Test3DLinearResource
[       OK ] CTestGen9Resource.Test3DLinearResource (0 ms)
[ RUN      ] CTestGen9Resource.Test3DTileXResource
[       OK ] CTestGen9Resource.Test3DTileXResource (0 ms)
[ RUN      ] CTestGen9Resource.Test3DTileYResource
[       OK ] CTestGen9Resource.Test3DTileYResource (0 ms)
[ RUN      ] CTestGen9Resource.Test3DTileYsResource
[       OK ] CTestGen9Resource.Test3DTileYsResource (0 ms)
[ RUN      ] CTestGen9Resource.Test3DTileYsMippedResource
[       OK ] CTestGen9Resource.Test3DTileYsMippedResource (0 ms)
[ RUN      ] CTestGen9Resource.Test3DTileYfResource
[       OK ] CTestGen9Resource.Test3DTileYfResource (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeLinearResource
[       OK ] CTestGen9Resource.TestCubeLinearResource (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeLinearMippedResourceArray
[       OK ] CTestGen9Resource.TestCubeLinearMippedResourceArray (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeTileXResource
[       OK ] CTestGen9Resource.TestCubeTileXResource (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeTileYResource
[       OK ] CTestGen9Resource.TestCubeTileYResource (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeTileYsResource
[       OK ] CTestGen9Resource.TestCubeTileYsResource (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeTileYfResource
[       OK ] CTestGen9Resource.TestCubeTileYfResource (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeTileYMippedResourceArray
[       OK ] CTestGen9Resource.TestCubeTileYMippedResourceArray (0 ms)
[ RUN      ] CTestGen9Resource.TestCubeTileYsMippedResourceArray
[       OK ] CTestGen9Resource.TestCubeTileYsMippedResourceArray (0 ms)
[ RUN      ] CTestGen9Resource.TestPlanar2DTileYs
[       OK ] CTestGen9Resource.TestPlanar2DTileYs (0 ms)
[ RUN      ] CTestGen9Resource.TestPlanar2DTileYf
[       OK ] CTestGen9Resource.TestPlanar2DTileYf (0 ms)
[ RUN      ] CTestGen9Resource.TestMSAA
[       OK ] CTestGen9Resource.TestMSAA (1 ms)
[ RUN      ] CTestGen9Resource.TestCCS
[       OK ] CTestGen9Resource.TestCCS (0 ms)
[ RUN      ] CTestGen9Resource.TestMMC
[       OK ] CTestGen9Resource.TestMMC (0 ms)
[ RUN      ] CTestGen9Resource.TestStdSwizzle
[       OK ] CTestGen9Resource.TestStdSwizzle (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 36 tests from CTestGen9Resource (2 ms total)

[----------] 4 tests from CTestCpuBltResource
[ RUN      ] CTestCpuBltResource.TestCpuBlt1D
[       OK ] CTestCpuBltResource.TestCpuBlt1D (0 ms)
[ RUN      ] CTestCpuBltResource.TestCpuBlt2D
[       OK ] CTestCpuBltResource.TestCpuBlt2D (0 ms)
[ RUN      ] CTestCpuBltResource.TestCpuBlt3D
[       OK ] CTestCpuBltResource.TestCpuBlt3D (0 ms)
[ RUN      ] CTestCpuBltResource.TestCpuBltCube
[       OK ] CTestCpuBltResource.TestCpuBltCube (0 ms)
[----------] 4 tests from CTestCpuBltResource (0 ms total)

[----------] 34 tests from CTestResource
SetUpTestCase
SetUpTestCase
[ RUN      ] CTestResource.Test1DLinearResource
[       OK ] CTestResource.Test1DLinearResource (0 ms)
[ RUN      ] CTestResource.Test1DLinearResourceArrays
[       OK ] CTestResource.Test1DLinearResourceArrays (0 ms)
[ RUN      ] CTestResource.Test1DLinearResourceMips
[       OK ] CTestResource.Test1DLinearResourceMips (0 ms)
[ RUN      ] CTestResource.Test2DLinearResourceArrays
[       OK ] CTestResource.Test2DLinearResourceArrays (0 ms)
[ RUN      ] CTestResource.Test2DLinearResourceMips
[       OK ] CTestResource.Test2DLinearResourceMips (0 ms)
[ RUN      ] CTestResource.Test2DTileXResourceArrays
[       OK ] CTestResource.Test2DTileXResourceArrays (0 ms)
[ RUN      ] CTestResource.Test2DTileXResourceMips
[       OK ] CTestResource.Test2DTileXResourceMips (0 ms)
[ RUN      ] CTestResource.Test2DLinearResource
[       OK ] CTestResource.Test2DLinearResource (0 ms)
[ RUN      ] CTestResource.Test2DTileXResource
[       OK ] CTestResource.Test2DTileXResource (0 ms)
[ RUN      ] CTestResource.Test2DTileYResource
[       OK ] CTestResource.Test2DTileYResource (0 ms)
[ RUN      ] CTestResource.Test2DTileYResourceArrays
[       OK ] CTestResource.Test2DTileYResourceArrays (0 ms)
[ RUN      ] CTestResource.Test2DTileYResourceMips
[       OK ] CTestResource.Test2DTileYResourceMips (0 ms)
[ RUN      ] CTestResource.Test3DLinearResource
[       OK ] CTestResource.Test3DLinearResource (0 ms)
[ RUN      ] CTestResource.Test3DTileXResource
[       OK ] CTestResource.Test3DTileXResource (0 ms)
[ RUN      ] CTestResource.Test3DTileYResource
[       OK ] CTestResource.Test3DTileYResource (0 ms)
[ RUN      ] CTestResource.Test3DTileYMippedResource
[       OK ] CTestResource.Test3DTileYMippedResource (0 ms)
[ RUN      ] CTestResource.TestCubeLinearResource
[       OK ] CTestResource.TestCubeLinearResource (0 ms)
[ RUN      ] CTestResource.TestCubeLinearMippedResourceArray
[       OK ] CTestResource.TestCubeLinearMippedResourceArray (0 ms)
[ RUN      ] CTestResource.TestCubeTileXResource
[       OK ] CTestResource.TestCubeTileXResource (0 ms)
[ RUN      ] CTestResource.TestCubeTileYResource
[       OK ] CTestResource.TestCubeTileYResource (0 ms)
[ RUN      ] CTestResource.TestCubeTileYMippedResourceArray
[       OK ] CTestResource.TestCubeTileYMippedResourceArray (0 ms)
[ RUN      ] CTestResource.TestBufferLinearResource
[       OK ] CTestResource.TestBufferLinearResource (0 ms)
[ RUN      ] CTestResource.TestSeparateStencil
[       OK ] CTestResource.TestSeparateStencil (0 ms)
[ RUN      ] CTestResource.TestHiZ
[       OK ] CTestResource.TestHiZ (0 ms)
[ RUN      ] CTestResource.TestMSAA
[       OK ] CTestResource.TestMSAA (1 ms)
[ RUN      ] CTestResource.TestPlanar2D_RGBP
[       OK ] CTestResource.TestPlanar2D_RGBP (0 ms)
[ RUN      ] CTestResource.TestPlanar2D_RGBP_Unaligned
[       OK ] CTestResource.TestPlanar2D_RGBP_Unaligned (0 ms)
[ RUN      ] CTestResource.TestPlanar2D_MFX_JPEG_YUV422V
[       OK ] CTestResource.TestPlanar2D_MFX_JPEG_YUV422V (0 ms)
[ RUN      ] CTestResource.TestPlanar2D_MFX_JPEG_YUV411R
[       OK ] CTestResource.TestPlanar2D_MFX_JPEG_YUV411R (0 ms)
[ RUN      ] CTestResource.TestPlanar2D_NV12
[       OK ] CTestResource.TestPlanar2D_NV12 (0 ms)
[ RUN      ] CTestResource.TestPlanar2D_IMC4
[       OK ] CTestResource.TestPlanar2D_IMC4 (0 ms)
[ RUN      ] CTestResource.TestPlanar2D_YV12
[       OK ] CTestResource.TestPlanar2D_YV12 (0 ms)
[ RUN      ] CTestResource.TestUnifiedAuxSurface
[       OK ] CTestResource.TestUnifiedAuxSurface (0 ms)
[ RUN      ] CTestResource.TestCompressedSurface
[       OK ] CTestResource.TestCompressedSurface (0 ms)
TearDownTestCase
TearDownTestCase
[----------] 34 tests from CTestResource (1 ms total)

[----------] 3 tests from CTestAuxTable
SetUpTestCase
[ RUN      ] CTestAuxTable.TestUpdateAuxTableCompressedSurface
[       OK ] CTestAuxTable.TestUpdateAuxTableCompressedSurface (0 ms)
[ RUN      ] CTestAuxTable.TestInvalidateAuxTable
[       OK ] CTestAuxTable.TestInvalidateAuxTable (0 ms)
[ RUN      ] CTestAuxTable.TestAuxTableContent
[       OK ] CTestAuxTable.TestAuxTableContent (5 ms)
TearDownTestCase
[----------] 3 tests from CTestAuxTable (5 ms total)

[----------] Global test environment tear-down
[==========] 121 tests from 14 test cases ran. (9 ms total)
[  PASSED  ] 121 tests.

  YOU HAVE 24 DISABLED TESTS

Note, to avoid regressing build in future consider FreeBSD-friendly CI.

@iamleot
Copy link

iamleot commented Jan 13, 2020

On NetBSD/amd64 the build fails with:

In file included from /tmp/gmmlib/Source/GmmLib/TranslationTable/GmmAuxTable.cpp:30:
/tmp/gmmlib/Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h: In function ‘int _BitScanForward(uint32_t*, uint32_t)’:
/tmp/gmmlib/Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:63:9: error: ‘ffsl’ was not declared in this scope
     i = ffsl(mask);
         ^~~~
/tmp/gmmlib/Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:63:9: note: suggested alternative: ‘ffs’
     i = ffsl(mask);
         ^~~~
         ffs
In file included from /tmp/gmmlib/Source/GmmLib/TranslationTable/GmmAuxTable.cpp:30:
/tmp/gmmlib/Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h: In constructor ‘GmmLib::PageTable::PageTable(int, int, TT_TYPE)’:
/tmp/gmmlib/Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:447:42: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct GmmLib::PageTable::<unnamed>’; use assignment or value-initialization instead [-Wclass-memaccess]
             memset(&TTL3, 0, sizeof(TTL3));
                                          ^
/tmp/gmmlib/Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:422:9: note: ‘struct GmmLib::PageTable::<unnamed>’ declared here
         {
         ^
*** Error code 1

(Please do not consider that blocking the pull request but it was pasted only for completeness per request regarding intel/media-driver#819, and I am not sure that I will be able to investigate further in the short term, sorry!)

@jbeich
Copy link
Author

jbeich commented Jan 13, 2020

@iamleot, can you try again? NetBSD and OpenBSD don't have ffsl in libc.

@iamleot
Copy link

iamleot commented Jan 14, 2020 via email

@iamleot
Copy link

iamleot commented Jan 14, 2020

I can confirm that now it build successfully on NetBSD/amd64 and, last lines of tests:

[----------] Global test environment tear-down
[==========] 112 tests from 12 test cases ran. (32 ms total)
[  PASSED  ] 112 tests.

  YOU HAVE 4 DISABLED TESTS

Thank you!

@rcombs
Copy link

rcombs commented Jul 7, 2022

Any chance of this being merged at some point? It's blocking intel/media-driver#819.

@tmm1
Copy link

tmm1 commented Sep 13, 2022

Another friendly ping

@rbgarga
Copy link

rbgarga commented Jul 18, 2023

@johnmach any chance to get it committed? These changes are being applied on FreeBSD ports tree for years now and proved working

In file included from Source/GmmLib/ULT/GmmAuxTableULT.cpp:25:
In file included from Source/GmmLib/ULT/./GmmAuxTableULT.h:33:
/usr/include/malloc.h:3:2: error: "<malloc.h> has been replaced by <stdlib.h>"
 #error "<malloc.h> has been replaced by <stdlib.h>"
  ^
…ed here

Source/GmmLib/Utility/GmmLog/GmmLog.cpp:36:10: fatal error: 'linux/limits.h' file not found
 #include <linux/limits.h>
          ^~~~~~~~~~~~~~~~
ld: error: unable to find library -ldl
In file included from Source/GmmLib/Platform/GmmGen11Platform.cpp:23:
In file included from Source/GmmLib/inc/Internal/Common/GmmLibInc.h:35:
In file included from Source/GmmLib/inc/External/Common/GmmCachePolicy.h:332:
Source/GmmLib/inc/External/Common/GmmCachePolicyCommon.h:74:13: error: control reaches end of non-void function [-Werror,-Wreturn-type]
            }
            ^

Source/GmmLib/GlobalInfo/GmmInfo.cpp:600:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
Source/GmmLib/GlobalInfo/GmmInfo.cpp:635:5: error: expected 'while' in do/while loop
    else
    ^
Source/GmmLib/GlobalInfo/GmmInfo.cpp:616:9: note: to match this 'do'
        do
        ^
Source/GmmLib/GlobalInfo/GmmInfo.cpp:803:18: error: qualified reference to 'Context' is a constructor name rather than a type in this context
GmmLib::Context::Context()
                 ^
Source/GmmLib/GlobalInfo/GmmInfo.cpp:804:5: error: expected ';' after expression
    : ClientType(),
    ^
[...]
In file included from Source/GmmLib/CachePolicy/GmmCachePolicy.cpp:23:
In file included from Source/GmmLib/inc/Internal/Common/GmmLibInc.h:58:
In file included from Source/GmmLib/inc/External/Common/GmmResourceInfo.h:91:
In file included from Source/GmmLib/inc/External/Common/../Linux/GmmResourceInfoLin.h:26:
In file included from Source/GmmLib/inc/External/Common/../Linux/../Common/GmmResourceInfoCommon.h:32:
Source/GmmLib/inc/External/Common/GmmClientContext.h:59:5: error: unknown type name 'GMM_DEVICE_CALLBACKS_INT'
    GMM_DEVICE_CALLBACKS_INT     *pDeviceCb;
    ^
Source/GmmLib/inc/External/Common/GmmClientContext.h:85:9: error: unknown type name 'GMM_DEVICE_CALLBACKS_INT'
        GMM_DEVICE_CALLBACKS_INT          DeviceCB;       //OS-specific defn: Will be used by Clients to send as input arguments.
        ^
Source/GmmLib/inc/External/Common/GmmClientContext.h:139:80: error: unknown type name 'GMM_DEVICE_CALLBACKS_INT'
        GMM_VIRTUAL GMM_PAGETABLE_MGR* GMM_STDCALL      CreatePageTblMgrObject(GMM_DEVICE_CALLBACKS_INT* pDevCb, uint32_t TTFlags);
                                                                               ^
Source/GmmLib/inc/External/Common/GmmClientContext.h:154:57: error: unknown type name 'GMM_DEVICE_CALLBACKS_INT'
                                                        GMM_DEVICE_CALLBACKS_INT* pDevCb,
                                                        ^
In file included from Source/GmmLib/CachePolicy/GmmCachePolicy.cpp:23:
In file included from Source/GmmLib/inc/Internal/Common/GmmLibInc.h:62:
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:56:5: error: unknown type name 'GMM_UMD_SYNCCONTEXT'; did you mean 'GMM_UMD_CONTEXT'?
    GMM_UMD_SYNCCONTEXT * UmdContext;     // [in]  pointer to thread-specific data, specifying BBQHandle/Fence etc
    ^~~~~~~~~~~~~~~~~~~
    GMM_UMD_CONTEXT
Source/GmmLib/inc/External/Common/GmmInfo.h:58:3: note: 'GMM_UMD_CONTEXT' declared here
} GMM_UMD_CONTEXT;
  ^
In file included from Source/GmmLib/CachePolicy/GmmCachePolicy.cpp:23:
In file included from Source/GmmLib/inc/Internal/Common/GmmLibInc.h:62:
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:72:9: error: unknown type name 'HANDLE'
        HANDLE BBQueueHandle;
        ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:75:21: error: unknown type name 'HANDLE'
        SyncInfoLin(HANDLE Handle, uint64_t Fence) {}
                    ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:115:9: error: unknown type name 'GMM_DEVICE_CALLBACKS'
        GMM_DEVICE_CALLBACKS DeviceCb;       //OS-specific defn: Will be used by Clients to send as input arguments for TR-TT APIs
        ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:116:9: error: unknown type name 'GMM_DEVICE_CALLBACKS_INT'
        GMM_DEVICE_CALLBACKS_INT DeviceCbInt;       //OS-specific defn: Will be used internally GMM lib
        ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:117:9: error: unknown type name 'GMM_TRANSLATIONTABLE_CALLBACKS'
        GMM_TRANSLATIONTABLE_CALLBACKS TTCb; //OS-specific defn
        ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:118:9: error: unknown type name 'HANDLE'
        HANDLE hCsr;  // OCL per-device command stream receiver handle for aubcapture
        ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:121:25: error: unknown type name 'GMM_DEVICE_CALLBACKS_INT'
        GmmPageTableMgr(GMM_DEVICE_CALLBACKS_INT *, uint32_t TTFlags, GmmClientContext  *pClientContextIn); // Allocates memory for indicate TT’s root-tables, initializes common node-pool
                        ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:128:60: error: unknown type name 'HANDLE'
        GMM_VIRTUAL GMM_STATUS InitContextAuxTableRegister(HANDLE initialBBHandle, GMM_ENGINE_TYPE engType); //Clients call it to update Aux-Table pointer in context-image, engType reqd. if @ context level
                                                           ^
Source/GmmLib/inc/External/Common/GmmPageTableMgr.h:133:46: error: unknown type name 'GMM_UMD_SYNCCONTEXT'; did you mean 'GMM_UMD_CONTEXT'?
        GMM_VIRTUAL void __ReleaseUnusedPool(GMM_UMD_SYNCCONTEXT *UmdContext);
                                             ^~~~~~~~~~~~~~~~~~~
                                             GMM_UMD_CONTEXT
Source/GmmLib/inc/External/Common/GmmInfo.h:58:3: note: 'GMM_UMD_CONTEXT' declared here
} GMM_UMD_CONTEXT;
  ^
In file included from media_driver/agnostic/common/cm/cm_hal_hashtable.cpp:36:
In file included from media_driver/agnostic/common/cm/cm_hal_hashtable.h:29:
In file included from media_driver/agnostic/common/os/mos_os.h:31:
In file included from media_driver/linux/common/os/media_skuwa_specific.h:32:
In file included from media_driver/linux/common/os/linux_shadow_skuwa.h:31:
In file included from /usr/local/include/igdgmm/GmmLib/inc/GmmLib.h:30:
/usr/local/include/igdgmm/inc/portable_compiler.h:33:13: error: '__fastcall' macro redefined [-Werror,-Wmacro-redefined]
    #define __fastcall
            ^
/usr/include/sys/cdefs.h:372:9: note: previous definition is here
 #define __fastcall      __attribute__((__fastcall__))
         ^
In file included from Source/GmmLib/TranslationTable/GmmAuxTable.cpp:30:
Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h: In function ‘int _BitScanForward(uint32_t*, uint32_t)’:
Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:63:9: error: ‘ffsl’ was not declared in this scope
     i = ffsl(mask);
         ^~~~
Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:63:9: note: suggested alternative: ‘ffs’
     i = ffsl(mask);
         ^~~~
         ffs
@jbeich
Copy link
Author

jbeich commented Nov 20, 2024

As GitHub auto-closes PRs on fork removal I'm transfering my gmmlib fork to @rosorio per intel/media-driver#1785. Otherwise, this PR will have to be duplicated like what happened with media-driver... except no new changes are required for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants