Lines Matching defs:st
55 void st_upload_constants( struct st_context *st,
73 _mesa_load_state_parameters(st->ctx, params);
79 if (st->constbuf_uploader) {
82 u_upload_data(st->constbuf_uploader, 0, paramBytes,
84 u_upload_unmap(st->constbuf_uploader);
99 st->pipe->set_constant_buffer(st->pipe, shader_type, 0, &cb);
102 st->state.constants[shader_type].ptr = params->ParameterValues;
103 st->state.constants[shader_type].size = paramBytes;
105 else if (st->state.constants[shader_type].ptr) {
106 st->state.constants[shader_type].ptr = NULL;
107 st->state.constants[shader_type].size = 0;
108 st->pipe->set_constant_buffer(st->pipe, shader_type, 0, NULL);
116 static void update_vs_constants(struct st_context *st )
118 struct st_vertex_program *vp = st->vp;
121 st_upload_constants( st, params, PIPE_SHADER_VERTEX );
129 ST_NEW_VERTEX_PROGRAM, /* st */
139 static void update_fs_constants(struct st_context *st )
141 struct st_fragment_program *fp = st->fp;
144 st_upload_constants( st, params, PIPE_SHADER_FRAGMENT );
152 ST_NEW_FRAGMENT_PROGRAM, /* st */
159 static void update_gs_constants(struct st_context *st )
161 struct st_geometry_program *gp = st->gp;
166 st_upload_constants( st, params, PIPE_SHADER_GEOMETRY );
174 ST_NEW_GEOMETRY_PROGRAM, /* st */