diff options
author | Dave Airlie <[email protected]> | 2016-10-11 15:57:58 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-10-12 08:56:41 +1000 |
commit | 014ec78fb26305b0d6ed1a9ae5e74915860df934 (patch) | |
tree | 399ee72a4b55d1e1af7108ecefe4d5626ba3f09e /src/amd/vulkan/radv_entrypoints_gen.py | |
parent | 12301c54186d3c515ca3ee72c70091fc40f0145e (diff) |
radv: drop entrypoint split out.
radv really doesn't need different dispatch per gen yet,
there really isn't that many differences yet.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_entrypoints_gen.py')
-rw-r--r-- | src/amd/vulkan/radv_entrypoints_gen.py | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/src/amd/vulkan/radv_entrypoints_gen.py b/src/amd/vulkan/radv_entrypoints_gen.py index e8ef8a4e9eb..d6c49ce54cf 100644 --- a/src/amd/vulkan/radv_entrypoints_gen.py +++ b/src/amd/vulkan/radv_entrypoints_gen.py @@ -125,14 +125,9 @@ if opt_header: print " };\n" print "};\n" - print "void radv_set_dispatch_devinfo(const struct radv_device_info *info);\n" - for type, name, args, num, h in entrypoints: print_guard_start(name) print "%s radv_%s%s;" % (type, name, args) - print "%s vi_%s%s;" % (type, name, args) - print "%s cik_%s%s;" % (type, name, args) - print "%s si_%s%s;" % (type, name, args) print "%s radv_validate_%s%s;" % (type, name, args) print_guard_end(name) exit() @@ -201,7 +196,7 @@ print """ */ """ -for layer in [ "radv", "validate", "si", "cik", "vi" ]: +for layer in [ "radv", "validate" ]: for type, name, args, num, h in entrypoints: print_guard_start(name) print "%s %s_%s%s __attribute__ ((weak));" % (type, layer, name, args) @@ -235,42 +230,13 @@ determine_validate(void) enable_validate = atoi(s); } -static const struct radv_device_info *dispatch_devinfo; - -void -radv_set_dispatch_devinfo(const struct radv_device_info *devinfo) -{ - dispatch_devinfo = devinfo; -} - void * __attribute__ ((noinline)) radv_resolve_entrypoint(uint32_t index) { if (enable_validate && validate_layer.entrypoints[index]) return validate_layer.entrypoints[index]; - if (dispatch_devinfo == NULL) { - return radv_layer.entrypoints[index]; - } - - switch (dispatch_devinfo->chip_class) { - case VI: - if (vi_layer.entrypoints[index]) - return vi_layer.entrypoints[index]; - /* fall through */ - case CIK: - if (cik_layer.entrypoints[index]) - return cik_layer.entrypoints[index]; - /* fall through */ - case SI: - if (si_layer.entrypoints[index]) - return si_layer.entrypoints[index]; - /* fall through */ - case 0: - return radv_layer.entrypoints[index]; - default: - unreachable("unsupported gen\\n"); - } + return radv_layer.entrypoints[index]; } """ |