diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2015-09-15 12:37:21 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2015-11-25 20:58:25 -0800 |
commit | c445fa2f774909f9c2a1e60c89e2f030c6ccfdf2 (patch) | |
tree | 7892646e970bc14ffeda28b33360dea3cac82ef0 /src/vulkan/anv_entrypoints_gen.py | |
parent | 0e02a88ad479e2c0fd06df995554e035e044d405 (diff) |
vk: Make entrypoint generator output gen9 entry points
Signed-off-by: Kristian Høgsberg Kristensen <[email protected]>
Diffstat (limited to 'src/vulkan/anv_entrypoints_gen.py')
-rw-r--r-- | src/vulkan/anv_entrypoints_gen.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vulkan/anv_entrypoints_gen.py b/src/vulkan/anv_entrypoints_gen.py index e0a521e8756..2e56274eb50 100644 --- a/src/vulkan/anv_entrypoints_gen.py +++ b/src/vulkan/anv_entrypoints_gen.py @@ -98,6 +98,7 @@ if opt_header: print "%s gen7_%s%s;" % (type, name, args) print "%s gen75_%s%s;" % (type, name, args) print "%s gen8_%s%s;" % (type, name, args) + print "%s gen9_%s%s;" % (type, name, args) print "%s anv_validate_%s%s;" % (type, name, args) exit() @@ -164,7 +165,7 @@ for type, name, args, num, h in entrypoints: print " { %5d, 0x%08x }," % (offsets[num], h) print "};\n" -for layer in [ "anv", "validate", "gen7", "gen75", "gen8" ]: +for layer in [ "anv", "validate", "gen7", "gen75", "gen8", "gen9" ]: for type, name, args, num, h in entrypoints: print "%s %s_%s%s __attribute__ ((weak));" % (type, layer, name, args) print "\nconst struct anv_dispatch_table %s_layer = {" % layer @@ -214,6 +215,10 @@ anv_resolve_entrypoint(uint32_t index) } switch (dispatch_devinfo->gen) { + case 9: + if (gen9_layer.entrypoints[index]) + return gen9_layer.entrypoints[index]; + /* fall through */ case 8: if (gen8_layer.entrypoints[index]) return gen8_layer.entrypoints[index]; |