瀏覽代碼

mesa: improve getprocaddress test

- Allow the getprocaddress test to test extensions not supported by
  Mesa.  The original getprocaddress.py script only included OpenGL
  extension functions that were in Mesa dispatch tables.  Now all
  known extension functions (as detailed in gl_API.xml) are included.
  As the test does not link against any extension function symbols
  (i.e. it uses glXGetProcAddress() for all extension functions),
  it still compiles and links against Mesa; but now the same
  binary can be used to test extensions not yet supported by Mesa.

- Extend the list of tested extension functions.  The last revision
  of this test exercised 16 extension functions; this revision adds
  support for 95 more.
tags/mesa_7_6_rc1
Robert Ellison 16 年之前
父節點
當前提交
99d5139078
共有 2 個文件被更改,包括 3204 次插入41 次删除
  1. 3203
    40
      progs/tests/getprocaddress.c
  2. 1
    1
      progs/tests/getprocaddress.py

+ 3203
- 40
progs/tests/getprocaddress.c
文件差異過大導致無法顯示
查看文件


+ 1
- 1
progs/tests/getprocaddress.py 查看文件

prev_category = None prev_category = None


for f in api.functionIterateByOffset():
for f in api.functionIterateByCategory():
[category, num] = api.get_category_for_name( f.name ) [category, num] = api.get_category_for_name( f.name )
if category != prev_category: if category != prev_category:
print ' { "-%s", NULL},' % category print ' { "-%s", NULL},' % category

Loading…
取消
儲存