Lines Matching full:machine
40 struct tgsi_exec_machine *machine, in cs_prepare() argument
50 * Bind tokens/shader to the interpreter's machine state. in cs_prepare()
52 tgsi_exec_machine_bind_shader(machine, in cs_prepare()
56 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_THREAD_ID] != -1) { in cs_prepare()
57 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_THREAD_ID]; in cs_prepare()
59 machine->SystemValue[i].xyzw[0].i[j] = w; in cs_prepare()
60 machine->SystemValue[i].xyzw[1].i[j] = h; in cs_prepare()
61 machine->SystemValue[i].xyzw[2].i[j] = d; in cs_prepare()
65 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_GRID_SIZE] != -1) { in cs_prepare()
66 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_GRID_SIZE]; in cs_prepare()
68 machine->SystemValue[i].xyzw[0].i[j] = g_w; in cs_prepare()
69 machine->SystemValue[i].xyzw[1].i[j] = g_h; in cs_prepare()
70 machine->SystemValue[i].xyzw[2].i[j] = g_d; in cs_prepare()
74 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_SIZE] != -1) { in cs_prepare()
75 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_SIZE]; in cs_prepare()
77 machine->SystemValue[i].xyzw[0].i[j] = b_w; in cs_prepare()
78 machine->SystemValue[i].xyzw[1].i[j] = b_h; in cs_prepare()
79 machine->SystemValue[i].xyzw[2].i[j] = b_d; in cs_prepare()
87 struct tgsi_exec_machine *machine, bool restart) in cs_run() argument
90 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_ID] != -1) { in cs_run()
91 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_ID]; in cs_run()
94 machine->SystemValue[i].xyzw[0].i[j] = g_w; in cs_run()
95 machine->SystemValue[i].xyzw[1].i[j] = g_h; in cs_run()
96 machine->SystemValue[i].xyzw[2].i[j] = g_d; in cs_run()
99 machine->NonHelperMask = (1 << 1) - 1; in cs_run()
102 tgsi_exec_machine_run(machine, restart ? machine->pc : 0); in cs_run()
104 if (machine->pc != -1) in cs_run()
132 struct tgsi_exec_machine *machine) in cs_delete() argument
134 if (machine->Tokens == cs->tokens) { in cs_delete()
135 tgsi_exec_machine_bind_shader(machine, NULL, NULL, NULL, NULL); in cs_delete()