[Flint] centralize compute lowering, adding surface messages with GRF
Mirror Gitea refs to GitHub / mirror (push) Successful in 16s
Test / build_and_test (push) Successful in 2m11s
Build / build (push) Successful in 3m18s

allocation
This commit is contained in:
2026-08-27 21:18:05 +02:00
parent 148ed9b441
commit 441d5fbb96
12 changed files with 542 additions and 124 deletions
+16
View File
@@ -136,6 +136,22 @@ fn writeOperation(program: *const program_ir.Program, writer: *std.Io.Writer, ex
try writer.writeAll(", ");
try writeSource(program, writer, execution_size, op.source);
},
.surface_read => |op| {
try writer.writeAll("surface_read ");
try writeDestination(program, writer, execution_size, op.destination);
try writer.print(", bti({d}), ", .{op.binding_table});
try writeSource(program, writer, execution_size, op.address);
if (op.immediate_offset != 0)
try writer.print(", offset({d})", .{op.immediate_offset});
},
.surface_write => |op| {
try writer.print("surface_write bti({d}), ", .{op.binding_table});
try writeSource(program, writer, execution_size, op.address);
if (op.immediate_offset != 0)
try writer.print(", offset({d})", .{op.immediate_offset});
try writer.writeAll(", ");
try writeSource(program, writer, execution_size, op.data);
},
.move => |op| {
try writer.writeAll("mov ");
try writeDestination(program, writer, execution_size, op.destination);