Lines Matching refs:shader

76 	struct si_pipe_shader *shader;
77 unsigned type; /* TGSI_PROCESSOR_* specifies the type of shader. */
349 fprintf(stderr, "Warning: Unsupported shader type,\n");
379 /* Initialize arguments for the shader export intrinsic */
403 /* Pixel shader needs to pack output values before export */
461 struct si_shader * shader = &si_shader_ctx->shader->shader;
484 i = shader->ninput++;
485 shader->input[i].name = d->Semantic.Name;
486 shader->input[i].sid = d->Semantic.Index;
487 shader->input[i].interpolate = d->Interp.Interpolate;
488 shader->input[i].centroid = d->Interp.Centroid;
492 i = shader->noutput++;
493 shader->output[i].name = d->Semantic.Name;
494 shader->output[i].sid = d->Semantic.Index;
495 shader->output[i].interpolate = d->Interp.Interpolate;
511 shader->output[i].param_offset = param_count;
520 shader->output[i].param_offset = param_count;
585 /* ctx->shader->output[i].spi_sid = r600_spi_sid(&ctx->shader->output[i]);*/
639 /* XXX: We might want to pass this information to the shader at some. */
661 struct si_pipe_shader *shader)
664 struct si_pipe_shader_selector *sel = shader->selector;
692 si_shader_ctx.shader = shader;
696 shader->shader.nr_cbufs = rctx->framebuffer.nr_cbufs;
705 fprintf(stderr, "Failed to translate shader from TGSI to LLVM\n");
725 shader->num_sgprs = util_le32_to_cpu(*(uint32_t*)inst_bytes);
726 shader->num_vgprs = util_le32_to_cpu(*(uint32_t*)(inst_bytes + 4));
727 shader->spi_ps_input_ena = util_le32_to_cpu(*(uint32_t*)(inst_bytes + 8));
732 /* copy new shader */
733 si_resource_reference(&shader->bo, NULL);
734 shader->bo = si_resource_create_custom(ctx->screen, PIPE_USAGE_IMMUTABLE,
736 if (shader->bo == NULL) {
740 ptr = (uint32_t*)rctx->ws->buffer_map(shader->bo->cs_buf, rctx->cs, PIPE_TRANSFER_WRITE);
748 rctx->ws->buffer_unmap(shader->bo->cs_buf);
755 void si_pipe_shader_destroy(struct pipe_context *ctx, struct si_pipe_shader *shader)
757 si_resource_reference(&shader->bo, NULL);