aco: Initial GFX7 Support

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
This commit is contained in:
Daniel Schürmann
2019-11-04 18:02:47 +01:00
parent 3177346bfc
commit 0d42e4d7a0
4 changed files with 95 additions and 72 deletions
+7 -7
View File
@@ -28,11 +28,6 @@ template = """\
namespace aco {
const unsigned VOPC_to_GFX6[256] = {
% for code in VOPC_GFX6:
${code},
% endfor
};
<%
opcode_names = sorted(opcodes.keys())
@@ -41,6 +36,11 @@ can_use_output_modifiers = "".join([opcodes[name].output_mod for name in reverse
%>
extern const aco::Info instr_info = {
.opcode_gfx7 = {
% for name in opcode_names:
${opcodes[name].opcode_gfx7},
% endfor
},
.opcode_gfx9 = {
% for name in opcode_names:
${opcodes[name].opcode_gfx9},
@@ -68,7 +68,7 @@ extern const aco::Info instr_info = {
}
"""
from aco_opcodes import opcodes, VOPC_GFX6
from aco_opcodes import opcodes
from mako.template import Template
print(Template(template).render(opcodes=opcodes, VOPC_GFX6=VOPC_GFX6))
print(Template(template).render(opcodes=opcodes))