aco: Initial GFX7 Support
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user