Lines Matching full:machine
38 struct tgsi_exec_machine *machine, in cs_prepare() argument
48 * Bind tokens/shader to the interpreter's machine state. in cs_prepare()
50 tgsi_exec_machine_bind_shader(machine, in cs_prepare()
54 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_THREAD_ID] != -1) { in cs_prepare()
55 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_THREAD_ID]; in cs_prepare()
57 machine->SystemValue[i].xyzw[0].i[j] = local_x + j; in cs_prepare()
58 machine->SystemValue[i].xyzw[1].i[j] = local_y; in cs_prepare()
59 machine->SystemValue[i].xyzw[2].i[j] = local_z; in cs_prepare()
63 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_GRID_SIZE] != -1) { in cs_prepare()
64 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_GRID_SIZE]; in cs_prepare()
66 machine->SystemValue[i].xyzw[0].i[j] = g_w; in cs_prepare()
67 machine->SystemValue[i].xyzw[1].i[j] = g_h; in cs_prepare()
68 machine->SystemValue[i].xyzw[2].i[j] = g_d; in cs_prepare()
72 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_SIZE] != -1) { in cs_prepare()
73 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_SIZE]; in cs_prepare()
75 machine->SystemValue[i].xyzw[0].i[j] = b_w; in cs_prepare()
76 machine->SystemValue[i].xyzw[1].i[j] = b_h; in cs_prepare()
77 machine->SystemValue[i].xyzw[2].i[j] = b_d; in cs_prepare()
85 struct tgsi_exec_machine *machine, bool restart) in cs_run() argument
88 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_ID] != -1) { in cs_run()
89 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_ID]; in cs_run()
92 machine->SystemValue[i].xyzw[0].i[j] = g_w; in cs_run()
93 machine->SystemValue[i].xyzw[1].i[j] = g_h; in cs_run()
94 machine->SystemValue[i].xyzw[2].i[j] = g_d; in cs_run()
99 tgsi_exec_machine_run(machine, restart ? machine->pc : 0); in cs_run()
101 if (machine->pc != -1) in cs_run()
129 struct tgsi_exec_machine *machine) in cs_delete() argument
131 if (machine->Tokens == cs->tokens) { in cs_delete()
132 tgsi_exec_machine_bind_shader(machine, NULL, NULL, NULL, NULL); in cs_delete()