/external/mesa3d/src/gallium/drivers/ilo/shader/ |
toy_tgsi.h | 101 * Find the slot of the TGSI input. 104 toy_tgsi_find_input(const struct toy_tgsi *tgsi, int index) 108 for (slot = 0; slot < tgsi->num_inputs; slot++) { 109 if (tgsi->inputs[slot].index == index) 117 * Find the slot of the TGSI system value. 120 toy_tgsi_find_system_value(const struct toy_tgsi *tgsi, int index) 124 for (slot = 0; slot < tgsi->num_system_values; slot++) { 125 if (tgsi->system_values[slot].index == index) 133 * Return the immediate data of the TGSI immediate. 136 toy_tgsi_get_imm(const struct toy_tgsi *tgsi, unsigned index [all...] |
toy_tgsi.c | 28 #include "tgsi/tgsi_parse.h" 29 #include "tgsi/tgsi_info.h" 30 #include "tgsi/tgsi_strings.h" 35 /* map TGSI opcode to GEN opcode 1-to-1 */ 752 ilo_warn("unsupported TGSI opcode: TGSI_OPCODE_%s\n", name); 754 tc_fail(tc, "unsupported TGSI instruction"); [all...] |
ilo_shader_vs.c | 28 #include "tgsi/tgsi_dump.h" 29 #include "tgsi/tgsi_util.h" 42 struct toy_tgsi tgsi; member in struct:vs_compile_context 67 slot = toy_tgsi_find_input(&vcc->tgsi, idx); 70 (vcc->shader->in.count - vcc->tgsi.num_inputs); 71 const int grf = first_in_grf + vcc->tgsi.inputs[slot].semantic_index; 177 imm = toy_tgsi_get_imm(&vcc->tgsi, idx, NULL); 193 const struct toy_tgsi *tgsi = &vcc->tgsi; local 198 slot = toy_tgsi_find_system_value(tgsi, idx) 807 const struct toy_tgsi *tgsi = &vcc->tgsi; local [all...] |
ilo_shader_fs.c | 28 #include "tgsi/tgsi_dump.h" 29 #include "tgsi/tgsi_util.h" 42 struct toy_tgsi tgsi; member in struct:fs_compile_context 81 (fcc->tgsi.props.fs_coord_origin == TGSI_FS_COORD_ORIGIN_UPPER_LEFT); 83 (fcc->tgsi.props.fs_coord_pixel_center == 170 switch (fcc->tgsi.inputs[slot].interp) { 175 if (fcc->tgsi.inputs[slot].centroid) 187 if (fcc->tgsi.inputs[slot].centroid) 225 if (fcc->tgsi.inputs[slot].semantic_name == TGSI_SEMANTIC_FOG) { 240 slot = toy_tgsi_find_input(&fcc->tgsi, idx) 458 const struct toy_tgsi *tgsi = &fcc->tgsi; local [all...] |
ilo_shader_gs.c | 28 #include "tgsi/tgsi_dump.h" 49 struct toy_tgsi tgsi; member in struct:gs_compile_context 576 slot = toy_tgsi_find_input(&gcc->tgsi, idx); 582 gcc->tgsi.inputs[slot].semantic_name && 584 gcc->tgsi.inputs[slot].semantic_index) { 639 imm = toy_tgsi_get_imm(&gcc->tgsi, idx, NULL); 673 const int vrf = toy_tgsi_get_vrf(&gcc->tgsi, TGSI_FILE_INPUT, i, idx); 691 tc_fail(tc, "unhandled TGSI fetch"); 959 ilo_err("failed to translate GS TGSI tokens: %s\n", tc->reason); 997 * Translate the TGSI tokens [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/tgsi/ |
invocation.hpp | 29 namespace tgsi { namespace in namespace:clover
|
compiler.cpp | 25 #include "tgsi/invocation.hpp" 28 #include "tgsi/tgsi_parse.h" 29 #include "tgsi/tgsi_text.h" 99 clover::tgsi::compile_program(const std::string &source, std::string &r_log) { 116 clover::tgsi::link_program(const std::vector<module> &modules)
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_state_image.c | 45 pipe_resource_reference(&softpipe->tgsi.image[shader]->sp_iview[idx].resource, images[i].resource); 46 softpipe->tgsi.image[shader]->sp_iview[idx] = images[i]; 49 pipe_resource_reference(&softpipe->tgsi.image[shader]->sp_iview[idx].resource, NULL); 50 memset(&softpipe->tgsi.image[shader]->sp_iview[idx], 0, sizeof(struct pipe_image_view)); 71 pipe_resource_reference(&softpipe->tgsi.buffer[shader]->sp_bview[idx].buffer, buffers[i].buffer); 72 softpipe->tgsi.buffer[shader]->sp_bview[idx] = buffers[i]; 75 pipe_resource_reference(&softpipe->tgsi.buffer[shader]->sp_bview[idx].buffer, NULL); 76 memset(&softpipe->tgsi.buffer[shader]->sp_bview[idx], 0, sizeof(struct pipe_shader_buffer));
|
sp_context.c | 40 #include "tgsi/tgsi_exec.h" 119 FREE(softpipe->tgsi.sampler[i]); 120 FREE(softpipe->tgsi.image[i]); 121 FREE(softpipe->tgsi.buffer[i]); 202 softpipe->tgsi.sampler[i] = sp_create_tgsi_sampler(); 206 softpipe->tgsi.image[i] = sp_create_tgsi_image(); 210 softpipe->tgsi.buffer[i] = sp_create_tgsi_buffer(); 284 softpipe->tgsi.sampler[PIPE_SHADER_VERTEX]); 289 softpipe->tgsi.sampler[PIPE_SHADER_GEOMETRY]); 294 softpipe->tgsi.image[PIPE_SHADER_VERTEX]) [all...] |
sp_state_derived.c | 290 softpipe->tgsi.sampler[shader]->sp_sampler[i] = 348 /* prepare the TGSI interpreter for FS execution */ 352 tgsi.sampler[PIPE_SHADER_FRAGMENT], 353 (struct tgsi_image *)softpipe->tgsi.image[PIPE_SHADER_FRAGMENT], 354 (struct tgsi_buffer *)softpipe->tgsi.buffer[PIPE_SHADER_FRAGMENT]);
|
sp_compute.c | 36 #include "tgsi/tgsi_parse.h" 212 (struct tgsi_sampler *)softpipe->tgsi.sampler[PIPE_SHADER_COMPUTE], 213 (struct tgsi_image *)softpipe->tgsi.image[PIPE_SHADER_COMPUTE], 214 (struct tgsi_buffer *)softpipe->tgsi.buffer[PIPE_SHADER_COMPUTE]);
|
sp_context.h | 175 /** TGSI exec things */ 180 } tgsi; member in struct:softpipe_context
|
/external/mesa3d/src/mesa/state_tracker/ |
st_program.c | 47 #include "tgsi/tgsi_dump.h" 48 #include "tgsi/tgsi_emulate.h" 49 #include "tgsi/tgsi_parse.h" 50 #include "tgsi/tgsi_ureg.h" 78 if (((vpv->tgsi.type == PIPE_SHADER_IR_TGSI)) && vpv->tgsi.tokens) 79 ureg_free_tokens(vpv->tgsi.tokens); 103 if ((stvp->tgsi.type == PIPE_SHADER_IR_TGSI) && stvp->tgsi.tokens) { 104 tgsi_free_tokens(stvp->tgsi.tokens) 936 struct pipe_shader_state tgsi = {0}; local [all...] |
st_program.h | 144 struct pipe_shader_state tgsi; member in struct:st_fragment_program 180 * TGSI tokens (to later generate a 'draw' module shader for 183 struct pipe_shader_state tgsi; member in struct:st_vp_variant 205 struct pipe_shader_state tgsi; member in struct:st_vertex_program 212 /** maps a Mesa VERT_ATTRIB_x to a packed TGSI input index */ 213 /** maps a TGSI input index back to a Mesa VERT_ATTRIB_x */ 254 struct pipe_shader_state tgsi; member in struct:st_geometry_program 268 struct pipe_shader_state tgsi; member in struct:st_tessctrl_program 282 struct pipe_shader_state tgsi; member in struct:st_tesseval_program 296 struct pipe_compute_state tgsi; member in struct:st_compute_program [all...] |
st_cb_program.c | 122 &stgp->tgsi); 145 &sttcp->tgsi); 157 &sttep->variants, &sttep->tgsi); 210 &stgp->tgsi); 232 &sttcp->tgsi); 244 &sttep->tgsi);
|
st_debug.c | 35 #include "tgsi/tgsi_dump.h" 50 { "tgsi", DEBUG_TGSI, NULL }, 100 tgsi_dump( st->vp->variants[0].tgsi.tokens, 0 ); 104 tgsi_dump(st->fp->tgsi.tokens, 0);
|
st_atom_shader.c | 83 /* Map mesa texture target to TGSI texture target. 231 &stgp->tgsi, &stgp->variants); 260 &sttcp->tgsi, &sttcp->variants); 289 &sttep->tgsi, &sttep->variants); 317 st->cp_variant = st_get_cp_variant(st, &stcp->tgsi, &stcp->variants);
|
st_draw_feedback.c | 152 vs = &st->vp_variant->tgsi; 181 /* loop over TGSI shader inputs to determine vertex buffer
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
nv50_ir_from_tgsi.cpp | 23 #include "tgsi/tgsi_dump.h" 24 #include "tgsi/tgsi_scan.h" 25 #include "tgsi/tgsi_util.h" 33 namespace tgsi { namespace 1074 INFO("unknown TGSI token type: %d\n", parse.FullToken.Token.Type); [all...] |
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_vs_exec.c | 42 #include "tgsi/tgsi_parse.h" 43 #include "tgsi/tgsi_scan.h" 44 #include "tgsi/tgsi_exec.h" 73 draw->vs.tgsi.sampler, 74 draw->vs.tgsi.image, 75 draw->vs.tgsi.buffer); 243 vs->machine = draw->vs.tgsi.machine;
|
draw_gs.c | 36 #include "tgsi/tgsi_parse.h" 37 #include "tgsi/tgsi_exec.h" 684 draw->gs.tgsi.sampler, 685 draw->gs.tgsi.image, 686 draw->gs.tgsi.buffer); 695 draw->gs.tgsi.machine = tgsi_exec_machine_create(PIPE_SHADER_GEOMETRY); 696 if (!draw->gs.tgsi.machine) 699 draw->gs.tgsi.machine->Primitives = align_malloc( 701 if (!draw->gs.tgsi.machine->Primitives) 703 memset(draw->gs.tgsi.machine->Primitives, 0 [all...] |
draw_vs.c | 46 #include "tgsi/tgsi_dump.h" 47 #include "tgsi/tgsi_exec.h" 153 draw->vs.tgsi.machine = tgsi_exec_machine_create(PIPE_SHADER_VERTEX); 154 if (!draw->vs.tgsi.machine) 179 tgsi_exec_machine_destroy(draw->vs.tgsi.machine);
|
draw_private.h | 47 #include "tgsi/tgsi_scan.h" 267 /** Fields for TGSI interpreter / execution */ 274 } tgsi; member in struct:draw_context::__anon27532 288 /** Fields for TGSI interpreter / execution */ 295 } tgsi; member in struct:draw_context::__anon27534
|
draw_context.c | 717 * Provide TGSI sampler objects for vertex/geometry shaders that use 727 draw->vs.tgsi.sampler = sampler; 730 draw->gs.tgsi.sampler = sampler; 735 * Provide TGSI image objects for vertex/geometry shaders that use 745 draw->vs.tgsi.image = image; 748 draw->gs.tgsi.image = image; 753 * Provide TGSI buffer objects for vertex/geometry shaders that use 763 draw->vs.tgsi.buffer = buffer; 766 draw->gs.tgsi.buffer = buffer;
|
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
program.cpp | 25 #include "tgsi/invocation.hpp" 55 tgsi::compile_program(_source, log) : 80 tgsi::link_program(ms) :
|