[Mesa-dev] [PATCH] mesa/tests: add KHR_debug GLES glGetPointervKHR entry points

Matt Turner mattst88 at gmail.com
Thu Dec 3 16:45:38 PST 2015


On Thu, Dec 3, 2015 at 4:37 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> FWIW, make check still fails for me even with this patch.
> Do you have a log that I can take a look ? I've `make clean'ed and
> rebuild a couple of times just in case and things seems to pass here.

Attached is the output of ./main-test without (p.txt) and with (q.txt)
your patch.
-------------- next part --------------
Running main() from gtest_main.cc
[==========] Running 12 tests from 5 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from EnumStrings
[ RUN      ] EnumStrings.LookUpByNumber
[       OK ] EnumStrings.LookUpByNumber (0 ms)
[ RUN      ] EnumStrings.LookUpUnknownNumber
[       OK ] EnumStrings.LookUpUnknownNumber (0 ms)
[----------] 2 tests from EnumStrings (1 ms total)

[----------] 6 tests from DispatchSanity_test
[ RUN      ] DispatchSanity_test.GL31_CORE
[       OK ] DispatchSanity_test.GL31_CORE (1 ms)
[ RUN      ] DispatchSanity_test.GL30
[       OK ] DispatchSanity_test.GL30 (0 ms)
[ RUN      ] DispatchSanity_test.GLES11
[       OK ] DispatchSanity_test.GLES11 (1 ms)
[ RUN      ] DispatchSanity_test.GLES2
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x449fc0
Expected: nop_table[i]
Which is: 0x419650
i = 329 (GetPointerv)
[  FAILED  ] DispatchSanity_test.GLES2 (0 ms)
[ RUN      ] DispatchSanity_test.GLES3
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x449fc0
Expected: nop_table[i]
Which is: 0x419650
i = 329 (GetPointerv)
[  FAILED  ] DispatchSanity_test.GLES3 (0 ms)
[ RUN      ] DispatchSanity_test.GLES31
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x449fc0
Expected: nop_table[i]
Which is: 0x419650
i = 329 (GetPointerv)
[  FAILED  ] DispatchSanity_test.GLES31 (1 ms)
[----------] 6 tests from DispatchSanity_test (3 ms total)

[----------] 2 tests from MesaFormatsTest
[ RUN      ] MesaFormatsTest.FormatTypeAndComps
[       OK ] MesaFormatsTest.FormatTypeAndComps (0 ms)
[ RUN      ] MesaFormatsTest.FormatSanity
[       OK ] MesaFormatsTest.FormatSanity (0 ms)
[----------] 2 tests from MesaFormatsTest (0 ms total)

[----------] 1 test from MesaExtensionsTest
[ RUN      ] MesaExtensionsTest.AlphabeticallySorted
[       OK ] MesaExtensionsTest.AlphabeticallySorted (0 ms)
[----------] 1 test from MesaExtensionsTest (0 ms total)

[----------] 1 test from program_state_string
[ RUN      ] program_state_string.depth_range
[       OK ] program_state_string.depth_range (0 ms)
[----------] 1 test from program_state_string (0 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 5 test cases ran. (4 ms total)
[  PASSED  ] 9 tests.
[  FAILED  ] 3 tests, listed below:
[  FAILED  ] DispatchSanity_test.GLES2
[  FAILED  ] DispatchSanity_test.GLES3
[  FAILED  ] DispatchSanity_test.GLES31

 3 FAILED TESTS
-------------- next part --------------
Running main() from gtest_main.cc
[==========] Running 12 tests from 5 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from EnumStrings
[ RUN      ] EnumStrings.LookUpByNumber
[       OK ] EnumStrings.LookUpByNumber (0 ms)
[ RUN      ] EnumStrings.LookUpUnknownNumber
[       OK ] EnumStrings.LookUpUnknownNumber (0 ms)
[----------] 2 tests from EnumStrings (0 ms total)

[----------] 6 tests from DispatchSanity_test
[ RUN      ] DispatchSanity_test.GL31_CORE
[       OK ] DispatchSanity_test.GL31_CORE (1 ms)
[ RUN      ] DispatchSanity_test.GL30
[       OK ] DispatchSanity_test.GL30 (1 ms)
[ RUN      ] DispatchSanity_test.GLES11
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:151: Failure
Value of: _glapi_get_proc_offset(function_table[i].name)
  Actual: -1
Expected: offset
Which is: 329
Function: glGetPointervKHR
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x449fc0
Expected: nop_table[i]
Which is: 0x419650
i = 329 (GetPointerv)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b2190
Expected: nop_table[i]
Which is: 0x419650
i = 1105 (ObjectLabel)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b22a0
Expected: nop_table[i]
Which is: 0x419650
i = 1106 (ObjectPtrLabel)
[  FAILED  ] DispatchSanity_test.GLES11 (0 ms)
[ RUN      ] DispatchSanity_test.GLES2
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:148: Failure
Expected: (-1) != (offset), actual: -1 vs -1
Function: glGetPointervKHR
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x449fc0
Expected: nop_table[i]
Which is: 0x419650
i = 329 (GetPointerv)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b2190
Expected: nop_table[i]
Which is: 0x419650
i = 1105 (ObjectLabel)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b22a0
Expected: nop_table[i]
Which is: 0x419650
i = 1106 (ObjectPtrLabel)
[  FAILED  ] DispatchSanity_test.GLES2 (0 ms)
[ RUN      ] DispatchSanity_test.GLES3
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:148: Failure
Expected: (-1) != (offset), actual: -1 vs -1
Function: glGetPointervKHR
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x449fc0
Expected: nop_table[i]
Which is: 0x419650
i = 329 (GetPointerv)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b2190
Expected: nop_table[i]
Which is: 0x419650
i = 1105 (ObjectLabel)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b22a0
Expected: nop_table[i]
Which is: 0x419650
i = 1106 (ObjectPtrLabel)
[  FAILED  ] DispatchSanity_test.GLES3 (0 ms)
[ RUN      ] DispatchSanity_test.GLES31
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:148: Failure
Expected: (-1) != (offset), actual: -1 vs -1
Function: glGetPointervKHR
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x449fc0
Expected: nop_table[i]
Which is: 0x419650
i = 329 (GetPointerv)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b2190
Expected: nop_table[i]
Which is: 0x419650
i = 1105 (ObjectLabel)
../../../../../mesa/src/mesa/main/tests/dispatch_sanity.cpp:173: Failure
Value of: table[i]
  Actual: 0x5b22a0
Expected: nop_table[i]
Which is: 0x419650
i = 1106 (ObjectPtrLabel)
[  FAILED  ] DispatchSanity_test.GLES31 (1 ms)
[----------] 6 tests from DispatchSanity_test (3 ms total)

[----------] 2 tests from MesaFormatsTest
[ RUN      ] MesaFormatsTest.FormatTypeAndComps
[       OK ] MesaFormatsTest.FormatTypeAndComps (0 ms)
[ RUN      ] MesaFormatsTest.FormatSanity
[       OK ] MesaFormatsTest.FormatSanity (0 ms)
[----------] 2 tests from MesaFormatsTest (0 ms total)

[----------] 1 test from MesaExtensionsTest
[ RUN      ] MesaExtensionsTest.AlphabeticallySorted
[       OK ] MesaExtensionsTest.AlphabeticallySorted (0 ms)
[----------] 1 test from MesaExtensionsTest (0 ms total)

[----------] 1 test from program_state_string
[ RUN      ] program_state_string.depth_range
[       OK ] program_state_string.depth_range (0 ms)
[----------] 1 test from program_state_string (0 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 5 test cases ran. (3 ms total)
[  PASSED  ] 8 tests.
[  FAILED  ] 4 tests, listed below:
[  FAILED  ] DispatchSanity_test.GLES11
[  FAILED  ] DispatchSanity_test.GLES2
[  FAILED  ] DispatchSanity_test.GLES3
[  FAILED  ] DispatchSanity_test.GLES31

 4 FAILED TESTS


More information about the mesa-dev mailing list