• Home
  • Raw
  • Download

Lines Matching full:machine

39            struct tgsi_exec_machine *machine,  in cs_prepare()  argument
49 * Bind tokens/shader to the interpreter's machine state. in cs_prepare()
51 tgsi_exec_machine_bind_shader(machine, in cs_prepare()
55 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_THREAD_ID] != -1) { in cs_prepare()
56 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_THREAD_ID]; in cs_prepare()
58 machine->SystemValue[i].xyzw[0].i[j] = local_x + j; in cs_prepare()
59 machine->SystemValue[i].xyzw[1].i[j] = local_y; in cs_prepare()
60 machine->SystemValue[i].xyzw[2].i[j] = local_z; in cs_prepare()
64 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_GRID_SIZE] != -1) { in cs_prepare()
65 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_GRID_SIZE]; in cs_prepare()
67 machine->SystemValue[i].xyzw[0].i[j] = g_w; in cs_prepare()
68 machine->SystemValue[i].xyzw[1].i[j] = g_h; in cs_prepare()
69 machine->SystemValue[i].xyzw[2].i[j] = g_d; in cs_prepare()
73 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_SIZE] != -1) { in cs_prepare()
74 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_SIZE]; in cs_prepare()
76 machine->SystemValue[i].xyzw[0].i[j] = b_w; in cs_prepare()
77 machine->SystemValue[i].xyzw[1].i[j] = b_h; in cs_prepare()
78 machine->SystemValue[i].xyzw[2].i[j] = b_d; in cs_prepare()
86 struct tgsi_exec_machine *machine, bool restart) in cs_run() argument
89 if (machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_ID] != -1) { in cs_run()
90 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_BLOCK_ID]; in cs_run()
93 machine->SystemValue[i].xyzw[0].i[j] = g_w; in cs_run()
94 machine->SystemValue[i].xyzw[1].i[j] = g_h; in cs_run()
95 machine->SystemValue[i].xyzw[2].i[j] = g_d; in cs_run()
100 tgsi_exec_machine_run(machine, restart ? machine->pc : 0); in cs_run()
102 if (machine->pc != -1) in cs_run()
130 struct tgsi_exec_machine *machine) in cs_delete() argument
132 if (machine->Tokens == cs->tokens) { in cs_delete()
133 tgsi_exec_machine_bind_shader(machine, NULL, NULL, NULL, NULL); in cs_delete()