diff options
author | Jason Ekstrand <[email protected]> | 2015-11-17 06:30:47 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-17 08:27:51 -0800 |
commit | 92d164b1c39ce52920d6bef6b348f244ba06f704 (patch) | |
tree | 0ec1370b5e0a3199c1e0bce558c86a8979b40740 | |
parent | aa3002bd42c0fcd70dbeff7a3c2b049e048c0009 (diff) |
anv/entrypoints: Add dispatch support for haswell
-rw-r--r-- | src/vulkan/anv_entrypoints_gen.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vulkan/anv_entrypoints_gen.py b/src/vulkan/anv_entrypoints_gen.py index bb250602b25..e0a521e8756 100644 --- a/src/vulkan/anv_entrypoints_gen.py +++ b/src/vulkan/anv_entrypoints_gen.py @@ -96,6 +96,7 @@ if opt_header: for type, name, args, num, h in entrypoints: print "%s anv_%s%s;" % (type, name, args) 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 anv_validate_%s%s;" % (type, name, args) exit() @@ -163,7 +164,7 @@ for type, name, args, num, h in entrypoints: print " { %5d, 0x%08x }," % (offsets[num], h) print "};\n" -for layer in [ "anv", "validate", "gen7", "gen8" ]: +for layer in [ "anv", "validate", "gen7", "gen75", "gen8" ]: 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 @@ -218,6 +219,9 @@ anv_resolve_entrypoint(uint32_t index) return gen8_layer.entrypoints[index]; /* fall through */ case 7: + if (dispatch_devinfo->is_haswell && gen75_layer.entrypoints[index]) + return gen75_layer.entrypoints[index]; + if (gen7_layer.entrypoints[index]) return gen7_layer.entrypoints[index]; /* fall through */ |